Statistics
| Branch: | Revision:

root / block @ 98289620

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 19 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.8 kB
vpc.c 23.7 kB
vvfat.c 84.5 kB
win32-aio.c 5.9 kB

Latest revisions

# Date Author Comment
98289620 07/15/2013 10:49 am Kevin Wolf

block: Don't parse protocol from file.filename

One of the major reasons for doing something new for -blockdev and
blockdev-add was that the old block layer code parses filenames instead
of just taking them literally. So we should really leave it untouched...

da7a50f9 07/05/2013 10:40 am Fam Zheng

vmdk: Implement .bdrv_has_zero_init

Depending on the subformat, has_zero_init queries underlying storage for
flat extent. If it has a flat extent and its underlying storage doesn't
have zero init, return 0. Otherwise return 1.

Aligns the operator assignments....

3494d650 07/05/2013 10:40 am Fam Zheng

curl: refuse to open URL from HTTP server without range support

CURL driver requests partial data from server on guest IO req. For HTTP
and HTTPS, it uses "Range: ***" in requests, and this will not work if
server not accepting range. This patch does this check when open....

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

View revisions

Also available in: Atom