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.
return -errno;
fi->fh = res;
+ fi->parallel_direct_writes = 1;
return 0;
}
return -errno;
fi->fh = res;
+ fi->parallel_direct_writes = 1;
return 0;
}
return -errno;
fi->fh = fd;
+ fi->parallel_direct_writes = 1;
return 0;
}
return -errno;
fi->fh = fd;
+ fi->parallel_direct_writes = 1;
return 0;
}
if (fs.direct_io)
fi->direct_io = 1;
+ fi->parallel_direct_writes = 1;
+
Inode& inode = get_inode(e.ino);
lock_guard<mutex> g {inode.m};
inode.nopen++;
if (fs.direct_io)
fi->direct_io = 1;
+ fi->parallel_direct_writes = 1;
+
fi->fh = fd;
fuse_reply_open(req, fi);
}
else if (lo->cache == CACHE_ALWAYS)
fi->keep_cache = 1;
+ fi->parallel_direct_writes = 1;
+
err = lo_do_lookup(req, parent, name, &e);
if (err)
fuse_reply_err(req, err);
fi->direct_io = 1;
else if (lo->cache == CACHE_ALWAYS)
fi->keep_cache = 1;
+
+ fi->parallel_direct_writes = 1;
+
fuse_reply_open(req, fi);
}