impl File.info()

master
WangRunji 6 years ago
parent 80d72a9853
commit fe473bc987

@ -1,4 +1,4 @@
use vfs::{INode, Result}; use vfs::{INode, Result, FileInfo};
use alloc::sync::Arc; use alloc::sync::Arc;
pub struct File { pub struct File {
@ -26,4 +26,8 @@ impl File {
self.offset += len; self.offset += len;
Ok(len) Ok(len)
} }
pub fn info(&self) -> Result<FileInfo> {
self.inode.info()
}
} }
Loading…
Cancel
Save