mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-25 18:40:18 -04:00
Use unmount() on FreeBSD for ENOTCONN umount
This commit is contained in:
parent
bea31543a0
commit
631efd8994
1 changed files with 5 additions and 0 deletions
|
|
@ -64,7 +64,12 @@ _realpath_mountpoint(const char *path_,
|
|||
// If it looks like a disconnected fuse mount try to umount it
|
||||
if((not rv) && (errno == ENOTCONN))
|
||||
{
|
||||
#if defined __FreeBSD__
|
||||
unmount(path_,0);
|
||||
#else
|
||||
umount(path_);
|
||||
#endif
|
||||
|
||||
rv = realpath(path_,resolved_path_);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue