mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-28 03:43:23 +00:00
Implement sync for ext2 and exfat
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
32572e22d9
commit
300403e3eb
@ -191,11 +191,15 @@ impl Inode for Ext2Inode {
|
||||
}
|
||||
|
||||
fn sync_all(&self) -> Result<()> {
|
||||
self.sync_all()
|
||||
self.sync_all()?;
|
||||
self.fs().block_device().sync()?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn sync_data(&self) -> Result<()> {
|
||||
self.sync_data()
|
||||
self.sync_data()?;
|
||||
self.fs().block_device().sync()?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn fs(&self) -> Arc<dyn FileSystem> {
|
||||
|
Reference in New Issue
Block a user