summaryrefslogtreecommitdiff
path: root/src/fuse
diff options
context:
space:
mode:
Diffstat (limited to 'src/fuse')
-rw-r--r--src/fuse/ops.rs17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/fuse/ops.rs b/src/fuse/ops.rs
index f573842..250fe47 100644
--- a/src/fuse/ops.rs
+++ b/src/fuse/ops.rs
@@ -185,12 +185,11 @@ op! {
self.tail |= proto::OpenOutFlags::DIRECT_IO;
}
- /// The inode may now be accessed.
pub fn ok(self) -> Done<'o> {
self.ok_with_handle(0)
}
- fn ok_with_handle(self, handle: u64) -> Done<'o> {
+ pub fn ok_with_handle(self, handle: u64) -> Done<'o> {
let open_flags = self.tail.bits();
self.single(&proto::OpenOut {
@@ -341,6 +340,20 @@ op! {
type RequestBody = &'o proto::OpendirIn;
type ReplyTail = ();
}
+
+ impl Reply {
+ pub fn ok(self) -> Done<'o> {
+ self.ok_with_handle(0)
+ }
+
+ pub fn ok_with_handle(self, handle: u64) -> Done<'o> {
+ self.single(&proto::OpenOut {
+ fh: handle,
+ open_flags: 0,
+ padding: Default::default(),
+ })
+ }
+ }
}
op! {