aboutsummaryrefslogtreecommitdiff
path: root/block/raw-posix.c
diff options
context:
space:
mode:
authorThibaut LAURENT <thibaut.laurent@gmail.com>2013-10-25 02:15:07 +0200
committerKevin Wolf <kwolf@redhat.com>2013-10-29 13:06:39 +0100
commit87a5debd3161d24a7d4c685e3c0d8765b5d92a74 (patch)
tree4a0bc68d63a6678a030b1755a8a9a6fa4cbfe299 /block/raw-posix.c
parent8464b273d69c61e33c55347e5b6bc0659687bae2 (diff)
block: Disable BDRV_O_COPY_ON_READ for the backing file
Since commit 0ebd24e0a203cf2852c310b59fbe050190dc6c8c, bdrv_open_common will throw an error when trying to open a file read-only with the BDRV_O_COPY_ON_READ flag set. Although BDRV_O_RDWR is unset for the backing files, BDRV_O_COPY_ON_READ is still passed on if copy-on-read was requested for the drive. Let's unset this flag too before opening the backing file, or bdrv_open_common will fail. Signed-off-by: Thibaut LAURENT <thibaut.laurent@gmail.com> Reviewed-by: Benoit Canet <benoit@irqsave.net> Reviewed-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/raw-posix.c')
0 files changed, 0 insertions, 0 deletions