mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-26 02:43:24 +00:00
Add support for chmod, fchmod, fchmodat
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
743344e3fc
commit
3600a3a439
@ -218,6 +218,10 @@ impl Vnode {
|
||||
self.inner.read().inode.metadata().mode
|
||||
}
|
||||
|
||||
pub fn set_inode_mode(&self, mode: InodeMode) {
|
||||
self.inner.read().inode.set_mode(mode)
|
||||
}
|
||||
|
||||
pub fn len(&self) -> usize {
|
||||
self.inner.read().inode.len()
|
||||
}
|
||||
|
Reference in New Issue
Block a user