]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
conf: disk: Rename virDomainDiskDefValidate to virDomainDiskDefParseValidate
authorPeter Krempa <pkrempa@redhat.com>
Tue, 17 May 2016 06:13:52 +0000 (08:13 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 20 May 2016 04:51:11 +0000 (06:51 +0200)
Name the validation function distinctively since it's called in the
parser. Later patches will add function that will validate disk
definitions that are invalid but need to be parsed to avoid losing
domains.

src/conf/domain_conf.c

index 8bfc823c76cfcb8054c0f4cf598b68499facdf4e..9d413b9b92acbd3f0fd1b30c88df1eed6032ebf9 100644 (file)
@@ -6939,7 +6939,7 @@ virDomainDiskDefGeometryParse(virDomainDiskDefPtr def,
 
 
 static int
-virDomainDiskDefValidate(const virDomainDiskDef *def)
+virDomainDiskDefParseValidate(const virDomainDiskDef *def)
 {
     if (def->bus != VIR_DOMAIN_DISK_BUS_VIRTIO) {
         if (def->event_idx != VIR_TRISTATE_SWITCH_ABSENT) {
@@ -7544,7 +7544,7 @@ virDomainDiskDefParseXML(virDomainXMLOptionPtr xmlopt,
             goto error;
     }
 
-    if (virDomainDiskDefValidate(def) < 0)
+    if (virDomainDiskDefParseValidate(def) < 0)
         goto error;
 
  cleanup: