From 47cbb3373edb5ddb882a2cbadb8fbf3d64732bf9 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Tue, 28 Dec 2021 17:33:43 -0600 Subject: Add Reply::not_permitted() --- src/fuse/io.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/fuse/io.rs b/src/fuse/io.rs index 5f85e4d..823eb76 100644 --- a/src/fuse/io.rs +++ b/src/fuse/io.rs @@ -104,6 +104,10 @@ impl<'o, O: Operation<'o>> Reply<'o, O> { self.fail(Errno::ENOSYS) } + pub fn not_permitted(self) -> Done<'o> { + self.fail(Errno::EPERM) + } + pub fn io_error(self) -> Done<'o> { self.fail(Errno::EIO) } -- cgit v1.2.3