]> xenbits.xensource.com Git - people/dariof/libvirt.git/commitdiff
rename virDomainBlkioDeviceWeightParseXML to virDomainBlkioDeviceParseXML
authorGao feng <gaofeng@cn.fujitsu.com>
Wed, 11 Dec 2013 08:29:46 +0000 (16:29 +0800)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 12 Dec 2013 12:29:50 +0000 (12:29 +0000)
virDomainBlkioDeviceWeightParseXML will be used to parse
the xml element read_bps, write_bps, read_iops, write_iops.

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
src/conf/domain_conf.c

index e0ab4b16a5e86fa748b83bbc9e19e3ef47157e28..e2219f2c073c40fb5a4bebc957ece37d1854b5ed 100644 (file)
@@ -892,7 +892,7 @@ virBlkioDeviceWeightArrayClear(virBlkioDeviceWeightPtr deviceWeights,
 }
 
 /**
- * virDomainBlkioDeviceWeightParseXML
+ * virDomainBlkioDeviceParseXML
  *
  * this function parses a XML node:
  *
@@ -904,8 +904,8 @@ virBlkioDeviceWeightArrayClear(virBlkioDeviceWeightPtr deviceWeights,
  * and fills a virBlkioDeviceWeight struct.
  */
 static int
-virDomainBlkioDeviceWeightParseXML(xmlNodePtr root,
-                                   virBlkioDeviceWeightPtr dw)
+virDomainBlkioDeviceParseXML(xmlNodePtr root,
+                             virBlkioDeviceWeightPtr dw)
 {
     char *c;
     xmlNodePtr node;
@@ -11097,8 +11097,8 @@ virDomainDefParseXML(xmlDocPtr xml,
 
     for (i = 0; i < n; i++) {
         size_t j;
-        if (virDomainBlkioDeviceWeightParseXML(nodes[i],
-                                               &def->blkio.devices[i]) < 0)
+        if (virDomainBlkioDeviceParseXML(nodes[i],
+                                         &def->blkio.devices[i]) < 0)
             goto error;
         def->blkio.ndevices++;
         for (j = 0; j < i; j++) {