diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-09-03 00:07:22 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-09-03 00:07:22 -0700 |
| commit | 7e1aad0b54bd3d6d1bc2bd8940aeeaf7186bcfa4 (patch) | |
| tree | 6aabe62fc9fd7d02ee92037386bb54de63910080 /weed/command/mount.go | |
| parent | 68e878adb5d63cb961fdff8585bd6eede3b616f1 (diff) | |
| download | seaweedfs-7e1aad0b54bd3d6d1bc2bd8940aeeaf7186bcfa4.tar.xz seaweedfs-7e1aad0b54bd3d6d1bc2bd8940aeeaf7186bcfa4.zip | |
mount: map uid/gid between local and filer
Diffstat (limited to 'weed/command/mount.go')
| -rw-r--r-- | weed/command/mount.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/weed/command/mount.go b/weed/command/mount.go index a0e573423..7bf59cdc7 100644 --- a/weed/command/mount.go +++ b/weed/command/mount.go @@ -20,6 +20,8 @@ type MountOptions struct { umaskString *string nonempty *bool outsideContainerClusterMode *bool + uidMap *string + gidMap *string } var ( @@ -47,6 +49,8 @@ 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.uidMap = cmdMount.Flag.String("map.uid", "", "map local uid to uid on filer, comma-separated <local_uid>:<filer_uid>") + mountOptions.gidMap = cmdMount.Flag.String("map.gid", "", "map local gid to gid on filer, comma-separated <local_gid>:<filer_gid>") } var cmdMount = &Command{ |
