Skip to content

Commit 85772cd

Browse files
committed
Flush on unmount
1 parent ee33c37 commit 85772cd

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Bug fixes:
4949
* Fill FAT32 root directory clusters with zeros after allocation to avoid interpreting old data as directory entries
5050
* Put '.' and '..' in the first two directory entries. (fixes "Expected a valid '.' entry in this slot." fsck error)
5151
* Set the cluster number to 0 in the ".." directory entry if it points to the root dir
52+
* Flush on unmount
5253

5354
0.3.4 (2020-07-20)
5455
------------------

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)