summary refs log tree commit diff stats
path: root/util/oslib-posix.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2016-09-12 18:03:18 +0200
committerKevin Wolf <kwolf@redhat.com>2016-09-29 14:13:39 +0200
commit818584a43ab0ef52c131865128ef110f867726cd (patch)
tree6358c1eec8d02c561324484b11fd8be100dcc606 /util/oslib-posix.c
parentb85114f8cfbede8b153db68875973ef0790bf296 (diff)
downloadfocaccia-qemu-818584a43ab0ef52c131865128ef110f867726cd.tar.gz
focaccia-qemu-818584a43ab0ef52c131865128ef110f867726cd.zip
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>
Diffstat (limited to 'util/oslib-posix.c')
0 files changed, 0 insertions, 0 deletions