aboutsummaryrefslogtreecommitdiff
path: root/weed/command/mount.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2023-08-16 23:47:43 -0700
committerchrislu <chris.lu@gmail.com>2023-08-16 23:47:43 -0700
commit3852307e9444595f1cf5db15b703493886c3248e (patch)
treeb0543cdd7df6a16f2c77f7ed23a22756db7df843 /weed/command/mount.go
parent6c7fa567d4b94790f213d0546b365a4e989a0e3d (diff)
downloadseaweedfs-3852307e9444595f1cf5db15b703493886c3248e.tar.xz
seaweedfs-3852307e9444595f1cf5db15b703493886c3248e.zip
renaming
Diffstat (limited to 'weed/command/mount.go')
-rw-r--r--weed/command/mount.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/weed/command/mount.go b/weed/command/mount.go
index bb4325b1a..22bd29a00 100644
--- a/weed/command/mount.go
+++ b/weed/command/mount.go
@@ -17,9 +17,9 @@ type MountOptions struct {
ttlSec *int
chunkSizeLimitMB *int
concurrentWriters *int
- cacheDir *string
- cacheDirWrite *string
- cacheSizeMB *int64
+ cacheDirForRead *string
+ cacheDirForWrite *string
+ cacheSizeMBForRead *int64
dataCenter *string
allowOthers *bool
umaskString *string
@@ -55,9 +55,9 @@ func init() {
mountOptions.ttlSec = cmdMount.Flag.Int("ttl", 0, "file ttl in seconds")
mountOptions.chunkSizeLimitMB = cmdMount.Flag.Int("chunkSizeLimitMB", 2, "local write buffer size, also chunk large files")
mountOptions.concurrentWriters = cmdMount.Flag.Int("concurrentWriters", 32, "limit concurrent goroutine writers")
- mountOptions.cacheDir = cmdMount.Flag.String("cacheDir", os.TempDir(), "local cache directory for file chunks and meta data")
- mountOptions.cacheSizeMB = cmdMount.Flag.Int64("cacheCapacityMB", 0, "file chunk read cache capacity in MB")
- mountOptions.cacheDirWrite = cmdMount.Flag.String("cacheDirWrite", os.TempDir(), "buffer writes mostly for large files")
+ 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.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")