Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 52c8338

Browse filesBrowse files
Add an additional MB of space to the generated FAT partition
1 parent 7c8e2ca commit 52c8338
Copy full SHA for 52c8338

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/fat.rs

Copy file name to clipboardExpand all lines: src/fat.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub fn create_fat_filesystem(
2626
.truncate(true)
2727
.open(out_fat_path)
2828
.unwrap();
29-
let fat_size_padded_and_rounded = ((needed_size + 1024 * 64 - 1) / MB + 1) * MB;
29+
let fat_size_padded_and_rounded = ((needed_size + 1024 * 64 - 1) / MB + 1) * MB + MB;
3030
fat_file.set_len(fat_size_padded_and_rounded).unwrap();
3131

3232
// choose a file system label

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.