From 063ef8e03ff669579d3a441bece702283b7654e3 Mon Sep 17 00:00:00 2001 From: Bernd Schubert Date: Tue, 10 Oct 2023 13:18:36 +0200 Subject: Enabled parallel direct IO writes for passthrough examples All these passthrough examples don't need writes to be serialized. Actually, most file systems probably handle non serialized parallel direct writes - the FOPEN_PARALLEL_DIRECT_WRITES flag is just to avoid a regression for those file system that rely on serialized DIO writes in fuse kernel. Passthrough file system forward the IO to another file system, which actually handles that internally - serialized in fuser kernel is not needed. --- example/passthrough.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'example/passthrough.c') diff --git a/example/passthrough.c b/example/passthrough.c index 5963d58..dd385c5 100644 --- a/example/passthrough.c +++ b/example/passthrough.c @@ -285,6 +285,7 @@ static int xmp_create(const char *path, mode_t mode, return -errno; fi->fh = res; + fi->parallel_direct_writes = 1; return 0; } @@ -297,6 +298,7 @@ static int xmp_open(const char *path, struct fuse_file_info *fi) return -errno; fi->fh = res; + fi->parallel_direct_writes = 1; return 0; } -- cgit v1.2.3