From 88925318e0a0e8707315a6ebe76b75d3806ba71b Mon Sep 17 00:00:00 2001 From: Konstantin Schukraft Date: Mon, 11 Jan 2021 17:23:53 +0100 Subject: [PATCH] Fix FreeBSD support that broke when multithreading was implemented --- fs/Makefile | 1 + fs/tabfs.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/fs/Makefile b/fs/Makefile index 658adb7..622c2df 100644 --- a/fs/Makefile +++ b/fs/Makefile @@ -36,3 +36,4 @@ unmount: killall -9 tabfs || true diskutil unmount force mnt || true fusermount -u mnt || true + umount -f mnt || true diff --git a/fs/tabfs.c b/fs/tabfs.c index 8c28dab..8a269fc 100644 --- a/fs/tabfs.c +++ b/fs/tabfs.c @@ -479,7 +479,9 @@ int main(int argc, char **argv) { argv[0], "-f", #if !defined(__APPLE__) +#if !defined(__FreeBSD__) "-oauto_unmount", +#endif #endif "-odirect_io", getenv("TABFS_MOUNT_DIR"),