]> git.ipfire.org Git - thirdparty/samba.git/commit
smbd: consolidate fs capabilities code in vfswrap_fs_capabilities()
authorRalph Boehme <slow@samba.org>
Thu, 6 Jun 2024 13:38:16 +0000 (15:38 +0200)
committerJule Anger <janger@samba.org>
Thu, 20 Mar 2025 09:59:09 +0000 (09:59 +0000)
commit37a74eb39a94aa54ec6d2262b1a7ca8016c5a2a2
treea9f6ff371ef01a582cd1817c47ed9786903f4869
parent40d2b73f24b2a780d3bf278f177206a0a107fdb1
smbd: consolidate fs capabilities code in vfswrap_fs_capabilities()

This ensures the values we return via SMB_FS_ATTRIBUTE_INFORMATION is the same
we use internally via conn->fs_capabilities.

This deliberately preserves existing behaviour as much as possible and leaves
possible improvements as a future excercize. Particularily FILE_VOLUME_QUOTAS is
already set insided SMB_VFS_STATVFS() depending on backend filesystem flags
which is probably the correct way to do it instead of just setting the
capability when Samba was built with quota support.

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

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
(cherry picked from commit deeca8ff176e7e9082cc0fcf48d7f981de2523c5)
source3/modules/vfs_ceph.c
source3/modules/vfs_default.c
source3/modules/vfs_glusterfs.c
source3/smbd/smb2_trans2.c