]> git.proxmox.com Git - mirror_qemu.git/commit - qemu-io-cmds.c
qemu-io: Add 'write -f' to test FUA flag
authorEric Blake <eblake@redhat.com>
Sun, 8 May 2016 03:16:44 +0000 (21:16 -0600)
committerMax Reitz <mreitz@redhat.com>
Thu, 12 May 2016 13:33:24 +0000 (15:33 +0200)
commit770e0e0e808c6cd361c718ca1a936ed18864c69e
treee25422213acc41b32640cab8b6bb1262e3c981b6
parent093ea232b0a3359ce60ab0f535d9bd04454d39eb
qemu-io: Add 'write -f' to test FUA flag

Make it easier to test block drivers with BDRV_REQ_FUA in
.supported_write_flags, by adding the '-f' flag to qemu-io to
conditionally pass the flag through to specific writes ('write',
'write -z', 'writev', 'aio_write', 'aio_write -z'). You'll want
to use 'qemu-io -t none' to actually make -f useful (as
otherwise, the default writethrough mode automatically sets the
FUA bit on every write).

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-id: 1462677405-4752-6-git-send-email-eblake@redhat.com
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
qemu-io-cmds.c