Statistics
| Branch: | Revision:

root / block @ a8aec295

Name Size
Makefile.objs 912 Bytes
backup.c 9.8 kB
blkdebug.c 17.4 kB
blkverify.c 11.7 kB
bochs.c 7.1 kB
cloop.c 5.9 kB
commit.c 7.3 kB
cow.c 9.6 kB
curl.c 18.5 kB
dmg.c 10.3 kB
gluster.c 18.2 kB
iscsi.c 35 kB
linux-aio.c 5.5 kB
mirror.c 18.7 kB
nbd.c 19 kB
parallels.c 4.8 kB
qapi.c 15.1 kB
qcow.c 27.8 kB
qcow2-cache.c 7.8 kB
qcow2-cluster.c 44 kB
qcow2-refcount.c 44.5 kB
qcow2-snapshot.c 18.7 kB
qcow2.c 53.8 kB
qcow2.h 13 kB
qed-check.c 6.5 kB
qed-cluster.c 5.1 kB
qed-gencb.c 688 Bytes
qed-l2-cache.c 5.9 kB
qed-table.c 8.4 kB
qed.c 46 kB
qed.h 10.8 kB
raw-aio.h 1.6 kB
raw-posix.c 49.6 kB
raw-win32.c 16.5 kB
raw.c 3.9 kB
rbd.c 26.2 kB
sheepdog.c 64.1 kB
snapshot.c 4.1 kB
ssh.c 29.2 kB
stream.c 6.7 kB
vdi.c 24.8 kB
vhdx.c 30.4 kB
vhdx.h 14.8 kB
vmdk.c 52.2 kB
vpc.c 23.7 kB
vvfat.c 84.5 kB
win32-aio.c 5.9 kB

Latest revisions

# Date Author Comment
3ac21627 06/28/2013 02:52 pm Peter Lieven

block: change default of .has_zero_init to 0

.has_zero_init defaults to 1 for all formats and protocols.

this is a dangerous default since this means that all
new added drivers need to manually overwrite it to 0 if
they do not ensure that a device is zero initialized...

72c6cc94 06/28/2013 11:21 am Kevin Wolf

vpc: Implement .bdrv_has_zero_init

Depending on the subformat, has_zero_init on VHD must behave like raw
and query the underlying storage (fixed) or like other sparse formats
that can always return 1 (dynamic, differencing).

Signed-off-by: Kevin Wolf <>

f59fee8d 06/28/2013 10:20 am Kevin Wolf

block: Make BlockJobTypes const

Signed-off-by: Kevin Wolf <>

0b3f21e6 06/28/2013 10:20 am Richard W.M. Jones

block/ssh: Set bdrv_has_zero_init according to the file type.

If the remote is a regular file, set it to true (ie. reads of
uninitialized areas in a newly created file will return zeroes).
If we can't prove that, return false (a safe default).

Tested by adding a debugging print statement [not part of this commit]...

8ab6feec 06/28/2013 10:20 am Kevin Wolf

gluster: Return bdrv_has_zero_init = 0

GlusterFS volumes can be backed by block devices, in which case
bdrv_create() doesn't make sure that the image is zeroed out. It is
currently not possibly to detect whether a given image is backed by a
file or a block device, and incorrectly assuming that it is zeroed...

8ed610a1 06/28/2013 10:20 am Fam Zheng

vmdk: remove wrong calculation of relative path

When creating image with backing file, the driver tries to calculate the
relative path from created image file to backing file, but the path
computation is incorrect. e.g.:

$ qemu-img create -f vmdk -b vmdk-data-disk.vmdk vmdk-data-snapshot1...
a5c5ea3f 06/28/2013 10:20 am Kevin Wolf

raw-posix: Fix /dev/cdrom magic on OS X

The raw-posix driver has code to provide a /dev/cdrom on OS X even
though it doesn't really exist. However, since commit c66a6157 the real
filename is dismissed after finding it, so opening /dev/cdrom fails.
Put the filename back into the options QDict to make this work again....

98d2c6f2 06/28/2013 10:20 am Dietmar Maurer

block: add basic backup support to block driver

backup_start() creates a block job that copies a point-in-time snapshot
of a block device to a target block device.

We call backup_do_cow() for each write during backup. That function
reads the original data from the block device before it gets...

96c51eb5 06/24/2013 11:25 am Fam Zheng

vmdk: refuse to open higher version than supported

Refuse to open higher version for safety.

Although we try to be compatible with published VMDK spec, VMware has
newer version from ESXi 5.1 exported OVF/OVA, which we have no knowledge
what's changed in it. And it is very likely to have more new versions in...

0b919fae 06/24/2013 11:25 am Kevin Wolf

qcow2: Batch discards

This optimises the discard operation for freed clusters by batching
discard requests (both snapshot deletion and bdrv_discard end up
updating the refcounts cluster by cluster).

Note that we don't discard asynchronously, but keep s->lock held. This...

View revisions

Also available in: Atom