From c1d3dea4f77d0ebebc27877ed5a3540fef2e96fd Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Mon, 3 Jan 2022 12:01:13 -0600 Subject: Implement flush operation --- src/fuse/ops.rs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/fuse/ops.rs') 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 @@ -489,6 +489,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; -- cgit v1.2.3