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.
This commit is contained in:
Kevin Mitchell 2015-03-09 03:31:38 -07:00
parent 6983430c35
commit 3efbc1a9a3
1 changed files with 1 additions and 0 deletions

View File

@ -133,6 +133,7 @@ static int open_f (stream_t *stream)
stream->close = close_f; stream->close = close_f;
stream->control = control; stream->control = control;
stream->read_chunk = 128 * 1024; stream->read_chunk = 128 * 1024;
stream->streaming = true;
return STREAM_OK; return STREAM_OK;
} }