summaryrefslogtreecommitdiff
path: root/src/fuse/io.rs
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2021-12-28 17:33:43 -0600
committerAlejandro Soto <alejandro@34project.org>2021-12-28 19:43:45 -0600
commit47cbb3373edb5ddb882a2cbadb8fbf3d64732bf9 (patch)
treedd4db78fa3c7ba7ac6b058f05093b311ae90bcf0 /src/fuse/io.rs
parentf23554447c5d75e828eaf67a8b15d73ad7005420 (diff)
Add Reply::not_permitted()
Diffstat (limited to '')
-rw-r--r--src/fuse/io.rs4
1 files changed, 4 insertions, 0 deletions
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)
}