add `in_use` method for `Inode` to check whether there are any hard links
parent
c798b2bdb2
commit
7dd27917bd
|
@ -119,6 +119,10 @@ impl Inode {
|
|||
|
||||
Ok(inode)
|
||||
}
|
||||
|
||||
pub fn in_use(&self) -> bool {
|
||||
self.hard_links > 0
|
||||
}
|
||||
}
|
||||
|
||||
bitflags! {
|
||||
|
|
Reference in New Issue