提交 30c3982b 编写于 作者: J John Ferlan

qemu: Use qemuAliasFromDisk to generate drive alias

The qemuDomainSnapshotCreateSingleDiskActive open coded generating the
disk drive alias. Let's use the common function.
上级 f8d49d5b
......@@ -13806,7 +13806,7 @@ qemuDomainSnapshotCreateSingleDiskActive(virQEMUDriverPtr driver,
return -1;
}
if (virAsprintf(&device, "drive-%s", disk->info.alias) < 0)
if (!(device = qemuAliasFromDisk(disk)))
goto cleanup;
if (!(newDiskSrc = virStorageSourceCopy(snap->src, false)))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册