X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=fuse_xattrs.c;h=242e1717f1d27e43aeda694e77e260ba7dd6eeb3;hb=7bbf49883780af4d17e264b6a0f03daa543f9077;hp=b0461a0b399e191bf43631f1311e0c55dca131d2;hpb=af0aaaa2a3edc0634ebb0a32750df759ab3eb515;p=rrq%2Ffuse_xattrs.git diff --git a/fuse_xattrs.c b/fuse_xattrs.c index b0461a0..242e171 100644 --- a/fuse_xattrs.c +++ b/fuse_xattrs.c @@ -167,22 +167,6 @@ static struct fuse_operations xmp_oper = { .removexattr = xmp_removexattr, }; - -int is_directory(const char *path) { - struct stat statbuf; - if (stat(path, &statbuf) != 0) { - fprintf(stderr, "cannot get source directory status: %s\n", path); - return -1; - } - - if (!S_ISDIR(statbuf.st_mode)) { - fprintf(stderr, "source directory must be a directory: %s\n", path); - return -1; - } - - return 1; -} - /** * Check if the path is valid. If it's a relative path, * prepend the working path. @@ -295,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); }