Skip to content

Commit 70cfef8

Browse files
committed
fatfs: Removed extra MBR block
Regression after ChanFS update: Due to parameter changes in the f_mkfs function, the option to use a separate block for MBR (FDISK) was turned back on. This should be off as it conflicts with an explicit MBR when using the MBRBlockDevice.
1 parent e0d79ff commit 70cfef8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/filesystem/fat/FATFileSystem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ int FATFileSystem::format(BlockDevice *bd, bd_size_t cluster_size)
340340

341341
// Logical drive number, Partitioning rule, Allocation unit size (bytes per cluster)
342342
fs.lock();
343-
FRESULT res = f_mkfs(fs._fsid, FM_ANY, cluster_size, NULL, 0);
343+
FRESULT res = f_mkfs(fs._fsid, FM_ANY | FM_SFD, cluster_size, NULL, 0);
344344
fs.unlock();
345345
if (res != FR_OK) {
346346
return fat_error_remap(res);

0 commit comments

Comments
 (0)