From 8d97d1cf07e2a3b958121a82149bea89533383dd Mon Sep 17 00:00:00 2001 From: Kenny Strawn Date: Sun, 22 Oct 2023 23:12:50 -0700 Subject: [PATCH] Revert "Fix #396" This reverts commit 4d4d8452e13c82b269d510a07621e415218bb451. --- src/fat.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fat.rs b/src/fat.rs index b7a73cbe..aa2a450b 100644 --- a/src/fat.rs +++ b/src/fat.rs @@ -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) + MB; + let fat_size_padded_and_rounded = ((needed_size + 1024 * 64 - 1) / MB + 1) * MB; fat_file.set_len(fat_size_padded_and_rounded).unwrap(); // choose a file system label