提交 ba474c78 编写于 作者: O Osier Yang

cleanup: Change datatype of fs->readonly to boolean

上级 e9e37538
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册