mirror of
https://github.com/samba-team/samba.git
synced 2025-01-24 02:04:21 +03:00
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>
This commit is contained in:
parent
0f92c6055a
commit
a7d34ec597
@ -349,7 +349,7 @@ static uint64_t cephwrap_disk_free(struct vfs_handle_struct *handle,
|
||||
ret = ceph_statfs(handle->data, smb_fname->base_name, &statvfs_buf);
|
||||
if (ret < 0) {
|
||||
DBG_DEBUG("[CEPH] ceph_statfs returned %d\n", ret);
|
||||
return status_code(ret);
|
||||
return (uint64_t)status_code(ret);
|
||||
}
|
||||
/*
|
||||
* Provide all the correct values.
|
||||
|
Loading…
x
Reference in New Issue
Block a user