diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-11-08 07:37:34 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-11-08 07:37:34 -0800 |
| commit | cbd94b18a5c86053768e4e20e43131b5ca6d19a5 (patch) | |
| tree | ca7bb8410520fcdb5123d5eb033ebec234cde112 /weed/command/mount_std.go | |
| parent | 6e119235514b365a5131b3ca4c8222d411167d4d (diff) | |
| download | seaweedfs-cbd94b18a5c86053768e4e20e43131b5ca6d19a5.tar.xz seaweedfs-cbd94b18a5c86053768e4e20e43131b5ca6d19a5.zip | |
improve "ls -al" performance for large directory
Diffstat (limited to 'weed/command/mount_std.go')
| -rw-r--r-- | weed/command/mount_std.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go index 92dcc9008..f682eebfa 100644 --- a/weed/command/mount_std.go +++ b/weed/command/mount_std.go @@ -5,13 +5,14 @@ package command import ( "fmt" "runtime" + "strings" + "time" "bazil.org/fuse" "bazil.org/fuse/fs" "github.com/chrislusf/seaweedfs/weed/filesys" "github.com/chrislusf/seaweedfs/weed/glog" "github.com/chrislusf/seaweedfs/weed/util" - "strings" ) func runMount(cmd *Command, args []string) bool { @@ -72,6 +73,7 @@ func runMount(cmd *Command, args []string) bool { ChunkSizeLimit: int64(*mountOptions.chunkSizeLimitMB) * 1024 * 1024, DataCenter: *mountOptions.dataCenter, DirListingLimit: *mountOptions.dirListingLimit, + EntryCacheTtl: 3 * time.Second, })) if err != nil { fuse.Unmount(*mountOptions.dir) |
