]> xenbits.xensource.com Git - libvirt.git/commitdiff
virerror: s/VIR_ERR_STORAGE_VOL_EXISTS/VIR_ERR_STORAGE_VOL_EXISTS/
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 7 Oct 2013 17:21:47 +0000 (19:21 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 7 Oct 2013 17:21:47 +0000 (19:21 +0200)
We currently have other error codes in singular form, e.g.
VIR_ERR_NETWORK_EXIST. Cleanup the previous patch to match the form.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
include/libvirt/virterror.h
src/storage/storage_driver.c
src/util/virerror.c

index fd142371da47d0a9ef760645ef50e99c25e98c13..e31e9c4888d0f1e1533c3adbe0b34c7bc5e64561 100644 (file)
@@ -296,7 +296,7 @@ typedef enum {
     VIR_ERR_ACCESS_DENIED = 88,         /* operation on the object/resource
                                            was denied */
     VIR_ERR_DBUS_SERVICE = 89,          /* error from a dbus service */
-    VIR_ERR_STORAGE_VOL_EXISTS = 90,         /* the storage vol already exists */
+    VIR_ERR_STORAGE_VOL_EXIST = 90,     /* the storage vol already exists */
 } virErrorNumber;
 
 /**
index d419a36e2e753ec400bd424273805cfa8bd27d50..b3f0871fce9318b1344dd41d416a07d16c04e290 100644 (file)
@@ -1538,7 +1538,7 @@ storageVolCreateXML(virStoragePoolPtr obj,
         goto cleanup;
 
     if (virStorageVolDefFindByName(pool, voldef->name)) {
-        virReportError(VIR_ERR_STORAGE_VOL_EXISTS,
+        virReportError(VIR_ERR_STORAGE_VOL_EXIST,
                        _("'%s'"), voldef->name);
         goto cleanup;
     }
index 3f55cec1c7e010121c7d468c28bf8a5e8080a61a..d9a9fc4e8aa660f4cddfd33e4b4bc39c429e318d 100644 (file)
@@ -1004,7 +1004,7 @@ virErrorMsg(virErrorNumber error, const char *info)
             else
                 errmsg = _("Storage volume not found: %s");
             break;
-        case VIR_ERR_STORAGE_VOL_EXISTS:
+        case VIR_ERR_STORAGE_VOL_EXIST:
             if (info == NULL)
                 errmsg = _("this storage volume exists already");
             else