diff options
| author | Alejandro Soto <alejandro@34project.org> | 2021-12-28 17:33:43 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2021-12-28 19:43:45 -0600 |
| commit | 47cbb3373edb5ddb882a2cbadb8fbf3d64732bf9 (patch) | |
| tree | dd4db78fa3c7ba7ac6b058f05093b311ae90bcf0 | |
| parent | f23554447c5d75e828eaf67a8b15d73ad7005420 (diff) | |
Add Reply::not_permitted()
| -rw-r--r-- | src/fuse/io.rs | 4 |
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) } |
