]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
storage_backend_rbd.c: Make virStorageBackendRBDSetAllocation() stub report an error
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 14 May 2025 13:51:18 +0000 (15:51 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 15 May 2025 08:49:21 +0000 (10:49 +0200)
Inside of storage_backend_rbd.c there are two implementations of
virStorageBackendRBDSetAllocation(). One reports an error on
failure, so the stub implementation should report an error too.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/storage/storage_backend_rbd.c

index 832f48df163229f24fcc153cd067cadc6eeee3bc..c2dbf3a307d38aaebf8407c32d5dfd72e2c9f1d3 100644 (file)
@@ -515,6 +515,7 @@ virStorageBackendRBDSetAllocation(virStorageVolDef *vol G_GNUC_UNUSED,
                                   rbd_image_t *image G_GNUC_UNUSED,
                                   rbd_image_info_t *info G_GNUC_UNUSED)
 {
+    virReportUnsupportedError();
     return false;
 }
 #endif