Statistics
| Branch: | Revision:

root / block @ 24897a76

Name Size
Makefile.objs 1003 Bytes
backup.c 12.1 kB
blkdebug.c 20 kB
blkverify.c 11.9 kB
bochs.c 7.1 kB
cloop.c 5.9 kB
commit.c 7.1 kB
cow.c 12.1 kB
curl.c 19.9 kB
dmg.c 10.4 kB
gluster.c 19.5 kB
iscsi.c 42.1 kB
linux-aio.c 5.2 kB
mirror.c 22.4 kB
nbd-client.c 11 kB
nbd-client.h 1.4 kB
nbd.c 10.4 kB
nfs.c 11.7 kB
parallels.c 4.9 kB
qapi.c 20.1 kB
qcow.c 28.4 kB
qcow2-cache.c 8.6 kB
qcow2-cluster.c 54.6 kB
qcow2-refcount.c 58.7 kB
qcow2-snapshot.c 21.2 kB
qcow2.c 70.5 kB
qcow2.h 16.4 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 47.1 kB
qed.h 10.8 kB
raw-aio.h 1.6 kB
raw-posix.c 58.1 kB
raw-win32.c 18.8 kB
raw_bsd.c 6.2 kB
rbd.c 24.3 kB
sheepdog.c 69.6 kB
snapshot.c 10.7 kB
ssh.c 29.1 kB
stream.c 7 kB
vdi.c 25.2 kB
vhdx-endian.c 5.2 kB
vhdx-log.c 28.9 kB
vhdx.c 62.5 kB
vhdx.h 19.1 kB
vmdk.c 62.6 kB
vpc.c 24.7 kB
vvfat.c 84.8 kB
win32-aio.c 5.7 kB

Latest revisions

# Date Author Comment
35cb1748 02/21/2014 10:02 pm Paolo Bonzini

iscsi: fix indentation

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

f2917853 02/21/2014 10:02 pm Paolo Bonzini

iscsi: correctly propagate errors in iscsi_open

Before:
$ ./qemu-io-old
qemu-io-old> open -r -o file.driver=iscsi,file.filename=foo
Failed to parse URL : foo
qemu-io-old: can't open device (null): Could not open 'foo': Invalid argument

After:...

24897a76 02/21/2014 10:02 pm Paolo Bonzini

gluster: default scheme to gluster:// and host to localhost.

Currently, "gluster:///volname/img" and (using file. options)
"file.driver=gluster,file.filename=foo" will segfault. Also,
"//host/volname/img" will be rejected, but it is a valid URL
that should be accepted just fine with "file.driver=gluster"....

ddf5636d 02/21/2014 10:02 pm Max Reitz

block: Add reference parameter to bdrv_open()

Allow bdrv_open() to handle references to existing block devices just as
bdrv_file_open() is already capable of.

Signed-off-by: Max Reitz <>
Signed-off-by: Kevin Wolf <>

2e40134b 02/21/2014 10:02 pm Max Reitz

block: Make bdrv_file_open() static

Add the bdrv_open() option BDRV_O_PROTOCOL which results in passing the
call to bdrv_file_open(). Additionally, make bdrv_file_open() static and
therefore bdrv_open() the only way to call it.

Consequently, all existing calls to bdrv_file_open() have to be adjusted...

f7d9fd8c 02/21/2014 10:02 pm Max Reitz

block: Remove bdrv_open_image()'s force_raw option

This option is now unnecessary since specifying BDRV_O_PROTOCOL as flag
will do exactly the same.

Signed-off-by: Max Reitz <>
Reviewed-by: Benoit Canet <>
Reviewed-by: Kevin Wolf <>...

a69d9af4 02/21/2014 10:02 pm Paolo Bonzini

nbd: produce a better error if neither host nor port is passed

Before:
$ qemu-io-old
qemu-io-old> open -r -o file.driver=nbd
qemu-io-old: can't open device (null): Could not open image: Invalid argument
$ ./qemu-io-old
qemu-io-old> open -r -o file.driver=nbd,file.host=foo,file.path=bar...

77e8b9ca 02/21/2014 10:02 pm Paolo Bonzini

nbd: correctly propagate errors

Before:
$ ./qemu-io-old
qemu-io-old> open -r -o file.driver=nbd
one of path and host must be specified.
qemu-io-old: can't open device (null): Could not open image: Invalid argument
$ ./qemu-io-old
qemu-io-old> open -r -o file.driver=nbd,file.host=foo,file.path=bar...

a71835a0 02/21/2014 10:02 pm Kevin Wolf

qcow2: Set zero flag for discarded clusters

Instead of making the backing file contents visible again after a discard
request, set the zero flag if possible (i.e. on version >= 3).

Signed-off-by: Kevin Wolf <>
Reviewed-by: Eric Blake <>

f67503e5 02/21/2014 10:02 pm Max Reitz

block: Change BDS parameter of bdrv_open() to **

Make bdrv_open() take a pointer to a BDS pointer, similarly to
bdrv_file_open(). If a pointer to a NULL pointer is given, bdrv_open()
will create a new BDS with an empty name; if the BDS pointer is not
NULL, that existing BDS will be reused (in the same way as bdrv_open()...

View revisions

Also available in: Atom