diff options
| author | chrislu <chris.lu@gmail.com> | 2024-09-04 01:19:14 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2024-09-04 01:19:14 -0700 |
| commit | 7367b976b05bfa69158a60f205dec970c48f50f0 (patch) | |
| tree | b2206ec7b05e34ed95c0255ceb6da5936efdc00b /weed/command/mount.go | |
| parent | 66ac82bb8f8a5c5f095387689a503f2bc0edd002 (diff) | |
| download | seaweedfs-7367b976b05bfa69158a60f205dec970c48f50f0.tar.xz seaweedfs-7367b976b05bfa69158a60f205dec970c48f50f0.zip | |
weed mount, weed dav add option to force cache
Diffstat (limited to 'weed/command/mount.go')
| -rw-r--r-- | weed/command/mount.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/command/mount.go b/weed/command/mount.go index f5972fd30..6485d4c0e 100644 --- a/weed/command/mount.go +++ b/weed/command/mount.go @@ -20,6 +20,7 @@ type MountOptions struct { cacheDirForRead *string cacheDirForWrite *string cacheSizeMBForRead *int64 + forceCache *bool dataCenter *string allowOthers *bool umaskString *string @@ -58,6 +59,7 @@ func init() { 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", "", "buffer writes mostly for large files") + mountOptions.forceCache = cmdMount.Flag.Bool("forceCache", true, "force to cache all reads") 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") |
