Searched hist:"0 ebd24e0a203cf2852c310b59fbe050190dc6c8c" (Results 1 – 2 of 2) sorted by relevance
/openbmc/qemu/ |
H A D | block.c | diff 87a5debd3161d24a7d4c685e3c0d8765b5d92a74 Thu Oct 24 19:15:07 CDT 2013 Thibaut LAURENT <thibaut.laurent@gmail.com> 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> diff 0ebd24e0a203cf2852c310b59fbe050190dc6c8c Thu Sep 19 08:12:18 CDT 2013 Kevin Wolf <kwolf@redhat.com> blockdev: Don't disable COR automatically with blockdev-add
If a read-only device is configured with copy-on-read=on, the old code only prints a warning and automatically disables copy on read. Make it a real error for blockdev-add.
Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
|
H A D | blockdev.c | diff 0ebd24e0a203cf2852c310b59fbe050190dc6c8c Thu Sep 19 08:12:18 CDT 2013 Kevin Wolf <kwolf@redhat.com> blockdev: Don't disable COR automatically with blockdev-add
If a read-only device is configured with copy-on-read=on, the old code only prints a warning and automatically disables copy on read. Make it a real error for blockdev-add.
Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
|