]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Remove generation of drive alias from qcow passphrase backends
authorJohn Ferlan <jferlan@redhat.com>
Mon, 1 Aug 2016 12:11:44 +0000 (08:11 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 2 Aug 2016 14:11:11 +0000 (10:11 -0400)
commitf8d49d5b9f8bd62de8d83283f21be9a7585879af
treeac345bd54608e19a720d3ecf97dee90f1f69b07d
parent675a7e4ec1bab52c72d57878ce06226a61986065
qemu: Remove generation of drive alias from qcow passphrase backends

Rather than pass the disks[i]->info.alias to qemuMonitorSetDrivePassphrase
and then generate the "drive-%s" alias from that, let's use qemuAliasFromDisk
prior to the call to generate the drive alias and then pass that along
thus removing the need to generate the alias from the monitor code.
src/qemu/qemu_monitor_json.c
src/qemu/qemu_monitor_text.c
src/qemu/qemu_process.c
tests/qemumonitorjsontest.c