diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 8a8e593ee9..c048cea58c 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -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)))