commit | 818584a43ab0ef52c131865128ef110f867726cd | [log] [tgz] |
---|---|---|
author | Kevin Wolf <kwolf@redhat.com> | Mon Sep 12 18:03:18 2016 +0200 |
committer | Kevin Wolf <kwolf@redhat.com> | Thu Sep 29 14:13:39 2016 +0200 |
tree | 6358c1eec8d02c561324484b11fd8be100dcc606 | |
parent | b85114f8cfbede8b153db68875973ef0790bf296 [diff] |
block: Move 'discard' option to bdrv_open_common() This enables its use for nested child nodes. The compatibility between the 'discard' and 'detect-zeroes' setting is checked in bdrv_open_common() now as the former setting isn't available before calling bdrv_open() any more. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com>