qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Bug 1888467] [NEW] qemu-img http convert bug
@ 2020-07-22  8:02 dunfeng zhang
  2020-07-22  8:38 ` [Bug 1888467] " Max Reitz
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: dunfeng zhang @ 2020-07-22  8:02 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

Hello, Why the file sizes of http conversion and local conversion are
inconsistent?

Use the http method of qemu-img for conversion. The size of some formats after conversion is different from the local method of qemu-img. Such as vhd, vdi. qcow2 and vmdk are normal。
My image size is 40 G, raw format.

The source is the same file, but the access method is different
http method of qemu-img: qemu-img convert -f raw -O vdi http://xxx xxx.vdi(19G,after conversion)
local method of qemu-img: qemu-img convert -f raw -O vdi xxx.raw xxx.vdi(3G,after conversion)

thank you

** Affects: qemu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1888467

Title:
  qemu-img http convert bug

Status in QEMU:
  New

Bug description:
  Hello, Why the file sizes of http conversion and local conversion are
  inconsistent?

  Use the http method of qemu-img for conversion. The size of some formats after conversion is different from the local method of qemu-img. Such as vhd, vdi. qcow2 and vmdk are normal。
  My image size is 40 G, raw format.

  The source is the same file, but the access method is different
  http method of qemu-img: qemu-img convert -f raw -O vdi http://xxx xxx.vdi(19G,after conversion)
  local method of qemu-img: qemu-img convert -f raw -O vdi xxx.raw xxx.vdi(3G,after conversion)

  thank you

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1888467/+subscriptions


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 1888467] Re: qemu-img http convert bug
  2020-07-22  8:02 [Bug 1888467] [NEW] qemu-img http convert bug dunfeng zhang
@ 2020-07-22  8:38 ` Max Reitz
  2020-07-22  9:07 ` dunfeng zhang
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Max Reitz @ 2020-07-22  8:38 UTC (permalink / raw)
  To: qemu-devel

Hi,

What exactly do you mean by “file size”?  The file length (as reported
by ls -l) or the bytes used on disk (reported as “disk size” by qemu-
img, or by du -B1)?

You say that qcow2 and vmdk are normal – do you mean as input or as
output formats?

One thing that comes to my mind is that from http, we have no way of inquiring about holes in the source file, so we have to scan the file for ranges that are zero, which may not be optimal.  OTOH, the default minimum-zero length is 4 kB, which should basically be the granularity at which filesystems can record and report holes, too.
(And if that’s the problem, it should present itself regardless of the output format.)

Can you paste the output for “qemu-img map” on your source file
somewhere (the local one), or is that too long?

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1888467

Title:
  qemu-img http convert bug

Status in QEMU:
  New

Bug description:
  Hello, Why the file sizes of http conversion and local conversion are
  inconsistent?

  Use the http method of qemu-img for conversion. The size of some formats after conversion is different from the local method of qemu-img. Such as vhd, vdi. qcow2 and vmdk are normal。
  My image size is 40 G, raw format.

  The source is the same file, but the access method is different
  http method of qemu-img: qemu-img convert -f raw -O vdi http://xxx xxx.vdi(19G,after conversion)
  local method of qemu-img: qemu-img convert -f raw -O vdi xxx.raw xxx.vdi(3G,after conversion)

  thank you

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1888467/+subscriptions


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 1888467] Re: qemu-img http convert bug
  2020-07-22  8:02 [Bug 1888467] [NEW] qemu-img http convert bug dunfeng zhang
  2020-07-22  8:38 ` [Bug 1888467] " Max Reitz
@ 2020-07-22  9:07 ` dunfeng zhang
  2020-07-27 14:11 ` Max Reitz
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: dunfeng zhang @ 2020-07-22  9:07 UTC (permalink / raw)
  To: qemu-devel

first, what I said "file size" is file length as reported by ls
-l?field.comment=first, what I said "file size" is file length as
reported by ls -l.

The following attachment shows the size of the same source file after
different conversion methods,

http -> local: qemu-img convert -f raw -O vdi localfile localfile1
local -> local: qemu-img convert -f raw -O vdi localfile localfile2
localfile1's size is different from localfile2

secondly, the conversion of qcow2 and vmdk is normal.
http -> local: qemu-img convert -f raw -O qcow2 localfile localfile1
local -> local: qemu-img convert -f raw -O qcow2 localfile localfile2
localfile1's size is the same size as localfile2

