]> git.proxmox.com Git - mirror_qemu.git/commit
qemu-io: Add 'write -z -u' to test MAY_UNMAP flag
authorEric Blake <eblake@redhat.com>
Sun, 8 May 2016 03:16:45 +0000 (21:16 -0600)
committerMax Reitz <mreitz@redhat.com>
Thu, 12 May 2016 13:33:24 +0000 (15:33 +0200)
commitc2e001cc829031f9c2e2c364c77861e3f75ac871
tree259442e7fe16dcc53e51d0481074d92b4d845020
parent770e0e0e808c6cd361c718ca1a936ed18864c69e
qemu-io: Add 'write -z -u' to test MAY_UNMAP flag

Make it easier to control whether the BDRV_REQ_MAY_UNMAP flag
can be passed through a write_zeroes command, by adding the '-u'
flag to qemu-io 'write -z' and 'aio_write -z'.  To be useful,
the device has to be opened with BDRV_O_UNMAP (done by default
in qemu-io, but can be made explicit with '-d unmap').

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