From 48efcd0ce8c8a9ac51dc80c6ec49c63f6694b031 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Wed, 29 Dec 2021 04:56:41 -0600 Subject: Implement buffered readdir --- src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/lib.rs') 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 { -- cgit v1.2.3