From 70cfef8630a4e6e0d8429649b8bcee5aeccae3f4 Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Mon, 12 Feb 2018 17:12:16 -0600 Subject: [PATCH] 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. --- features/filesystem/fat/FATFileSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/filesystem/fat/FATFileSystem.cpp b/features/filesystem/fat/FATFileSystem.cpp index ece5be1432..05e4849609 100644 --- a/features/filesystem/fat/FATFileSystem.cpp +++ b/features/filesystem/fat/FATFileSystem.cpp @@ -340,7 +340,7 @@ int FATFileSystem::format(BlockDevice *bd, bd_size_t cluster_size) // Logical drive number, Partitioning rule, Allocation unit size (bytes per cluster) fs.lock(); - FRESULT res = f_mkfs(fs._fsid, FM_ANY, cluster_size, NULL, 0); + FRESULT res = f_mkfs(fs._fsid, FM_ANY | FM_SFD, cluster_size, NULL, 0); fs.unlock(); if (res != FR_OK) { return fat_error_remap(res);