Skip to content

Commit 0dcab16

Browse files
MurmeleMartin Marmsoler
authored andcommitted
fix test
1 parent d236739 commit 0dcab16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/volume_mgr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ where
386386
let mut fat_table =
387387
fat::FatTable::create_from_bytes(&mut block.contents, volume.get_fat_type())
388388
.map_err(Error::FormatError)?;
389-
if !fat_table.dirty() {
389+
if fat_table.dirty() != dirty {
390390
fat_table.set_dirty(dirty);
391391
if volume.fat_nums == 1 || volume.fat_nums == 2 {
392392
self.block_device.write(&blocks, fat_table1_start)?;

0 commit comments

Comments
 (0)