From: Changlong Xie <[email protected]> s/target bs/to_replace/, also we check to_replace bs is not blocked in qmp_drive_mirror() not here
Signed-off-by: Changlong Xie <[email protected]> Reviewed-by: Fam Zheng <[email protected]> Reviewed-by: Stefan Hajnoczi <[email protected]> Reviewed-by: Jeff Cody <[email protected]> Message-id: [email protected] Signed-off-by: Jeff Cody <[email protected]> --- block/mirror.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/mirror.c b/block/mirror.c index 5bac906..8d96049 100644 --- a/block/mirror.c +++ b/block/mirror.c @@ -775,7 +775,7 @@ static void mirror_complete(BlockJob *job, Error **errp) } } - /* check the target bs is not blocked and block all operations on it */ + /* block all operations on to_replace bs */ if (s->replaces) { AioContext *replace_aio_context; -- 1.9.3
