From: Felipe Barriga Richards Date: Mon, 27 Feb 2017 00:00:08 +0000 (-0300) Subject: fuse_xattrs.c: Force to run single-threaded. Update ChangeLog / TODO.md X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=eb40672c499445e45975c064baec138bc72384f0;p=rrq%2Ffuse_xattrs.git fuse_xattrs.c: Force to run single-threaded. Update ChangeLog / TODO.md --- 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); }