From: Vladimir Sementsov-Ogievskiy Date: Tue, 18 Jun 2019 14:08:04 +0000 (+0300) Subject: blockdev: enable non-root nodes for transaction drive-backup source X-Git-Tag: qemu-xen-4.13.0-rc1~111^2~6 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=85c9d133fb53ff098505ad03f139a3f4c99be863;p=qemu-xen.git blockdev: enable non-root nodes for transaction drive-backup source We forget to enable it for transaction .prepare, while it is already enabled in do_drive_backup since commit a2d665c1bc362 "blockdev: loosen restrictions on drive-backup source node" Signed-off-by: Vladimir Sementsov-Ogievskiy Message-id: 20190618140804.59214-1-vsementsov@virtuozzo.com Reviewed-by: John Snow Signed-off-by: Max Reitz --- diff --git a/blockdev.c b/blockdev.c index 5d6a13dea9..4d141e9a1f 100644 --- a/blockdev.c +++ b/blockdev.c @@ -1774,7 +1774,7 @@ static void drive_backup_prepare(BlkActionState *common, Error **errp) assert(common->action->type == TRANSACTION_ACTION_KIND_DRIVE_BACKUP); backup = common->action->u.drive_backup.data; - bs = qmp_get_root_bs(backup->device, errp); + bs = bdrv_lookup_bs(backup->device, backup->device, errp); if (!bs) { return; }