diff options
| author | Weihao Jiang <weihau.chiang@gmail.com> | 2025-05-23 00:50:07 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-22 09:50:07 -0700 |
| commit | 874b4a553594e94b1b21f7f09c1c9a618a3fac78 (patch) | |
| tree | b721c2c06d4fdb76ec6ae26ae387671ab72eaab4 /weed/command/mount.go | |
| parent | 165af32d6b738daa14b84fb6e3c8891f4b46135b (diff) | |
| download | seaweedfs-874b4a553594e94b1b21f7f09c1c9a618a3fac78.tar.xz seaweedfs-874b4a553594e94b1b21f7f09c1c9a618a3fac78.zip | |
Ensure `weed fuse` master process exits after mounted (#6809)
* Ensure fuse master process wait for mounted
* Validate parent PID input in fuse command
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 4fbcc0505..21e49f236 100644 --- a/weed/command/mount.go +++ b/weed/command/mount.go @@ -34,6 +34,7 @@ type MountOptions struct { localSocket *string disableXAttr *bool extraOptions []string + fuseCommandPid int } var ( @@ -72,6 +73,7 @@ func init() { mountOptions.debugPort = cmdMount.Flag.Int("debug.port", 6061, "http port for debugging") mountOptions.localSocket = cmdMount.Flag.String("localSocket", "", "default to /tmp/seaweedfs-mount-<mount_dir_hash>.sock") mountOptions.disableXAttr = cmdMount.Flag.Bool("disableXAttr", false, "disable xattr") + mountOptions.fuseCommandPid = 0 mountCpuProfile = cmdMount.Flag.String("cpuprofile", "", "cpu profile output file") mountMemProfile = cmdMount.Flag.String("memprofile", "", "memory profile output file") |
