mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
qemu: Use qemuAliasFromDisk to generate drive alias
The qemuDomainSnapshotCreateSingleDiskActive open coded generating the disk drive alias. Let's use the common function.
This commit is contained in:
parent
f8d49d5b9f
commit
30c3982bda
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user