mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-21 07:07:25 +08:00
add placeholder for cached meta data reading
This commit is contained in:
@@ -20,6 +20,7 @@ type MountOptions struct {
|
||||
umaskString *string
|
||||
nonempty *bool
|
||||
outsideContainerClusterMode *bool
|
||||
asyncMetaDataCaching *bool
|
||||
}
|
||||
|
||||
var (
|
||||
@@ -47,6 +48,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", false, "<wip> async meta data caching")
|
||||
}
|
||||
|
||||
var cmdMount = &Command{
|
||||
|
@@ -175,6 +175,7 @@ func RunMount(option *MountOptions, umask os.FileMode) bool {
|
||||
MountMtime: time.Now(),
|
||||
Umask: umask,
|
||||
OutsideContainerClusterMode: *mountOptions.outsideContainerClusterMode,
|
||||
AsyncMetaDataCaching: *mountOptions.asyncMetaDataCaching,
|
||||
Cipher: cipher,
|
||||
}))
|
||||
|
||||
|
Reference in New Issue
Block a user