We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5f6265 commit 7297d1cCopy full SHA for 7297d1c
src/fat.rs
@@ -26,7 +26,7 @@ pub fn create_fat_filesystem(
26
.truncate(true)
27
.open(out_fat_path)
28
.unwrap();
29
- let fat_size_padded_and_rounded = ((needed_size + 1024 * 64 - 1) / MB + 1) * MB;
+ let fat_size_padded_and_rounded = (((needed_size + 1024 * 64 - 1) / MB + 1) * MB) + MB;
30
fat_file.set_len(fat_size_padded_and_rounded).unwrap();
31
32
// choose a file system label
0 commit comments