From: Anoop C S Date: Thu, 3 Oct 2024 06:59:58 +0000 (+0530) Subject: vfs_ceph_new: Populate fs capabilities within vfs_ceph_statvfs X-Git-Tag: samba-4.21.5~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32e6aefa86d9e1dc0f4520d01eb59a18c54fbf5a;p=thirdparty%2Fsamba.git vfs_ceph_new: Populate fs capabilities within vfs_ceph_statvfs SMB_VFS_STATVFS implementation for vfs_ceph_new failed to fill in the FsCapabilities field for vfs_statvfs_struct. Insert the minimum required values for defining the capabilties of a ceph file system. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15822 Signed-off-by: Anoop C S Reviewed-by: Ralph Boehme (cherry picked from commit 58cf7a63209b0a898bc39c9f8b7de5188bef618f) --- diff --git a/source3/modules/vfs_ceph_new.c b/source3/modules/vfs_ceph_new.c index 8b051e0f226..a0b30a4d476 100644 --- a/source3/modules/vfs_ceph_new.c +++ b/source3/modules/vfs_ceph_new.c @@ -1958,6 +1958,9 @@ static int vfs_ceph_statvfs(struct vfs_handle_struct *handle, statbuf->TotalFileNodes = statvfs_buf.f_files; statbuf->FreeFileNodes = statvfs_buf.f_ffree; statbuf->FsIdentifier = statvfs_buf.f_fsid; + statbuf->FsCapabilities = + FILE_CASE_SENSITIVE_SEARCH | FILE_CASE_PRESERVED_NAMES; + DBG_DEBUG("[CEPH] f_bsize: %ld, f_blocks: %ld, f_bfree: %ld, " "f_bavail: %ld\n", (long int)statvfs_buf.f_bsize,