Unmount unmounts the mountpoint
(mountpoint string, notify bool)
| 165 | |
| 166 | // Unmount unmounts the mountpoint |
| 167 | func 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 |
| 179 | type FS struct { |
no outgoing calls
no test coverage detected