** Attachment added: "B3DA75B6-00A2-4C4B-B0D2-6F57E92573BD.png"
   https://bugs.launchpad.net/qemu/+bug/1888467/+attachment/5394838/+files/B3DA75B6-00A2-4C4B-B0D2-6F57E92573BD.png

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1888467

Title:
  qemu-img http convert bug

Status in QEMU:
  New

Bug description:
  Hello, Why the file sizes of http conversion and local conversion are
  inconsistent?

  Use the http method of qemu-img for conversion. The size of some formats after conversion is different from the local method of qemu-img. Such as vhd, vdi. qcow2 and vmdk are normal。
  My image size is 40 G, raw format.

  The source is the same file, but the access method is different
  http method of qemu-img: qemu-img convert -f raw -O vdi http://xxx xxx.vdi(19G,after conversion)
  local method of qemu-img: qemu-img convert -f raw -O vdi xxx.raw xxx.vdi(3G,after conversion)

  thank you

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1888467/+subscriptions


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 1888467] Re: qemu-img http convert bug
  2020-07-22  8:02 [Bug 1888467] [NEW] qemu-img http convert bug dunfeng zhang
  2020-07-22  8:38 ` [Bug 1888467] " Max Reitz
  2020-07-22  9:07 ` dunfeng zhang
@ 2020-07-27 14:11 ` Max Reitz
  2020-07-28  8:18 ` dunfeng zhang
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Max Reitz @ 2020-07-27 14:11 UTC (permalink / raw)
  To: qemu-devel

OK, that’s interesting. To be honest, I have no idea. I’ll keep this in
mind and I’ll try to play around with it, but I can’t promise anything.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1888467

Title:
  qemu-img http convert bug

Status in QEMU:
  New

Bug description:
  Hello, Why the file sizes of http conversion and local conversion are
  inconsistent?

  Use the http method of qemu-img for conversion. The size of some formats after conversion is different from the local method of qemu-img. Such as vhd, vdi. qcow2 and vmdk are normal。
  My image size is 40 G, raw format.

  The source is the same file, but the access method is different
  http method of qemu-img: qemu-img convert -f raw -O vdi http://xxx xxx.vdi(19G,after conversion)
  local method of qemu-img: qemu-img convert -f raw -O vdi xxx.raw xxx.vdi(3G,after conversion)

  thank you

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1888467/+subscriptions


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 1888467] Re: qemu-img http convert bug
  2020-07-22  8:02 [Bug 1888467] [NEW] qemu-img http convert bug dunfeng zhang
                   ` (2 preceding siblings ...)
  2020-07-27 14:11 ` Max Reitz
@ 2020-07-28  8:18 ` dunfeng zhang
  2020-07-28 14:16 ` Max Reitz
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: dunfeng zhang @ 2020-07-28  8:18 UTC (permalink / raw)
  To: qemu-devel

hello, I have an other question。
Why does qemu-img support http reader mode but not http writer mode?
think you.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1888467

Title:
  qemu-img http convert bug

Status in QEMU:
  New

Bug description:
  Hello, Why the file sizes of http conversion and local conversion are
  inconsistent?

  Use the http method of qemu-img for conversion. The size of some formats after conversion is different from the local method of qemu-img. Such as vhd, vdi. qcow2 and vmdk are normal。
  My image size is 40 G, raw format.

  The source is the same file, but the access method is different
  http method of qemu-img: qemu-img convert -f raw -O vdi http://xxx xxx.vdi(19G,after conversion)
  local method of qemu-img: qemu-img convert -f raw -O vdi xxx.raw xxx.vdi(3G,after conversion)

  thank you

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1888467/+subscriptions


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 1888467] Re: qemu-img http convert bug
  2020-07-22  8:02 [Bug 1888467] [NEW] qemu-img http convert bug dunfeng zhang
                   ` (3 preceding siblings ...)
  2020-07-28  8:18 ` dunfeng zhang
