]> git.proxmox.com Git - mirror_qemu.git/commit - blockdev.c
blockdev: Check @replaces in blockdev_mirror_common
authorMax Reitz <mreitz@redhat.com>
Wed, 13 Feb 2019 22:53:01 +0000 (23:53 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 19 Mar 2019 14:50:20 +0000 (15:50 +0100)
commit74ce9e466ae5632889d3187382764fc3b55fcc91
tree0a4b69bc776c4bc15685312d1d4bb9a8c3fd7092
parent782b9d06bf9853678fe3225426659539d0bdf668
blockdev: Check @replaces in blockdev_mirror_common

There is no reason why the constraints we put on @replaces should be
limited to drive-mirror.  Therefore, move the sanity checks from
qmp_drive_mirror() to blockdev_mirror_common() so they apply to
blockdev-mirror as well.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blockdev.c