summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_onefs.c
diff options
context:
space:
mode:
authorTim Prouty <tprouty@samba.org>2009-02-27 16:25:31 -0800
committerTim Prouty <tprouty@samba.org>2009-03-03 13:06:16 -0800
commit243d4e8a0846f9b873573ec504fb2f811be7d25c (patch)
treed9f6a3ee84649c8342dac483a26cce6613338d78 /source3/modules/vfs_onefs.c
parentb00204a46153a406a6c63792b1939bd3ad74ba71 (diff)
downloadsamba-243d4e8a0846f9b873573ec504fb2f811be7d25c.tar.gz
samba-243d4e8a0846f9b873573ec504fb2f811be7d25c.tar.bz2
samba-243d4e8a0846f9b873573ec504fb2f811be7d25c.zip
s3 OneFS: Add parameter to ignore streams
Diffstat (limited to 'source3/modules/vfs_onefs.c')
-rw-r--r--source3/modules/vfs_onefs.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/modules/vfs_onefs.c b/source3/modules/vfs_onefs.c
index f277245bdc..2ec6e069c3 100644
--- a/source3/modules/vfs_onefs.c
+++ b/source3/modules/vfs_onefs.c
@@ -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[] = {