commit | b85114f8cfbede8b153db68875973ef0790bf296 | [log] [tgz] |
---|---|---|
author | Kevin Wolf <kwolf@redhat.com> | Mon Sep 12 19:08:31 2016 +0200 |
committer | Kevin Wolf <kwolf@redhat.com> | Thu Sep 29 14:13:39 2016 +0200 |
tree | f145eb5c7d45e3e2ad8eefb5c06ac5bf72d20883 | |
parent | 692e01a27ccde4120f1371227d4011f668d67a76 [diff] |
block: Use 'detect-zeroes' option for 'blockdev-change-medium' 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 <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com>