]> git.proxmox.com Git - mirror_qemu.git/commit - blockdev.c
blockdev: Don't disable COR automatically with blockdev-add
authorKevin Wolf <kwolf@redhat.com>
Thu, 19 Sep 2013 13:12:18 +0000 (15:12 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 11 Oct 2013 14:50:02 +0000 (16:50 +0200)
commit0ebd24e0a203cf2852c310b59fbe050190dc6c8c
tree96b08ce87f22d94abe4d885e46a6662cbd0908f8
parente34ef046412431acf5b4e30762390b4048187bb8
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>
block.c
blockdev.c