]> xenbits.xensource.com Git - libvirt.git/commitdiff
rbd: Use proper error type
authorRichard Laager <rlaager@wiktel.com>
Tue, 15 Mar 2016 06:17:31 +0000 (01:17 -0500)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Mon, 21 Mar 2016 05:46:49 +0000 (08:46 +0300)
src/storage/storage_backend_rbd.c

index 7d04b39aa3dfc618c1070c8c350b2d888228bc0b..3e70a42bb5e82b094e586eb7a8b586064126eb95 100644 (file)
@@ -671,9 +671,9 @@ virStorageBackendRBDCreateVol(virConnectPtr conn ATTRIBUTE_UNUSED,
     vol->type = VIR_STORAGE_VOL_NETWORK;
 
     if (vol->target.format != VIR_STORAGE_FILE_RAW) {
-        virReportError(VIR_ERR_NO_SUPPORT, "%s",
+        virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
                        _("only RAW volumes are supported by this storage pool"));
-        return -VIR_ERR_NO_SUPPORT;
+        return -1;
     }
 
     VIR_FREE(vol->target.path);