]> git.ipfire.org Git - thirdparty/samba.git/commit
vfs_ceph: Retrieve fs capabilties using vfs_get_fs_capabilities
authorAnoop C S <anoopcs@samba.org>
Tue, 17 Sep 2024 18:20:25 +0000 (23:50 +0530)
committerJule Anger <janger@samba.org>
Thu, 20 Mar 2025 09:59:09 +0000 (09:59 +0000)
commit3b5c47c40f2b0b23e35f4b0270b9323d6becf418
tree493e95c8fcf3c1e3a16d6dd1cb8573184e2b8b76
parent78ab723ea2b24e0fd7d93ee49c5df6b0df1b2a00
vfs_ceph: Retrieve fs capabilties using vfs_get_fs_capabilities

vfs_ceph is supposed to be the last entry when listed with other vfs
modules. This is due to the fact that the connection path is not local
to the server but relative to the virtual remote file system beneath
it. Especially SMB_VFS_FS_CAPABILITIES implementation from vfs_default
is likely to return incorrect results based on the connection path
assumed to be local to the server which might not be the case with
ceph module stacked. Therefore it doesn't make sense to pass through
any vfs interface implementations further down the line to vfs_default.

Instead 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 44e4e1eade5cadea9bd93fde8293ab6eb26230cc)
source3/modules/vfs_ceph.c