Re: [Qemu-block] [PATCH 5/7] block: Use 'detect-zeroes' option for 'blockdev-change-medium'

2016-09-21 Thread Eric Blake
On 09/20/2016 04:08 PM, Kevin Wolf wrote: > Instead of modifying the new BDS after it has been opened, use the newly > supported 'detect-zeroes' option in bdrv_open_common() so that all > requirements are checked (detect-zeroes=unmap requires discard=unmap). > > Signed-off-by: Kevin Wolf

[Qemu-block] [PATCH 5/7] block: Use 'detect-zeroes' option for 'blockdev-change-medium'

2016-09-20 Thread Kevin Wolf
Instead of modifying the new BDS after it has been opened, use the newly supported 'detect-zeroes' option in bdrv_open_common() so that all requirements are checked (detect-zeroes=unmap requires discard=unmap). Signed-off-by: Kevin Wolf --- block/block-backend.c | 9