From dfc937f23b3ace3e15a38c320480e35e6c843c2b Mon Sep 17 00:00:00 2001 From: Stepan Usatiuk Date: Sat, 15 Jul 2023 09:07:46 +0200 Subject: [PATCH] make fuse multithreaded (should work) --- src/fuse/srcs/RepoFS.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/fuse/srcs/RepoFS.cpp b/src/fuse/srcs/RepoFS.cpp index 76efd12..857b887 100644 --- a/src/fuse/srcs/RepoFS.cpp +++ b/src/fuse/srcs/RepoFS.cpp @@ -69,7 +69,6 @@ static int rfsReaddir(const char *path, void *buf, fuse_fill_dir_t filler, for (auto const &e: entry->children) { auto pstr = e.second->name; - std::cout << pstr << std::endl; filler(buf, pstr.c_str(), NULL, 0); } @@ -172,7 +171,7 @@ void RepoFS::start(Repository *repo, std::string path) { } - int argc = 5; - char *argv[] = {"", "-d", "-s", "-f", const_cast(path.c_str())}; + int argc = 3; + char *argv[] = {"", "-f", const_cast(path.c_str())}; std::cout << static_cast(fuse_main(argc, argv, &rfsOps, nullptr)); }