diff options
author | Tim Prouty <tprouty@samba.org> | 2009-02-27 16:25:31 -0800 |
---|---|---|
committer | Tim Prouty <tprouty@samba.org> | 2009-03-03 13:06:16 -0800 |
commit | 243d4e8a0846f9b873573ec504fb2f811be7d25c (patch) | |
tree | d9f6a3ee84649c8342dac483a26cce6613338d78 /source3/modules/onefs_streams.c | |
parent | b00204a46153a406a6c63792b1939bd3ad74ba71 (diff) | |
download | samba-243d4e8a0846f9b873573ec504fb2f811be7d25c.tar.gz samba-243d4e8a0846f9b873573ec504fb2f811be7d25c.tar.bz2 samba-243d4e8a0846f9b873573ec504fb2f811be7d25c.zip |
s3 OneFS: Add parameter to ignore streams
Diffstat (limited to 'source3/modules/onefs_streams.c')
-rw-r--r-- | source3/modules/onefs_streams.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/modules/onefs_streams.c b/source3/modules/onefs_streams.c index 9f5d5e2284..05b36d7d3c 100644 --- a/source3/modules/onefs_streams.c +++ b/source3/modules/onefs_streams.c @@ -671,6 +671,11 @@ NTSTATUS onefs_streaminfo(vfs_handle_struct *handle, state.streams = NULL; state.num_streams = 0; + if (lp_parm_bool(SNUM(handle->conn), PARM_ONEFS_TYPE, + PARM_IGNORE_STREAMS, PARM_IGNORE_STREAMS_DEFAULT)) { + goto out; + } + /* Add the default stream. */ if (S_ISREG(sbuf.st_mode)) { if (!add_one_stream(mem_ctx, @@ -702,7 +707,7 @@ NTSTATUS onefs_streaminfo(vfs_handle_struct *handle, return state.status; } } - + out: *num_streams = state.num_streams; *streams = state.streams; return NT_STATUS_OK; |