From eb40672c499445e45975c064baec138bc72384f0 Mon Sep 17 00:00:00 2001 From: Felipe Barriga Richards Date: Sun, 26 Feb 2017 21:00:08 -0300 Subject: [PATCH] fuse_xattrs.c: Force to run single-threaded. Update ChangeLog / TODO.md --- ChangeLog | 4 +++- TODO.md | 2 +- fuse_xattrs.c | 3 +++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 167ac05..7d92361 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,4 @@ -Release 0.2 (2017-02-16) +Release 0.2 (2017-02-26) ------------------------ * Fix tests @@ -8,6 +8,8 @@ Release 0.2 (2017-02-16) * Fix crash * Remove sidecar when removing a file (same for renaming) * Optimization: don't open/close files for every operation +* Enable optimization flags on compilation (-O3) +* Force to run in a single-thread Release 0.1 (2016-10-23) ------------------------ diff --git a/TODO.md b/TODO.md index beed9d7..ecf6deb 100644 --- a/TODO.md +++ b/TODO.md @@ -1,7 +1,7 @@ TODO ---- -- Run as single-threaded by default (until we're sure that this is thread-safe) +- Check if it's thread-safe - Add mutex to avoid issues when two processes are modifying the same file. - Handle permission issues with .xattr files - Code Quality diff --git a/fuse_xattrs.c b/fuse_xattrs.c index 276d57a..242e171 100644 --- a/fuse_xattrs.c +++ b/fuse_xattrs.c @@ -279,5 +279,8 @@ int main(int argc, char *argv[]) { } umask(0); + + // disable multi-threading + fuse_opt_add_arg(&args, "-s"); return fuse_main(args.argc, args.argv, &xmp_oper, NULL); } -- 2.39.2