diff options
| author | Alejandro Soto <alejandro@34project.org> | 2022-01-03 12:01:13 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2022-01-03 12:01:13 -0600 |
| commit | c1d3dea4f77d0ebebc27877ed5a3540fef2e96fd (patch) | |
| tree | 3f2ee65339f6294ed4a3696d9bf214b6e4f0de57 /src/fuse/ops.rs | |
| parent | 988ce8bbc2a33f6a90adecb7547a88cfbf7acaf2 (diff) | |
Implement flush operation
Diffstat (limited to 'src/fuse/ops.rs')
| -rw-r--r-- | src/fuse/ops.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/fuse/ops.rs b/src/fuse/ops.rs index 31b2b75..6bb307a 100644 --- a/src/fuse/ops.rs +++ b/src/fuse/ops.rs @@ -490,6 +490,25 @@ op! { } op! { + Flush { + type RequestBody = &'o proto::FlushIn; + type ReplyTail = (); + } + + impl Request { + pub fn handle(&self) -> u64 { + self.body.fh + } + } + + impl Reply { + pub fn ok(self) -> Done<'o> { + self.empty() + } + } +} + +op! { Opendir { type RequestBody = &'o proto::OpendirIn; type ReplyTail = (); |
