diff options
author | Max Reitz <mreitz@redhat.com> | 2019-02-13 23:53:01 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2019-03-19 15:50:20 +0100 |
commit | 74ce9e466ae5632889d3187382764fc3b55fcc91 (patch) | |
tree | 0a4b69bc776c4bc15685312d1d4bb9a8c3fd7092 /qdev-monitor.c | |
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>
Diffstat (limited to 'qdev-monitor.c')
0 files changed, 0 insertions, 0 deletions