vfs: add option to read source files in chunks

This commit is contained in:
Fabian Möller
2018-02-18 15:18:12 +01:00
committed by Nick Craig-Wood
parent 9fdf273614
commit bd3ad1ac3e
4 changed files with 41 additions and 8 deletions

View File

@@ -189,6 +189,8 @@ type Options struct {
GID uint32
DirPerms os.FileMode
FilePerms os.FileMode
ChunkSize fs.SizeSuffix // if > 0 read files in chunks
ChunkSizeLimit fs.SizeSuffix // if > ChunkSize double the chunk size after each chunk until reached
CacheMode CacheMode
CacheMaxAge time.Duration
CachePollInterval time.Duration