@ 2020-07-28 14:16 ` Max Reitz
  2021-05-07  4:39 ` Thomas Huth
  2021-07-07  4:17 ` Launchpad Bug Tracker
  6 siblings, 0 replies; 8+ messages in thread
From: Max Reitz @ 2020-07-28 14:16 UTC (permalink / raw)
  To: qemu-devel

Because nobody has implemented it so far.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1888467

Title:
  qemu-img http convert bug

Status in QEMU:
  New

Bug description:
  Hello, Why the file sizes of http conversion and local conversion are
  inconsistent?

  Use the http method of qemu-img for conversion. The size of some formats after conversion is different from the local method of qemu-img. Such as vhd, vdi. qcow2 and vmdk are normal。
  My image size is 40 G, raw format.

  The source is the same file, but the access method is different
  http method of qemu-img: qemu-img convert -f raw -O vdi http://xxx xxx.vdi(19G,after conversion)
  local method of qemu-img: qemu-img convert -f raw -O vdi xxx.raw xxx.vdi(3G,after conversion)

  thank you

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1888467/+subscriptions


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 1888467] Re: qemu-img http convert bug
  2020-07-22  8:02 [Bug 1888467] [NEW] qemu-img http convert bug dunfeng zhang
                   ` (4 preceding siblings ...)
  2020-07-28 14:16 ` Max Reitz
@ 2021-05-07  4:39 ` Thomas Huth
  2021-07-07  4:17 ` Launchpad Bug Tracker
  6 siblings, 0 replies; 8+ messages in thread
From: Thomas Huth @ 2021-05-07  4:39 UTC (permalink / raw)
  To: qemu-devel

The QEMU project is currently moving its bug tracking to another system.
For this we need to know which bugs are still valid and which could be
closed already. Thus we are setting the bug state to "Incomplete" now.

If the bug has already been fixed in the latest upstream version of QEMU,
then please close this ticket as "Fix released".

If it is not fixed yet and you think that this bug report here is still
valid, then you have two options:

1) If you already have an account on gitlab.com, please open a new ticket
for this problem in our new tracker here:

    https://gitlab.com/qemu-project/qemu/-/issues

and then close this ticket here on Launchpad (or let it expire auto-
matically after 60 days). Please mention the URL of this bug ticket on
Launchpad in the new ticket on GitLab.

2) If you don't have an account on gitlab.com and don't intend to get
one, but still would like to keep this ticket opened, then please switch
the state back to "New" within the next 60 days (otherwise it will get
closed as "Expired"). We will then eventually migrate the ticket auto-
matically to the new system (but you won't be the reporter of the bug
in the new system and thus won't get notified on changes anymore).

Thank you and sorry for the inconvenience.


** Changed in: qemu
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1888467

Title:
  qemu-img http convert bug

Status in QEMU:
  Incomplete

Bug description:
  Hello, Why the file sizes of http conversion and local conversion are
  inconsistent?

  Use the http method of qemu-img for conversion. The size of some formats after conversion is different from the local method of qemu-img. Such as vhd, vdi. qcow2 and vmdk are normal。
  My image size is 40 G, raw format.

  The source is the same file, but the access method is different
  http method of qemu-img: qemu-img convert -f raw -O vdi http://xxx xxx.vdi(19G,after conversion)
  local method of qemu-img: qemu-img convert -f raw -O vdi xxx.raw xxx.vdi(3G,after conversion)

  thank you

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1888467/+subscriptions


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 1888467] Re: qemu-img http convert bug
  2020-07-22  8:02 [Bug 1888467] [NEW] qemu-img http convert bug dunfeng zhang
                   ` (5 preceding siblings ...)
  2021-05-07  4:39 ` Thomas Huth
@ 2021-07-07  4:17 ` Launchpad Bug Tracker
  6 siblings, 0 replies; 8+ messages in thread
From: Launchpad Bug Tracker @ 2021-07-07  4:17 UTC (permalink / raw)
  To: qemu-devel

[Expired for QEMU because there has been no activity for 60 days.]

** Changed in: qemu
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1888467

Title:
  qemu-img http convert bug

Status in QEMU:
  Expired

Bug description:
  Hello, Why the file sizes of http conversion and local conversion are
  inconsistent?

  Use the http method of qemu-img for conversion. The size of some formats after conversion is different from the local method of qemu-img. Such as vhd, vdi. qcow2 and vmdk are normal。
  My image size is 40 G, raw format.

  The source is the same file, but the access method is different
  http method of qemu-img: qemu-img convert -f raw -O vdi http://xxx xxx.vdi(19G,after conversion)
  local method of qemu-img: qemu-img convert -f raw -O vdi xxx.raw xxx.vdi(3G,after conversion)

  thank you

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1888467/+subscriptions


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-07-07  4:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-22  8:02 [Bug 1888467] [NEW] qemu-img http convert bug dunfeng zhang
2020-07-22  8:38 ` [Bug 1888467] " Max Reitz
2020-07-22  9:07 ` dunfeng zhang
2020-07-27 14:11 ` Max Reitz
2020-07-28  8:18 ` dunfeng zhang
2020-07-28 14:16 ` Max Reitz
2021-05-07  4:39 ` Thomas Huth
2021-07-07  4:17 ` Launchpad Bug Tracker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).