mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-19 16:16:48 +00:00
Use unmount() on FreeBSD for ENOTCONN umount
This commit is contained in:
committed by
trapexit
parent
bea31543a0
commit
6d6d73c7b3
@@ -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_);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user