mirror of
https://github.com/utmapp/qemu.git
synced 2026-12-01 22:23:23 -10:00
migration: forbid bitmap migration by generated node-name
It actually never worked with libvirt, as auto-generated names are different on source and destination. It's unsafe and useless to migrate by auto-generated node-names, so let's forbid it. Signed-off-by: Vladimir Sementsov-Ogievskiy <[email protected]> Reviewed-by: Andrey Shinkevich <[email protected]> Reviewed-by: Eric Blake <[email protected]> Message-Id: <[email protected]> [eblake: shorter subject line] Signed-off-by: Eric Blake <[email protected]>
This commit is contained in:
1 parent
82640edb88
commit
4ff5cc121b
1 file changed
+7
@@ -285,6 +285,13 @@ static int add_bitmaps_to_list(BlockDriverState *bs, const char *bs_name)
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (bs_name[0] == '#') {
|
||||
error_report("Bitmap '%s' in a node with auto-generated "
|
||||
"name '%s' can't be migrated",
|
||||
bdrv_dirty_bitmap_name(bitmap), bs_name);
|
||||
return -1;
|
||||
}
|
||||
|
||||
FOR_EACH_DIRTY_BITMAP(bs, bitmap) {
|
||||
if (!bdrv_dirty_bitmap_name(bitmap)) {
|
||||
continue;
|
||||
|
||||
Reference in new issue
Block a user