提交 529739cc 编写于 作者: G Gao feng 提交者: Daniel P. Berrange

rename virDomainBlkioDeviceWeightParseXML to virDomainBlkioDeviceParseXML

virDomainBlkioDeviceWeightParseXML will be used to parse
the xml element read_bps, write_bps, read_iops, write_iops.
Signed-off-by: NGao feng <gaofeng@cn.fujitsu.com>
上级 602751b4
...@@ -892,7 +892,7 @@ virBlkioDeviceWeightArrayClear(virBlkioDeviceWeightPtr deviceWeights, ...@@ -892,7 +892,7 @@ virBlkioDeviceWeightArrayClear(virBlkioDeviceWeightPtr deviceWeights,
} }
/** /**
* virDomainBlkioDeviceWeightParseXML * virDomainBlkioDeviceParseXML
* *
* this function parses a XML node: * this function parses a XML node:
* *
...@@ -904,8 +904,8 @@ virBlkioDeviceWeightArrayClear(virBlkioDeviceWeightPtr deviceWeights, ...@@ -904,8 +904,8 @@ virBlkioDeviceWeightArrayClear(virBlkioDeviceWeightPtr deviceWeights,
* and fills a virBlkioDeviceWeight struct. * and fills a virBlkioDeviceWeight struct.
*/ */
static int static int
virDomainBlkioDeviceWeightParseXML(xmlNodePtr root, virDomainBlkioDeviceParseXML(xmlNodePtr root,
virBlkioDeviceWeightPtr dw) virBlkioDeviceWeightPtr dw)
{ {
char *c; char *c;
xmlNodePtr node; xmlNodePtr node;
...@@ -11097,8 +11097,8 @@ virDomainDefParseXML(xmlDocPtr xml, ...@@ -11097,8 +11097,8 @@ virDomainDefParseXML(xmlDocPtr xml,
for (i = 0; i < n; i++) { for (i = 0; i < n; i++) {
size_t j; size_t j;
if (virDomainBlkioDeviceWeightParseXML(nodes[i], if (virDomainBlkioDeviceParseXML(nodes[i],
&def->blkio.devices[i]) < 0) &def->blkio.devices[i]) < 0)
goto error; goto error;
def->blkio.ndevices++; def->blkio.ndevices++;
for (j = 0; j < i; j++) { for (j = 0; j < i; j++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册