]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_ceph: Populate fs capabilities within cephwrap_statvfs
authorAnoop C S <anoopcs@samba.org>
Mon, 23 Sep 2024 09:25:59 +0000 (14:55 +0530)
committerRalph Boehme <slow@samba.org>
Mon, 7 Oct 2024 12:25:30 +0000 (12:25 +0000)
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=15716

Signed-off-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_ceph.c

index 26b51ac78c583381b1901d1eae95abb97b256ea5..5a28a93cc82af6929a2cc26b8cdbfa0f80fff0b7 100644 (file)
@@ -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,