]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_ceph_new: Retrieve fs capabilties using vfs_get_fs_capabilities
authorAnoop C S <anoopcs@samba.org>
Thu, 3 Oct 2024 07:02:04 +0000 (12:32 +0530)
committerJule Anger <janger@samba.org>
Thu, 20 Mar 2025 09:59:09 +0000 (09:59 +0000)
Make use of get_fs_capabilties to start with already known fs
capabilties from connect phase.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15822

Signed-off-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit 9524b402f811fd2fc35c9952df0496898f8e2cbe)

source3/modules/vfs_ceph_new.c

index a0b30a4d476b67d742f35e353ad8aa3910f9a83b..7b87bc9b2cc81acff164286e5b72390a2d53dc91 100644 (file)
@@ -1976,9 +1976,7 @@ static uint32_t vfs_ceph_fs_capabilities(
        struct vfs_handle_struct *handle,
        enum timestamp_set_resolution *p_ts_res)
 {
-       uint32_t caps = FILE_CASE_SENSITIVE_SEARCH | FILE_CASE_PRESERVED_NAMES;
-
-       *p_ts_res = TIMESTAMP_SET_NT_OR_BETTER;
+       uint32_t caps = vfs_get_fs_capabilities(handle->conn, p_ts_res);
 
        return caps;
 }