]> git.ipfire.org Git - thirdparty/samba.git/commit
s3/smbd: Add a helper to fetch fs capabilities
authorAnoop C S <anoopcs@samba.org>
Tue, 24 Sep 2024 05:36:58 +0000 (11:06 +0530)
committerJule Anger <janger@samba.org>
Thu, 20 Mar 2025 09:59:09 +0000 (09:59 +0000)
commit8c7d9f39d9fca3d846cc3a8f348af3788c25fd0d
tree6ba4ebd6264de502737b69ac6e0371c556a0f00e
parent37a74eb39a94aa54ec6d2262b1a7ca8016c5a2a2
s3/smbd: Add a helper to fetch fs capabilities

We create a new helper function to retrieve the fs capabilties via
STATVFS call. Additionally set other capabilities based on specific
parametric options. This is 99.9% taken from SMB_VFS_FS_CAPABILITIES
implementation of vfs_default in preparation to be called from any
required vfs module.

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 b1fbaefc665a7fb0413a26bd0304f97356fda414)
source3/smbd/proto.h
source3/smbd/vfs.c