diff options
Diffstat (limited to 'weed/command')
| -rw-r--r-- | weed/command/mount.go | 2 | ||||
| -rw-r--r-- | weed/command/mount_std.go | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/weed/command/mount.go b/weed/command/mount.go index 440aca8c6..97207f7f9 100644 --- a/weed/command/mount.go +++ b/weed/command/mount.go @@ -21,6 +21,7 @@ type MountOptions struct { umaskString *string nonempty *bool outsideContainerClusterMode *bool + asyncMetaDataCaching *bool } var ( @@ -49,6 +50,7 @@ func init() { mountCpuProfile = cmdMount.Flag.String("cpuprofile", "", "cpu profile output file") mountMemProfile = cmdMount.Flag.String("memprofile", "", "memory profile output file") mountOptions.outsideContainerClusterMode = cmdMount.Flag.Bool("outsideContainerClusterMode", false, "allows other users to access the file system") + mountOptions.asyncMetaDataCaching = cmdMount.Flag.Bool("asyncMetaDataCaching", true, "async meta data caching. this feature will be permanent and this option will be removed.") } var cmdMount = &Command{ diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go index 915754166..abcf85110 100644 --- a/weed/command/mount_std.go +++ b/weed/command/mount_std.go @@ -170,6 +170,7 @@ func RunMount(option *MountOptions, umask os.FileMode) bool { MountMtime: time.Now(), Umask: umask, OutsideContainerClusterMode: *mountOptions.outsideContainerClusterMode, + AsyncMetaDataCaching: *mountOptions.asyncMetaDataCaching, Cipher: cipher, }) |
