qemu-io: use BdrvRequestFlags instead of int
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 7 Feb 2023 20:37:17 +0000 (15:37 -0500)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 9 Feb 2023 15:22:30 +0000 (10:22 -0500)
commit1321e00801bc26ff8059e8513f3ae3f7265d24f6
tree7d0a11cd8925c70ee5d130ccf119049acdda3b82
parent3c5867156eb81c7c71611d078b2c5c2c863f884a
qemu-io: use BdrvRequestFlags instead of int

The block layer APIs use BdrvRequestFlags while qemu-io code uses int.
Although the code compiles and runs fine, BdrvRequestFlags is clearer
because it differentiates between other types of flags like bdrv_open()
flags.

This is purely refactoring.

Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Hanna Czenczek <hreitz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20230207203719.242926-3-stefanha@redhat.com>
qemu-io-cmds.c