qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] vpc size reporting problem
@ 2015-07-06  9:44 Chun Yan Liu
  2015-07-06 10:42 ` Peter Lieven
  0 siblings, 1 reply; 11+ messages in thread
From: Chun Yan Liu @ 2015-07-06  9:44 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, pl, mreitz

While testing with a 1GB VHD file created on win7, found that the VHD file
size reported on Windows is different from that is reported by qemu-img
info or within a Linux KVM guest.

Created a dynamic VHD file on win7, on Windows, it is reported 1024MB
(2097152 sectors). But with qemu-img info or within a Linux KVM guest,
it is reported 1023MB (2096640 sectors).

The values in the footer_buf are as follows:
creator_app: "win "
cylinders: 0x820 (2080)
heads: 0x10 (16)
cyl/sec: 0x3f (63)
current_size: 0x40000000 (1G)

So, if using current_size, it's correct; but using CHS will get a smaller size.

Should we add a check in this case and use "current_size" instead of
CHS?

BTW, before commit 0444dceee, there is a similar check for 'd2v',
if creator_app is 'd2v', using "size" instead of CHS. But in commit
0444dceee, this check is removed. To me, the new check and 'd2v'
check seem to be two different cases, why removing 'd2v' check?

Thanks,
Chunyan

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

end of thread, other threads:[~2015-07-07  7:01 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-06  9:44 [Qemu-devel] vpc size reporting problem Chun Yan Liu
2015-07-06 10:42 ` Peter Lieven
2015-07-07  1:50   ` Chun Yan Liu
2015-07-07  5:50     ` Peter Lieven
2015-07-07  5:59       ` Chun Yan Liu
2015-07-07  6:03         ` Peter Lieven
2015-07-07  6:19           ` Chun Yan Liu
2015-07-07  6:33             ` Peter Lieven
2015-07-07  6:34           ` Chun Yan Liu
2015-07-07  6:36             ` Peter Lieven
2015-07-07  7:01               ` Chun Yan Liu

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).