mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
qemu: Add new secret info type
Add 'encinfo' to the extended disk structure. This will contain the encryption secret (if present). Signed-off-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
42510c5199
commit
dc428f450a
@ -764,6 +764,7 @@ qemuDomainDiskPrivateDispose(void *obj)
|
||||
qemuDomainDiskPrivatePtr priv = obj;
|
||||
|
||||
qemuDomainSecretInfoFree(&priv->secinfo);
|
||||
qemuDomainSecretInfoFree(&priv->encinfo);
|
||||
}
|
||||
|
||||
|
||||
|
@ -299,6 +299,11 @@ struct _qemuDomainDiskPrivate {
|
||||
* NB: *not* to be written to qemu domain object XML */
|
||||
qemuDomainSecretInfoPtr secinfo;
|
||||
|
||||
/* for storage devices using encryption/secret
|
||||
* Can have both <auth> and <encryption> for some disks
|
||||
* NB:*not* to be written to qemu domain object XML */
|
||||
qemuDomainSecretInfoPtr encinfo;
|
||||
|
||||
/* information about the device */
|
||||
bool tray; /* device has tray */
|
||||
bool removable; /* device media can be removed/changed */
|
||||
|
Loading…
x
Reference in New Issue
Block a user