commit | 74ce9e466ae5632889d3187382764fc3b55fcc91 | [log] [tgz] |
---|---|---|
author | Max Reitz <mreitz@redhat.com> | Wed Feb 13 23:53:01 2019 +0100 |
committer | Kevin Wolf <kwolf@redhat.com> | Tue Mar 19 15:50:20 2019 +0100 |
tree | 0a4b69bc776c4bc15685312d1d4bb9a8c3fd7092 | |
parent | 782b9d06bf9853678fe3225426659539d0bdf668 [diff] |
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>