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
..
2016-05-25 19:04:21 +02:00
2016-05-25 19:04:21 +02:00
2016-06-07 18:19:24 +03:00
2016-06-16 15:19:55 +02:00
2016-06-07 18:19:24 +03:00
2016-06-16 15:19:55 +02:00
2016-06-16 15:19:55 +02:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-08 10:21:08 +02:00
2016-05-25 19:04:21 +02:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00