mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-29 14:23:22 +00:00
Add support for the sync and fsync syscall
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
9473889c6b
commit
5bc1312a91
@ -383,6 +383,11 @@ impl Dentry {
|
||||
self.inode.fs()
|
||||
}
|
||||
|
||||
/// Flushes all changes made to data and metadata to the device.
|
||||
pub fn sync(&self) -> Result<()> {
|
||||
self.inode.sync()
|
||||
}
|
||||
|
||||
/// Get the inode metadata
|
||||
pub fn inode_metadata(&self) -> Metadata {
|
||||
self.inode.metadata()
|
||||
|
Reference in New Issue
Block a user