Windows check mount support
This commit is contained in:
parent
07e3705f09
commit
433deeab5e
3 changed files with 27 additions and 3 deletions
|
|
@ -25,6 +25,7 @@ func terminateProcess(pid int) error {
|
|||
// This is never used except for a band-aid that would check
|
||||
// that there are no double-mounts.
|
||||
func checkDeviceSeemsMounted(devPathPrefix string) (bool, error) {
|
||||
// Quite a bit hacky implementation, but it's to be used as a failsafe band-aid anyway.
|
||||
absDevPathPrefix, err := filepath.Abs(devPathPrefix)
|
||||
if err != nil {
|
||||
return false, errors.Wrap(err, "get abs path")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue