diff options
Diffstat (limited to 'src/lib/cross_osx.cc')
| -rw-r--r-- | src/lib/cross_osx.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/cross_osx.cc b/src/lib/cross_osx.cc index c52dfc434..a363f0570 100644 --- a/src/lib/cross_osx.cc +++ b/src/lib/cross_osx.cc @@ -485,3 +485,12 @@ config_path () p /= "2"; return p; } + +bool +unmount_device (string device) +{ + int const r = umount(device.c_str()); + LOG_DISK("Tried to unmount %1 and got %2 and %3", device, r, errno); + return r == 0; + +} |
