Statistics
| Branch: | Revision:

root / block @ 78439f6a

Name Size
blkdebug.c 12.7 kB
blkverify.c 10.2 kB
bochs.c 7 kB
cloop.c 5.8 kB
cow.c 9.4 kB
curl.c 16.3 kB
dmg.c 8.7 kB
iscsi.c 15.8 kB
nbd.c 7.6 kB
parallels.c 4.8 kB
qcow.c 26 kB
qcow2-cache.c 7.5 kB
qcow2-cluster.c 27.9 kB
qcow2-refcount.c 37.8 kB
qcow2-snapshot.c 13.5 kB
qcow2.c 37.1 kB
qcow2.h 7.8 kB
qed-check.c 5.4 kB
qed-cluster.c 5.1 kB
qed-gencb.c 688 Bytes
qed-l2-cache.c 5.4 kB
qed-table.c 8.7 kB
qed.c 43.2 kB
qed.h 10.6 kB
raw-posix-aio.h 1.3 kB
raw-posix.c 31.7 kB
raw-win32.c 11.5 kB
raw.c 3.4 kB
rbd.c 21.8 kB
sheepdog.c 53.6 kB
vdi.c 30.1 kB
vmdk.c 45.3 kB
vpc.c 19 kB
vvfat.c 80.5 kB

Latest revisions

# Date Author Comment
78439f6a 11/11/2011 03:02 pm Charles Arnold

block: Fix vpc initialization of the Dynamic Disk Header

The Data Offset field in the Dynamic Disk Header is an 8 byte field.
Although the specification (2006-10-11) gives an example of initializing
only the first 4 bytes, images generated by Microsoft on Windows initialize...

7704df98 11/11/2011 03:02 pm Kevin Wolf

vvfat: Fix read-write mode

vvfat used to directly call into the qcow2 block driver instead of using the
block.c wrappers. With the coroutine conversion, this stopped working.

Signed-off-by: Kevin Wolf <>
Reviewed-by: Paolo Bonzini <>

273e4e03 11/04/2011 06:32 pm Paolo Bonzini

vvfat: reorganize computation of disk geometry

First determine FAT12/16/32, then compute geometry from that for both
FDD and HDD. For 1.44MB floppies, and 2.88MB floppies using FAT16,
change to 1 sector/cluster. The default remains 2.88MB with FAT12
and 2 sectors/cluster. Both DOS and mkdosfs by default format a 2.88MB...

d71cff42 11/04/2011 05:36 pm Paolo Bonzini

vvfat: do not hardcode sector counts in error message

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Kevin Wolf <>

5a742b55 11/04/2011 05:27 pm Paolo Bonzini

vvfat: unify and correct computation of sector count

The sector count is stored in the partition and hence must not include the
sectors before its start. At the same time, remove the useless special
casing for 1.44 MB floppies. This fixes fsck on VVFAT hard disks,...

aad37c06 11/04/2011 05:23 pm Paolo Bonzini

vvfat: need to use first_sectors_number to distinguish fdd/hdd

This is consistent with what "real" floppies have, so file(1)
now actually recognizes the VVFAT image as a 1.44 MB floppy.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Kevin Wolf <>

e654bfe4 11/04/2011 04:55 pm Paolo Bonzini

vvfat: do not fail if the disk has spare sectors

If the number of "faked sectors" + the number of sectors that are
part of a cluster does not sum up to the total number of sectors,
qemu-img convert fails. Read these spare sectors as all zeros.

Signed-off-by: Paolo Bonzini <>...

2b6a43a8 11/04/2011 04:42 pm Paolo Bonzini

vvfat: fix out of bounds array_get usage

When reading the address of the first free entry, you cannot
use array_get without first marking all entries as occupied.

This is visible if you change the sectors per cluster on a
floppy from 2 to 1.

Signed-off-by: Paolo Bonzini <>...

756f51e4 11/04/2011 03:24 pm Dong Xu Wang

block/cloop: Use g_free instead of free

Fix mismatching allocation and deallocation: g_free should be used to pair with
g_malloc.

Reviewed-by: Andreas Färber <>
Reviewed_by: Ray Wang <>
Signed-off-by: Dong Xu Wang <>...

5b47b7c3 11/04/2011 03:24 pm Dong Xu Wang

block/cloop: Fix coding style

Fix coding style in block/cloop.c.

Reviewed-by: Andreas Färber <>
Reviewed_by: Ray Wang <>
Signed-off-by: Dong Xu Wang <>
Signed-off-by: Kevin Wolf <>

View revisions

Also available in: Atom