aboutsummaryrefslogtreecommitdiff
path: root/weed/command/mount.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-04-12 00:52:54 -0700
committerChris Lu <chris.lu@gmail.com>2020-04-12 00:52:54 -0700
commit211d87cf4c6afed1704733654ad3944bf40dd2bd (patch)
tree4c7cd8770ea76a65969e53a25c65e8593d7dd1bc /weed/command/mount.go
parent1c65656fb4a64ae739b9a23a2f97f4032182015c (diff)
downloadseaweedfs-211d87cf4c6afed1704733654ad3944bf40dd2bd.tar.xz
seaweedfs-211d87cf4c6afed1704733654ad3944bf40dd2bd.zip
mount: option to disable caching
Diffstat (limited to 'weed/command/mount.go')
-rw-r--r--weed/command/mount.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/mount.go b/weed/command/mount.go
index 661ddfe06..efa4650ab 100644
--- a/weed/command/mount.go
+++ b/weed/command/mount.go
@@ -39,7 +39,7 @@ func init() {
mountOptions.ttlSec = cmdMount.Flag.Int("ttl", 0, "file ttl in seconds")
mountOptions.chunkSizeLimitMB = cmdMount.Flag.Int("chunkSizeLimitMB", 16, "local write buffer size, also chunk large files")
mountOptions.cacheDir = cmdMount.Flag.String("cacheDir", os.TempDir(), "local cache directory for file chunks")
- mountOptions.cacheSizeMB = cmdMount.Flag.Int64("cacheCapacityMB", 1000, "local cache capacity in MB")
+ mountOptions.cacheSizeMB = cmdMount.Flag.Int64("cacheCapacityMB", 1000, "local cache capacity in MB (0 will disable cache)")
mountOptions.dataCenter = cmdMount.Flag.String("dataCenter", "", "prefer to write to the data center")
mountOptions.allowOthers = cmdMount.Flag.Bool("allowOthers", true, "allows other users to access the file system")
mountOptions.umaskString = cmdMount.Flag.String("umask", "022", "octal umask, e.g., 022, 0111")