Skip to content

Commit

Permalink
Merge pull request #397 from kennystrawnmusic/patch-2
Browse files Browse the repository at this point in the history
Add an additional MB of space to the generated FAT partition
  • Loading branch information
phil-opp committed Oct 24, 2023
2 parents 457e570 + 52c8338 commit a1b2eb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub fn create_fat_filesystem(
.truncate(true)
.open(out_fat_path)
.unwrap();
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;
fat_file.set_len(fat_size_padded_and_rounded).unwrap();

// choose a file system label
Expand Down

0 comments on commit a1b2eb8

Please sign in to comment.