block: use BdrvRequestFlags type for supported flag fields
Use the enum type so GDB displays the enum members instead of printing a numeric constant. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Message-id: 20221013185908.1297568-6-stefanha@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
4f384011c5
commit
98b3ddc78b
|
@ -1051,7 +1051,7 @@ struct BlockDriverState {
|
|||
/*
|
||||
* Flags honored during pread
|
||||
*/
|
||||
unsigned int supported_read_flags;
|
||||
BdrvRequestFlags supported_read_flags;
|
||||
/*
|
||||
* Flags honored during pwrite (so far: BDRV_REQ_FUA,
|
||||
* BDRV_REQ_WRITE_UNCHANGED).
|
||||
|
@ -1069,12 +1069,12 @@ struct BlockDriverState {
|
|||
* flag), or they have to explicitly take the WRITE permission for
|
||||
* their children.
|
||||
*/
|
||||
unsigned int supported_write_flags;
|
||||
BdrvRequestFlags supported_write_flags;
|
||||
/*
|
||||
* Flags honored during pwrite_zeroes (so far: BDRV_REQ_FUA,
|
||||
* BDRV_REQ_MAY_UNMAP, BDRV_REQ_WRITE_UNCHANGED)
|
||||
*/
|
||||
unsigned int supported_zero_flags;
|
||||
BdrvRequestFlags supported_zero_flags;
|
||||
/*
|
||||
* Flags honoured during truncate (so far: BDRV_REQ_ZERO_WRITE).
|
||||
*
|
||||
|
@ -1082,7 +1082,7 @@ struct BlockDriverState {
|
|||
* that any added space reads as all zeros. If this can't be guaranteed,
|
||||
* the operation must fail.
|
||||
*/
|
||||
unsigned int supported_truncate_flags;
|
||||
BdrvRequestFlags supported_truncate_flags;
|
||||
|
||||
/* the following member gives a name to every node on the bs graph. */
|
||||
char node_name[32];
|
||||
|
|
Loading…
Reference in New Issue