[PATCH] fs: fat: enable VFAT long file names by default

Ahmad Fatoum a.fatoum at pengutronix.de
Wed Sep 13 03:35:52 PDT 2023

Apparently, this option defaulted to 'n' since the very beginning, so
users newly enabling FAT may unwittingly run into a cryptic:

  barebox at board:/ cp something /mnt/mmc0.0/freertos-main.elf
  could not open /mnt/mmc0.0/freertos-main.elf: Invalid argument

As FAT file systems nowadays are VFAT by default and allow up to 255
characters in file names, there's no reason to restrict barebox to
classic 8.3 file names by default.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
 fs/fat/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/fat/Kconfig b/fs/fat/Kconfig
index 8cd3b604baeb..53f784ee54d5 100644
--- a/fs/fat/Kconfig
+++ b/fs/fat/Kconfig
@@ -16,7 +16,7 @@ config FS_FAT_WRITE
 config FS_FAT_LFN
-	bool
+	def_bool y
 	prompt "Support long filenames"
 	  Enable support for file names other than 8.3.

More information about the barebox mailing list