From 3efbc1a9a38de2f0af4778ab9388c6a8e1c11ca6 Mon Sep 17 00:00:00 2001 From: Kevin Mitchell Date: Mon, 9 Mar 2015 03:31:38 -0700 Subject: 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. --- stream/stream_smb.c | 1 + 1 file changed, 1 insertion(+) (limited to 'stream') 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; } -- cgit v1.2.3