mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
rbd: Use proper error type
This commit is contained in:
parent
9a423d1826
commit
e7d5c4e877
@ -671,9 +671,9 @@ virStorageBackendRBDCreateVol(virConnectPtr conn ATTRIBUTE_UNUSED,
|
|||||||
vol->type = VIR_STORAGE_VOL_NETWORK;
|
vol->type = VIR_STORAGE_VOL_NETWORK;
|
||||||
|
|
||||||
if (vol->target.format != VIR_STORAGE_FILE_RAW) {
|
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"));
|
_("only RAW volumes are supported by this storage pool"));
|
||||||
return -VIR_ERR_NO_SUPPORT;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
VIR_FREE(vol->target.path);
|
VIR_FREE(vol->target.path);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user