mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00:00
cleanup: Change datatype of disk->transient to boolean
This commit is contained in:
parent
a29bafd5de
commit
71dae03f9b
@ -4641,7 +4641,7 @@ virDomainDiskDefParseXML(virDomainXMLOptionPtr xmlopt,
|
||||
} else if (xmlStrEqual(cur->name, BAD_CAST "shareable")) {
|
||||
def->shared = true;
|
||||
} else if (xmlStrEqual(cur->name, BAD_CAST "transient")) {
|
||||
def->transient = 1;
|
||||
def->transient = true;
|
||||
} else if ((flags & VIR_DOMAIN_XML_INTERNAL_STATUS) &&
|
||||
xmlStrEqual(cur->name, BAD_CAST "state")) {
|
||||
/* Legacy back-compat. Don't add any more attributes here */
|
||||
|
@ -676,7 +676,7 @@ struct _virDomainDiskDef {
|
||||
int startupPolicy; /* enum virDomainStartupPolicy */
|
||||
unsigned int readonly : 1;
|
||||
bool shared;
|
||||
unsigned int transient : 1;
|
||||
bool transient;
|
||||
virDomainDeviceInfo info;
|
||||
virStorageEncryptionPtr encryption;
|
||||
bool rawio_specified;
|
||||
|
Loading…
Reference in New Issue
Block a user