Statistics
| Branch: | Revision:

root / block @ 7479acdb

Name Size
Makefile.objs 795 Bytes
blkdebug.c 15.8 kB
blkverify.c 10.1 kB
bochs.c 7 kB
cloop.c 5.8 kB
commit.c 7.3 kB
cow.c 9.5 kB
curl.c 16.2 kB
dmg.c 8.7 kB
gluster.c 17 kB
iscsi.c 27 kB
linux-aio.c 5.5 kB
mirror.c 10 kB
nbd.c 16.3 kB
parallels.c 4.8 kB
qcow.c 27.2 kB
qcow2-cache.c 7.8 kB
qcow2-cluster.c 36.3 kB
qcow2-refcount.c 39.8 kB
qcow2-snapshot.c 18.6 kB
qcow2.c 50.6 kB
qcow2.h 11.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 46 kB
qed.h 10.8 kB
raw-aio.h 1.6 kB
raw-posix.c 47.4 kB
raw-win32.c 15.6 kB
raw.c 3.9 kB
rbd.c 24.6 kB
sheepdog.c 54.7 kB
stream.c 6.7 kB
vdi.c 24.3 kB
vmdk.c 48.6 kB
vpc.c 23 kB
vvfat.c 81.6 kB
win32-aio.c 6.2 kB

Latest revisions

# Date Author Comment
7479acdb 01/15/2013 05:47 pm Markus Armbruster

win32-aio: Fix how win32_aio_process_completion() frees buffer

win32_aio_submit() allocates it with qemu_blockalign(), therefore it
must be freed with qemu_vfree(), not g_free().

Signed-off-by: Markus Armbruster <>
Reviewed-by: Kevin Wolf <>...

f700f8e3 01/15/2013 02:40 pm Liu Yuan

sheepdog: clean up sd_aio_setup()

The last two parameters of sd_aio_setup() are never used, so remove them.

Cc: MORITA Kazutaka <>
Cc: Kevin Wolf <>
Cc: Stefan Hajnoczi <>
Signed-off-by: Liu Yuan <>...

47783072 01/15/2013 12:18 pm Liu Yuan

sheepdog: multiplex the rw FD to flush cache

This will reduce sockfds connected to the sheep server to one, which simply the
future hacks.

Cc: MORITA Kazutaka <>
Cc: Kevin Wolf <>
Cc: Stefan Hajnoczi <>...

3d4fa43e 01/15/2013 11:03 am Kusanagi Kouichi

raw-posix: support discard on more filesystems

Linux 2.6.38 introduced the filesystem independent interface to
deallocate part of a file. As of Linux 3.7, btrfs, ext4, ocfs2,
tmpfs and xfs support it.

Even though the system calls here are in practice issued on Linux,...

c85191e5 01/15/2013 11:03 am Paolo Bonzini

raw-posix: remember whether discard failed

Avoid sending system calls repeatedly if they shall fail. This
does not apply to XFS: if the filesystem-specific ioctl fails,
something weird is happening.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Stefan Hajnoczi <>

fcd9d455 01/15/2013 11:03 am Paolo Bonzini

raw: support discard on block devices

Block devices use a ioctl instead of fallocate, so add a separate
implementation.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Stefan Hajnoczi <>

8238010b 01/15/2013 11:03 am Paolo Bonzini

block: make discard asynchronous

This is easy with the thread pool, because we can use s->is_xfs and
s->has_discard from the worker function.

QEMU has a widespread assumption that each I/O operation writes less
than 2^32 bytes. This patch doesn't fix it throughout of course,...

8d2497c3 01/15/2013 10:08 am Kevin Wolf

qcow2: Fix segfault on zero-length write

One of the recent refactoring patches (commit f50f88b9) didn't take care
to initialise l2meta properly, so with zero-length writes, which don't
even enter the write loop, qemu just segfaulted.

Signed-off-by: Kevin Wolf <>...

da758bd7 01/14/2013 06:26 pm Anthony Liguori

Merge remote-tracking branch 'kwolf/for-anthony' into staging

  • kwolf/for-anthony:
    dataplane: handle misaligned virtio-blk requests
    dataplane: extract virtio-blk read/write processing into do_rdwr_cmd()
    block: make qiov_is_aligned() public
    raw-posix: fix bdrv_aio_ioctl...
c53b1c51 01/14/2013 11:06 am Stefan Hajnoczi

block: make qiov_is_aligned() public

The qiov_is_aligned() function checks whether a QEMUIOVector meets a
BlockDriverState's alignment requirements. This is needed by
virtio-blk-data-plane so:

1. Move the function from block/raw-posix.c to block/block.c....

View revisions

Also available in: Atom