Skip to content

Commit f7983ab

Browse files
committed
Flush on unmount
1 parent 3d9f9b7 commit f7983ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/fs.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,7 @@ impl<IO: Read + Write + Seek, TP, OCC> FileSystem<IO, TP, OCC> {
577577
fn unmount_internal(&self) -> Result<(), Error<IO::Error>> {
578578
self.flush_fs_info()?;
579579
self.set_dirty_flag(false)?;
580+
self.disk.borrow_mut().flush()?;
580581
Ok(())
581582
}
582583

0 commit comments

Comments
 (0)