MCPcopy Create free account
hub / github.com/plexdrive/plexdrive / Unmount

Function Unmount

mount/mount.go:167–176  ·  view source on GitHub ↗

Unmount unmounts the mountpoint

(mountpoint string, notify bool)

Source from the content-addressed store, hash-verified

165
166// Unmount unmounts the mountpoint
167func Unmount(mountpoint string, notify bool) error {
168 if notify {
169 Log.Infof("Unmounting path %v", mountpoint)
170 }
171 if err := sdnotify.Stopping(); nil != err {
172 Log.Debugf("Notify systemd: stopping")
173 }
174 fuse.Unmount(mountpoint)
175 return nil
176}
177
178// FS the fuse filesystem
179type FS struct {

Callers 2

checkOsSignalsFunction · 0.92
MountFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected