summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
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) {}
}