From: Anoop C S Date: Mon, 23 Sep 2024 09:25:59 +0000 (+0530) Subject: vfs_ceph: Populate fs capabilities within cephwrap_statvfs X-Git-Tag: samba-4.21.5~13 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=78ab723ea2b24e0fd7d93ee49c5df6b0df1b2a00;p=thirdparty%2Fsamba.git vfs_ceph: Populate fs capabilities within cephwrap_statvfs SMB_VFS_STATVFS implementation for vfs_ceph 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 0d922d06a71ad647791cd93194c5591033fc4b4b) --- diff --git a/source3/modules/vfs_ceph.c b/source3/modules/vfs_ceph.c index 20e1c204f18..ca0331678dd 100644 --- a/source3/modules/vfs_ceph.c +++ b/source3/modules/vfs_ceph.c @@ -363,6 +363,9 @@ static int cephwrap_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,