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:
John Ferlan 2016-06-08 12:51:20 -04:00
parent 42510c5199
commit dc428f450a
2 changed files with 6 additions and 0 deletions

View File

@ -764,6 +764,7 @@ qemuDomainDiskPrivateDispose(void *obj)
qemuDomainDiskPrivatePtr priv = obj;
qemuDomainSecretInfoFree(&priv->secinfo);
qemuDomainSecretInfoFree(&priv->encinfo);
}

View File

@ -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 */