SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
FUSE mount: remove DirListCacheLimit
Chris Lueed525b71740
diff --git a/weed/command/mount.go b/weed/command/mount.goindex 440aca8c62..a0e5734239 100644--- a/weed/command/mount.go+++ b/weed/command/mount.go@@ -9,7 +9,6 @@ type MountOptions struct {filerMountRootPath *stringdir *stringdirAutoCreate *bool- dirListCacheLimit *int64collection *stringreplication *stringttlSec *int@@ -35,7 +34,6 @@ func init() {mountOptions.filerMountRootPath = cmdMount.Flag.String("filer.path", "/", "mount this remote path from filer server")mountOptions.dir = cmdMount.Flag.String("dir", ".", "mount weed filer to this directory")mountOptions.dirAutoCreate = cmdMount.Flag.Bool("dirAutoCreate", false, "auto create the directory to mount to")- mountOptions.dirListCacheLimit = cmdMount.Flag.Int64("dirListCacheLimit", 1000000, "limit cache size to speed up directory long format listing")mountOptions.collection = cmdMount.Flag.String("collection", "", "collection to create the files")mountOptions.replication = cmdMount.Flag.String("replication", "", "replication(e.g. 000, 001) to create to files. If empty, let filer decide.")mountOptions.ttlSec = cmdMount.Flag.Int("ttl", 0, "file ttl in seconds")diff --git a/weed/command/mount_std.go b/weed/command/mount_std.goindex 56df740c47..3975575e95 100644--- a/weed/command/mount_std.go+++ b/weed/command/mount_std.go@@ -165,7 +165,6 @@ func RunMount(option *MountOptions, umask os.FileMode) bool {CacheDir: *option.cacheDir,CacheSizeMB: *option.cacheSizeMB,DataCenter: *option.dataCenter,- DirListCacheLimit: *option.dirListCacheLimit,EntryCacheTtl: 3 * time.Second,MountUid: uid,MountGid: gid,diff --git a/weed/filesys/dir.go b/weed/filesys/dir.goindex 77d01d463d..2214b1ac74 100644--- a/weed/filesys/dir.go+++ b/weed/filesys/dir.go@@ -3,6 +3,7 @@ package filesysimport ("bytes""context"+ "math""os""strings""time"@@ -277,7 +278,7 @@ func (dir *Dir) ReadDirAll(ctx context.Context) (ret []fuse.Dirent, err error) {dirPath := util.FullPath(dir.FullPath())meta_cache.EnsureVisited(dir.wfs.metaCache, dir.wfs, dirPath)- listedEntries, listErr := dir.wfs.metaCache.ListDirectoryEntries(context.Background(), util.FullPath(dir.FullPath()), "", false, int(dir.wfs.option.DirListCacheLimit))+ listedEntries, listErr := dir.wfs.metaCache.ListDirectoryEntries(context.Background(), util.FullPath(dir.FullPath()), "", false, int(math.MaxInt32))if listErr != nil {glog.Errorf("list meta cache: %v", listErr)return nil, fuse.EIOdiff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.goindex e416930487..68ad987bea 100644--- a/weed/filesys/wfs.go+++ b/weed/filesys/wfs.go@@ -34,7 +34,6 @@ type Option struct {CacheDir stringCacheSizeMB int64DataCenter string- DirListCacheLimit int64EntryCacheTtl time.DurationUmask os.FileMode