]> git.ipfire.org Git - thirdparty/samba.git/commit
vfs_glusterfs: Retrieve fs capabilities using vfs_get_fs_capabilities
authorAnoop C S <anoopcs@samba.org>
Tue, 17 Sep 2024 18:28:50 +0000 (23:58 +0530)
committerJule Anger <janger@samba.org>
Thu, 20 Mar 2025 09:59:09 +0000 (09:59 +0000)
commitf57377d1b9c05d79d8c18d0cd1ce1ba03cde6bd0
tree1bc49f7d573bdc9c23c64fea614546c172bfd4f8
parent2a70febce8a59a688415869ba017e0775a6fed2e
vfs_glusterfs: Retrieve fs capabilities using vfs_get_fs_capabilities

vfs_glusterfs 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 glusterfs 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>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Mon Oct  7 13:36:11 UTC 2024 on atb-devel-224

(cherry picked from commit 3c6ca81aad16e74bc3d9c4784baf97a237f652c6)
source3/modules/vfs_glusterfs.c