summaryrefslogtreecommitdiffstats
path: root/blockdev.c
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy2019-06-18 16:08:04 +0200
committerMax Reitz2019-06-24 15:53:01 +0200
commit85c9d133fb53ff098505ad03f139a3f4c99be863 (patch)
treeb28dbd6b0129214e859ea2a63f3d510e22d0484e /blockdev.c
parentnvme: do not advertise support for unsupported arbitration mechanism (diff)
downloadqemu-85c9d133fb53ff098505ad03f139a3f4c99be863.tar.gz
qemu-85c9d133fb53ff098505ad03f139a3f4c99be863.tar.xz
qemu-85c9d133fb53ff098505ad03f139a3f4c99be863.zip
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 <vsementsov@virtuozzo.com> Message-id: 20190618140804.59214-1-vsementsov@virtuozzo.com Reviewed-by: John Snow <jsnow@redhat.com> Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'blockdev.c')
-rw-r--r--blockdev.c2
1 files changed, 1 insertions, 1 deletions
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;
}