diff --git a/src/sys/inode.rs b/src/sys/inode.rs index f40015f..3e6241b 100644 --- a/src/sys/inode.rs +++ b/src/sys/inode.rs @@ -119,6 +119,10 @@ impl Inode { Ok(inode) } + + pub fn in_use(&self) -> bool { + self.hard_links > 0 + } } bitflags! {