]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage_backend_rbd.C: Fix return type of a volStorageBackendRBDUseFastDiff() stub
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 14 May 2025 13:40:40 +0000 (15:40 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 15 May 2025 08:49:24 +0000 (10:49 +0200)
commita857d993d1ee49fb047be4d764e2cf01a68ed2f2
tree99f53e6f9d92f2fc623e4d8d16758d610aa73b90
parent1cf0944cebb8235a1f7163bd5e1756d0f6e096e5
storage_backend_rbd.C: Fix return type of a volStorageBackendRBDUseFastDiff() stub

Inside of storage_backend.c there are two implementations of
volStorageBackendRBDUseFastDiff() function: one when librbd is
new enough and one when it isn't. The former returns a bool, but
the latter is declared to return an int despite it returning a
boolean. Fix the latter.

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