qemu-e2k/block
Eric Blake fa16653874 block: Assert that flags are in range
Add a new BDRV_REQ_MASK constant, and use it to make sure that
caller flags are always valid.

Tested with 'make check' and with qemu-iotests on both '-raw'
and '-qcow2'; the only failure turned up was fixed in the
previous commit.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2016-06-16 15:19:55 +02:00
..
accounting.c
archipelago.c
backup.c backup: Use BlockBackend for I/O 2016-05-25 19:04:21 +02:00
blkdebug.c
blkreplay.c blkreplay: Convert to bdrv_co_pwrite_zeroes() 2016-06-08 10:21:08 +02:00
blkverify.c block: Propagate AioContext change to all children 2016-05-19 16:45:31 +02:00
block-backend.c block: Make blk_co_preadv/pwritev() public 2016-05-25 19:04:21 +02:00
bochs.c
cloop.c
commit.c commit: Use BlockBackend for I/O 2016-05-25 19:04:21 +02:00
crypto.c
curl.c
dirty-bitmap.c
dmg.c all: Remove unnecessary glib.h includes 2016-06-07 18:19:24 +03:00
gluster.c gluster: Convert to bdrv_co_pwrite_zeroes() 2016-06-08 10:21:08 +02:00
io.c block: Assert that flags are in range 2016-06-16 15:19:55 +02:00
iscsi.c iscsi: Convert to bdrv_co_pwrite_zeroes() 2016-06-08 10:21:08 +02:00
linux-aio.c
Makefile.objs
mirror.c block: Avoid bogus flags during mirroring 2016-06-16 15:19:55 +02:00
nbd-client.c
nbd-client.h
nbd.c
nfs.c
null.c
parallels.c block: Switch bdrv_write_zeroes() to byte interface 2016-06-08 10:21:08 +02:00
qapi.c block: Don't return throttling info in query-named-block-nodes 2016-05-19 16:45:31 +02:00
qcow2-cache.c qcow2: avoid extra flushes in qcow2 2016-06-08 10:21:09 +02:00
qcow2-cluster.c qcow2: Implement .bdrv_co_pwritev() 2016-06-16 15:19:55 +02:00
qcow2-refcount.c qcow/qcow2: Use DIV_ROUND_UP 2016-06-07 18:19:24 +03:00
qcow2-snapshot.c
qcow2.c qcow2: Implement .bdrv_co_pwritev() 2016-06-16 15:19:55 +02:00
qcow2.h qcow2: Implement .bdrv_co_pwritev() 2016-06-16 15:19:55 +02:00
qcow.c qcow/qcow2: Use DIV_ROUND_UP 2016-06-07 18:19:24 +03:00
qed-check.c qed: Use DIV_ROUND_UP 2016-06-07 18:19:24 +03:00
qed-cluster.c
qed-gencb.c
qed-l2-cache.c
qed-table.c
qed.c qed: Convert to bdrv_co_pwrite_zeroes() 2016-06-08 10:21:08 +02:00
qed.h
quorum.c block: Propagate AioContext change to all children 2016-05-19 16:45:31 +02:00
raw_bsd.c raw_bsd: Convert to bdrv_co_pwrite_zeroes() 2016-06-08 10:21:08 +02:00
raw-aio.h
raw-posix.c raw-posix: Fetch max sectors for host block device 2016-06-08 10:21:09 +02:00
raw-win32.c
rbd.c
sheepdog.c
snapshot.c block: Fix bdrv_all_delete_snapshot() error handling 2016-06-08 10:21:09 +02:00
ssh.c
stream.c stream: Use BlockBackend for I/O 2016-05-25 19:04:21 +02:00
throttle-groups.c
vdi.c
vhdx-endian.c
vhdx-log.c
vhdx.c all: Remove unnecessary glib.h includes 2016-06-07 18:19:24 +03:00
vhdx.h
vmdk.c vmdk: Convert to bdrv_co_pwrite_zeroes() 2016-06-08 10:21:08 +02:00
vpc.c
vvfat.c block: Use DIV_ROUND_UP 2016-06-07 18:19:24 +03:00
win32-aio.c
write-threshold.c