diff options
author | Omar Rizwan <omar.rizwan@gmail.com> | 2020-10-27 20:53:39 -0700 |
---|---|---|
committer | Omar Rizwan <omar.rizwan@gmail.com> | 2020-10-27 20:53:39 -0700 |
commit | a9cb8e14af87af949e44f20fc40591eebeadcb66 (patch) | |
tree | b6ebe0e74037555daf7c47dc85ab95304c760d0d /fs/tabfs.c | |
parent | 2426e9f7a5aa7989573151270fa090b4c93ad53c (diff) |
working on refactor of fs spec. also Linux port and README stuff.
Diffstat (limited to 'fs/tabfs.c')
-rw-r--r-- | fs/tabfs.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); } |