summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2022-01-03 07:13:53 -0600
committerAlejandro Soto <alejandro@34project.org>2022-01-03 07:13:53 -0600
commit2b6a6881cb1e816f7eb0327c0bef5e643889af2c (patch)
treef1cd17faf3666c8394f7d489278e9663453b8ddd /examples
parentdc95a1a9f4abed042d2350eda2e870de20545be9 (diff)
Split io::Known into io::Known and io::Stat
Diffstat (limited to '')
-rw-r--r--examples/ext2.rs12
1 files changed, 10 insertions, 2 deletions
diff --git a/examples/ext2.rs b/examples/ext2.rs
index 025802f..fc39567 100644
--- a/examples/ext2.rs
+++ b/examples/ext2.rs
@@ -31,7 +31,7 @@ use nix::{
};
use blown_fuse::{
- io::{Attrs, Entry, FsInfo, Known},
+ io::{Attrs, Entry, FsInfo, Known, Stat},
mount::{mount_sync, Options},
ops::{Getattr, Init, Lookup, Readdir, Readlink, Statfs},
session::{Dispatch, Start},
@@ -433,7 +433,7 @@ impl Ext2 {
}
}
-impl Known for Resolved {
+impl Stat for Resolved {
fn ino(&self) -> Ino {
self.ino
}
@@ -479,6 +479,14 @@ impl Known for Resolved {
(attrs, Ttl::MAX)
}
+}
+
+impl Known for Resolved {
+ type Inode = Resolved;
+
+ fn inode(&self) -> &Self::Inode {
+ self
+ }
fn unveil(self) {}
}