diff options
author | Kevin Mitchell <kevmitch@gmail.com> | 2015-03-09 03:31:38 -0700 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2015-03-09 03:38:01 -0700 |
commit | 3efbc1a9a38de2f0af4778ab9388c6a8e1c11ca6 (patch) | |
tree | 385d53890cc5b164f5b5347ba8856dd372869cb0 /stream | |
parent | 6983430c35d8f71ad5d779c763f80d55bcf69c47 (diff) |
stream/smb: mark as network stream for --cache=auto
This causes the cache to be enabled with --cache=auto. It was not done
previously because the small cache size 320k actually led to worse
performance. However, with the current default cache size of 25000kb,
caching notably improves performance.
Diffstat (limited to 'stream')
-rw-r--r-- | stream/stream_smb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/stream/stream_smb.c b/stream/stream_smb.c index 96f8ec69bd..ebea3705de 100644 --- a/stream/stream_smb.c +++ b/stream/stream_smb.c @@ -133,6 +133,7 @@ static int open_f (stream_t *stream) stream->close = close_f; stream->control = control; stream->read_chunk = 128 * 1024; + stream->streaming = true; return STREAM_OK; } |