diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-03-21 19:14:25 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-03-21 19:14:25 -0700 |
| commit | 7c111f7b75ba2b0a95766897503997d65d05b42c (patch) | |
| tree | 0fe77e16a6ba8bf136acaa5aeb4fb7e5eb30f3aa /weed/command/mount.go | |
| parent | 3b3e063f25ee3ff58f3beab4d4197fb2d2d19eec (diff) | |
| download | seaweedfs-7c111f7b75ba2b0a95766897503997d65d05b42c.tar.xz seaweedfs-7c111f7b75ba2b0a95766897503997d65d05b42c.zip | |
FUSE mount: make "nonempty" optional
https://github.com/chrislusf/seaweedfs/issues/1094
Diffstat (limited to 'weed/command/mount.go')
| -rw-r--r-- | weed/command/mount.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/command/mount.go b/weed/command/mount.go index f1448c6cc..d4a4ba746 100644 --- a/weed/command/mount.go +++ b/weed/command/mount.go @@ -12,6 +12,7 @@ type MountOptions struct { dataCenter *string allowOthers *bool umaskString *string + nonempty *bool outsideContainerClusterMode *bool } @@ -34,6 +35,7 @@ func init() { 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") + mountOptions.nonempty = cmdMount.Flag.Bool("nonempty", false, "allows the mounting over a non-empty directory") 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") |
