s3/smbd: Add a helper to fetch fs capabilities
commitb1fbaefc665a7fb0413a26bd0304f97356fda414
authorAnoop C S <anoopcs@samba.org>
Tue, 24 Sep 2024 05:36:58 +0000 (24 11:06 +0530)
committerRalph Boehme <slow@samba.org>
Mon, 7 Oct 2024 12:25:30 +0000 (7 12:25 +0000)
treed7ee48211240a40ed300300d4ca19b1d2c9bd452
parent250947611c75084d12f09e325dc27cd76b91e9b3
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=15716

Signed-off-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/proto.h
source3/smbd/vfs.c