aboutsummaryrefslogtreecommitdiff
path: root/weed/command/mount.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2024-09-04 00:05:58 -0700
committerchrislu <chris.lu@gmail.com>2024-09-04 00:05:58 -0700
commit66ac82bb8f8a5c5f095387689a503f2bc0edd002 (patch)
treebaabf17ce97f2533571420ff1a9563406fac8425 /weed/command/mount.go
parent8d5a6d7e74eba7f63ce6466033d24e66d19ddd32 (diff)
downloadseaweedfs-66ac82bb8f8a5c5f095387689a503f2bc0edd002.tar.xz
seaweedfs-66ac82bb8f8a5c5f095387689a503f2bc0edd002.zip
default cacheDirWrite to cacheDir
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 22bd29a00..f5972fd30 100644
--- a/weed/command/mount.go
+++ b/weed/command/mount.go
@@ -57,7 +57,7 @@ func init() {
mountOptions.concurrentWriters = cmdMount.Flag.Int("concurrentWriters", 32, "limit concurrent goroutine writers")
mountOptions.cacheDirForRead = cmdMount.Flag.String("cacheDir", os.TempDir(), "local cache directory for file chunks and meta data")
mountOptions.cacheSizeMBForRead = cmdMount.Flag.Int64("cacheCapacityMB", 0, "file chunk read cache capacity in MB")
- mountOptions.cacheDirForWrite = cmdMount.Flag.String("cacheDirWrite", os.TempDir(), "buffer writes mostly for large files")
+ mountOptions.cacheDirForWrite = cmdMount.Flag.String("cacheDirWrite", "", "buffer writes mostly for large files")
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")