mirror of
https://github.com/samba-team/samba.git
synced 2025-10-16 11:33:16 +03:00
s3 OneFS: Add parameter to ignore streams
This commit is contained in:
@@ -222,7 +222,14 @@ static int onefs_ntimes(vfs_handle_struct *handle, const char *fname,
|
||||
|
||||
static uint32_t onefs_fs_capabilities(struct vfs_handle_struct *handle)
|
||||
{
|
||||
return SMB_VFS_NEXT_FS_CAPABILITIES(handle) | FILE_NAMED_STREAMS;
|
||||
uint32_t result = 0;
|
||||
|
||||
if (!lp_parm_bool(SNUM(handle->conn), PARM_ONEFS_TYPE,
|
||||
PARM_IGNORE_STREAMS, PARM_IGNORE_STREAMS_DEFAULT)) {
|
||||
result |= FILE_NAMED_STREAMS;
|
||||
}
|
||||
|
||||
return result | SMB_VFS_NEXT_FS_CAPABILITIES(handle);
|
||||
}
|
||||
|
||||
static vfs_op_tuple onefs_ops[] = {
|
||||
|
Reference in New Issue
Block a user