summaryrefslogtreecommitdiff
path: root/9ns/src/fuse.zig
diff options
context:
space:
mode:
Diffstat (limited to '9ns/src/fuse.zig')
-rw-r--r--9ns/src/fuse.zig6
1 files changed, 6 insertions, 0 deletions
diff --git a/9ns/src/fuse.zig b/9ns/src/fuse.zig
index e45abc2..5f7b22a 100644
--- a/9ns/src/fuse.zig
+++ b/9ns/src/fuse.zig
@@ -27,6 +27,12 @@ pub const root_id: u64 = 1;
pub const FOPEN_DIRECT_IO: u32 = 1 << 0;
pub const FOPEN_KEEP_CACHE: u32 = 1 << 1;
pub const FOPEN_NONSEEKABLE: u32 = 1 << 2;
+/// Direct writes to one inode go to the server side by side, not one at a
+/// time under the inode's lock (protocol 7.38, Linux 6.2; older kernels
+/// ignore the bit). A write the server answers only once another write to
+/// the same file has run (an Edit whose filter writes the ctl it came by)
+/// otherwise waits on itself.
+pub const FOPEN_PARALLEL_DIRECT_WRITES: u32 = 1 << 6;
pub const FUSE_ASYNC_READ: u32 = 1 << 0;
/// The kernel passes O_TRUNC in OPEN instead of a separate SETATTR(size=0); 9P has OTRUNC for exactly this.