mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-26 02:43:24 +00:00
Add Debug support for some fs components
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
acfbc7efdc
commit
55267f0d81
@ -255,6 +255,15 @@ impl Vnode {
|
||||
}
|
||||
}
|
||||
|
||||
impl Debug for Vnode {
|
||||
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
|
||||
f.debug_struct("Vnode")
|
||||
.field("inode", &self.inner.read().inode)
|
||||
.field("page_cache", &self.inner.read().page_cache)
|
||||
.finish()
|
||||
}
|
||||
}
|
||||
|
||||
pub struct VnodeWriter<'a> {
|
||||
inner: &'a Vnode,
|
||||
offset: usize,
|
||||
|
Reference in New Issue
Block a user