]> git.ipfire.org Git - thirdparty/samba.git/commit
vfs_ceph: explicit cast to uint64_t upon failure of ceph_statfs
authorShachar Sharon <ssharon@redhat.com>
Thu, 30 May 2024 08:02:37 +0000 (11:02 +0300)
committerAnoop C S <anoopcs@samba.org>
Thu, 27 Jun 2024 05:34:33 +0000 (05:34 +0000)
commita7d34ec597fe810090d28bfda636b7450ecb06e5
tree6a4d5dedf77070af06219a4e6439ce06701c2e8b
parent0f92c6055a6257f5bcbf3f27b21536f9d023cdfa
vfs_ceph: explicit cast to uint64_t upon failure of ceph_statfs

When a call to 'ceph_statfs' from with 'cephwrap_disk_free' returns
non-zero status do an explicit cast to uint64_t for the negative (-1)
value returned by 'status_code'.

Signed-off-by: Shachar Sharon <ssharon@redhat.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
source3/modules/vfs_ceph.c