summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2021-12-29 04:56:41 -0600
committerAlejandro Soto <alejandro@34project.org>2021-12-29 05:20:49 -0600
commit48efcd0ce8c8a9ac51dc80c6ec49c63f6694b031 (patch)
treebdb330a1bb59958ca914be40c906112d25b1eb39 /src/lib.rs
parent606846f23726c3472e6e12b17447b102ad6158cc (diff)
Implement buffered readdir
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index a1c8ea0..790a91a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -64,6 +64,11 @@ impl Ino {
/// number, while replies involving the root inode will always report `Ino::ROOT` to the FUSE
/// client. Therefore, filesystems do not have to be aware of `Ino::ROOT` in most cases.
pub const ROOT: Self = Ino(proto::ROOT_ID);
+
+ /// Extracts the raw inode number.
+ pub fn as_raw(self) -> u64 {
+ self.0
+ }
}
impl std::fmt::Display for Ino {