mirror of https://gitee.com/openkylin/libvirt.git
cleanup: Change datatype of fs->readonly to boolean
This commit is contained in:
parent
e9e37538bb
commit
ba474c7844
|
@ -5396,7 +5396,7 @@ virDomainFSDefParseXML(xmlNodePtr node,
|
|||
xmlStrEqual(cur->name, BAD_CAST "target")) {
|
||||
target = virXMLPropString(cur, "dir");
|
||||
} else if (xmlStrEqual(cur->name, BAD_CAST "readonly")) {
|
||||
def->readonly = 1;
|
||||
def->readonly = true;
|
||||
} else if (!fsdriver && xmlStrEqual(cur->name, BAD_CAST "driver")) {
|
||||
fsdriver = virXMLPropString(cur, "type");
|
||||
wrpolicy = virXMLPropString(cur, "wrpolicy");
|
||||
|
|
|
@ -799,7 +799,7 @@ struct _virDomainFSDef {
|
|||
unsigned long long usage;
|
||||
char *src;
|
||||
char *dst;
|
||||
unsigned int readonly : 1;
|
||||
bool readonly;
|
||||
virDomainDeviceInfo info;
|
||||
unsigned long long space_hard_limit; /* in bytes */
|
||||
unsigned long long space_soft_limit; /* in bytes */
|
||||
|
|
Loading…
Reference in New Issue