aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorOmar Rizwan <omar.rizwan@gmail.com>2020-10-27 20:53:39 -0700
committerOmar Rizwan <omar.rizwan@gmail.com>2020-10-27 20:53:39 -0700
commita9cb8e14af87af949e44f20fc40591eebeadcb66 (patch)
treeb6ebe0e74037555daf7c47dc85ab95304c760d0d /fs
parent2426e9f7a5aa7989573151270fa090b4c93ad53c (diff)
working on refactor of fs spec. also Linux port and README stuff.
Diffstat (limited to 'fs')
-rw-r--r--fs/tabfs.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/tabfs.c b/fs/tabfs.c
index 3e5c243..8c6f82d 100644
--- a/fs/tabfs.c
+++ b/fs/tabfs.c
@@ -234,12 +234,16 @@ main(int argc, char **argv)
char killcmd[1000];
sprintf(killcmd, "pgrep tabfs | grep -v %d | xargs kill -9", getpid());
system(killcmd);
+#ifdef __APPLE__
system("diskutil umount force mnt > /dev/null");
+#else
+ system("fusermount -u mnt");
+#endif
FILE* log = fopen("log.txt", "w");
for (int i = 0; i < argc; i++) {
fprintf(log, "arg%d: [%s]\n", i, argv[i]); fflush(log);
}
- char* fuse_argv[] = {argv[0], "-odirect_io,noappledouble", "-s", "-f", "mnt"};
+ char* fuse_argv[] = {argv[0], "-odirect_io", "-s", "-f", "mnt"};
return fuse_main(5, fuse_argv, &tabfs_filesystem_operations, NULL);
}