Skip to content

Commit 169bb26

Browse files
committed
Write out the update info sector when the volume is closed.
1 parent fa664f4 commit 169bb26

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/volume_mgr.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,13 @@ where
324324
}
325325

326326
let volume_idx = self.get_volume_by_id(volume)?;
327+
328+
match &mut self.open_volumes[volume_idx].volume_type {
329+
VolumeType::Fat(fat_volume) => {
330+
fat_volume.update_info_sector(&self.block_device)?;
331+
}
332+
}
333+
327334
self.open_volumes.swap_remove(volume_idx);
328335

329336
Ok(())

0 commit comments

Comments
 (0)