diff options
| author | chrislu <chris.lu@gmail.com> | 2024-09-04 01:38:29 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2024-09-04 01:38:29 -0700 |
| commit | 18afdb15b6df2835ca600d566997fa7410e1ec9b (patch) | |
| tree | baabf17ce97f2533571420ff1a9563406fac8425 /weed/command | |
| parent | 7367b976b05bfa69158a60f205dec970c48f50f0 (diff) | |
| download | seaweedfs-18afdb15b6df2835ca600d566997fa7410e1ec9b.tar.xz seaweedfs-18afdb15b6df2835ca600d566997fa7410e1ec9b.zip | |
Revert "weed mount, weed dav add option to force cache"
This reverts commit 7367b976b05bfa69158a60f205dec970c48f50f0.
Diffstat (limited to 'weed/command')
| -rw-r--r-- | weed/command/mount.go | 2 | ||||
| -rw-r--r-- | weed/command/mount_std.go | 1 | ||||
| -rw-r--r-- | weed/command/webdav.go | 3 |
3 files changed, 0 insertions, 6 deletions
diff --git a/weed/command/mount.go b/weed/command/mount.go index 6485d4c0e..f5972fd30 100644 --- a/weed/command/mount.go +++ b/weed/command/mount.go @@ -20,7 +20,6 @@ type MountOptions struct { cacheDirForRead *string cacheDirForWrite *string cacheSizeMBForRead *int64 - forceCache *bool dataCenter *string allowOthers *bool umaskString *string @@ -59,7 +58,6 @@ 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") diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go index 4508f520f..f85e7386d 100644 --- a/weed/command/mount_std.go +++ b/weed/command/mount_std.go @@ -235,7 +235,6 @@ func RunMount(option *MountOptions, umask os.FileMode) bool { CacheDirForRead: *option.cacheDirForRead, CacheSizeMBForRead: *option.cacheSizeMBForRead, CacheDirForWrite: cacheDirForWrite, - ForceCache: *option.forceCache, DataCenter: *option.dataCenter, Quota: int64(*option.collectionQuota) * 1024 * 1024, MountUid: uid, diff --git a/weed/command/webdav.go b/weed/command/webdav.go index b5f8a64d2..1d1a43eda 100644 --- a/weed/command/webdav.go +++ b/weed/command/webdav.go @@ -32,7 +32,6 @@ type WebDavOption struct { tlsCertificate *string cacheDir *string cacheSizeMB *int64 - forceCache *bool maxMB *int } @@ -47,7 +46,6 @@ func init() { webDavStandaloneOptions.tlsCertificate = cmdWebDav.Flag.String("cert.file", "", "path to the TLS certificate file") webDavStandaloneOptions.cacheDir = cmdWebDav.Flag.String("cacheDir", os.TempDir(), "local cache directory for file chunks") webDavStandaloneOptions.cacheSizeMB = cmdWebDav.Flag.Int64("cacheCapacityMB", 0, "local cache capacity in MB") - webDavStandaloneOptions.forceCache = cmdWebDav.Flag.Bool("forceCache", false, "force to cache reads to local disk") webDavStandaloneOptions.maxMB = cmdWebDav.Flag.Int("maxMB", 4, "split files larger than the limit") webDavStandaloneOptions.filerRootPath = cmdWebDav.Flag.String("filer.path", "/", "use this remote path from filer server") } @@ -120,7 +118,6 @@ func (wo *WebDavOption) startWebDav() bool { Cipher: cipher, CacheDir: util.ResolvePath(*wo.cacheDir), CacheSizeMB: *wo.cacheSizeMB, - ForceCache: *wo.forceCache, MaxMB: *wo.maxMB, }) if webdavServer_err != nil { |
