UnmountAll unmounts from the provided path
(mount string, flags int)
| 169 | |
| 170 | // UnmountAll unmounts from the provided path |
| 171 | func UnmountAll(mount string, flags int) error { |
| 172 | if mount == "" { |
| 173 | // This isn't an error, per the EINVAL handling in the Linux version |
| 174 | return nil |
| 175 | } |
| 176 | if _, err := os.Stat(mount); os.IsNotExist(err) { |
| 177 | return nil |
| 178 | } |
| 179 | |
| 180 | return Unmount(mount, flags) |
| 181 | } |
| 182 | |
| 183 | // UnmountRecursive unmounts from the provided path |
| 184 | func UnmountRecursive(mount string, flags int) error { |
searching dependent graphs…