Commit Graph
100 Commits
Author SHA1 Message Date
Martin Vychodil c734860ba1 Merge branch 'feature/fatfs_bdl_v6.0' into 'release/v6.0'
feat(fatfs): Add BDL support to FatFS component (v6.0)

See merge request espressif/esp-idf!52557
2026-09-10 16:10:00 +08:00
Martin Vychodil e0c1910bb0 Merge branch 'fix/fatfs-vfs-fcntl-setfl_v6.0_2' into 'release/v6.0'
fix(fatfs): preserve access mode in VFS F_SETFL (v6.0)

See merge request espressif/esp-idf!51922
2026-09-10 16:07:28 +08:00
Martin VychodilandCursor 0a3ee6d019 feat(fatfs): Added BDL support to FatFS component
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-08 09:39:11 +02:00
Adam Múdry 233fa3f948 fix(sdmmc): release aligned DMA buffer on card deinit 2026-08-31 14:14:22 +02:00
Martin VychodilandCursor 5fc9a1ea04 fix(fatfs): preserve access mode in VFS F_SETFL
F_SETFL was replacing the whole flags word, so fcntl(fd, F_SETFL, O_APPEND)
made F_GETFL report O_RDONLY|O_APPEND. Keep O_ACCMODE and apply only POSIX
status flags.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 15:51:42 +02:00
sonika.rathi 473dd30a96 fix(fatfs): move readdir-stat cache to per-DIR stream
Move cached_fileinfo and dir_path from vfs_fat_ctx_t to vfs_fat_dir_t so
each open DIR* has its own readdir→stat cache.
2026-07-17 12:09:26 +02:00
Martin Vychodil 484cc4f068 Merge branch 'fix/fatfs_instance_init_v6.0' into 'release/v6.0'
Fix: various FATFS/VFS fixes (v6.0)

See merge request espressif/esp-idf!50101
2026-06-30 18:07:13 +08:00
Martin VychodilandCursor 872ca1fa3c fix(fatfs): Fixed VFS adapter early return paths
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-28 14:59:28 +02:00
Martin VychodilandCursor 9702ed5257 fix(fatfs): Fixed uninitialized FATFS pointer for already mounted path
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-28 14:59:23 +02:00
Adam Múdry 318d312607 fix(fatfs): Fix esp_vfs_fat_unregister_path leak if esp_vfs_unregister fails 2026-06-19 14:15:45 +02:00
LiPeng 4f7b1af0f9 fix(fatfs): fix a memory leak bug when FF_USE_DYN_BUFFER was enabled 2026-04-24 18:59:28 +08:00
Jiang Jiang Jian 2aaad17dc7 Merge branch 'fix/f_getfree_crash_issue_v6.0' into 'release/v6.0'
fix(fatfs): fix f_getfree crash when volume not mounted or mount failed (v6.0)

See merge request espressif/esp-idf!46716
2026-03-20 16:38:21 +08:00
sonika.rathi 0a062a1912 fix(fatfs): fix f_getfree crash when volume not mounted or mount failed 2026-03-17 18:44:11 +01:00
Adam Múdry 785a018380 fix: Update examples etc. to use esp_vfs_fat_register
Instead of deprecated esp_vfs_fat_register_cfg
2026-02-20 13:12:44 +01:00
Adam Múdry 092a5ba5a5 refactor(fatfs): Update esp_vfs_fat_register function prototype
to match esp_vfs_fat_register_cfg
2026-02-20 13:07:09 +01:00
Tomáš Rohlínek 1bf8b030e3 feat(storage/vfs): Remove old API usage 2025-12-17 14:00:22 +01:00
Adam Múdry beaf579f9b fix(storage): Refactor FATFS VFS functions to be easier to understand 2025-09-26 18:17:15 +08:00
armando 00022a379a change: remove deprecated items 2025-09-15 10:52:28 +08:00
Alexey Lapshin e82d51a9ee fix(picolibc): fix missed headers in sources 2025-06-25 18:01:50 +07:00
Tomáš Rohlínek df8a16281b feat(storage/fatfs): increase log legibility for fatfs mount 2025-02-28 14:59:48 +01:00
Martin Vychodil aa23c8099d Merge branch 'fix/vfs_compiler_warings' into 'master'
fix(components): Compiler reports some warnings

Closes IDFGH-14289

See merge request espressif/esp-idf!36692
2025-02-07 15:22:25 +08:00
safocl 4da9b8654c fix(storage/fatfs): Compiler unused warning
esp-idf/components/fatfs/diskio/diskio_rawflash.c warning: unused variable 'part' [-Wunused-variable]
   XX |     const esp_partition_t* part = s_ff_raw_handles[pdrv];
      |                            ^~~~
esp-idf/components/fatfs/vfs/vfs_fat_sdmmc.c warning: unused variable 'found' [-Wunused-variable]
  XXX |     bool found = s_get_context_id_by_card(card, &id);
      |          ^~~~~
2025-01-31 23:26:12 +04:00
Tomáš Rohlínek a700e7c210 fix(storage/fatfs): use standard flex-array fields, instead of extension 2025-01-29 09:08:44 +01:00
Ivan Grokhotkov a1042c0cc2 feat(fatfs): add support for a few fcntl commands 2024-12-03 15:32:58 +01:00
Alexey Lapshin 888b5f7e8d feat(newlib): add picolibc support 2024-12-02 21:35:56 +07:00
Tomáš Rohlínek fdffba6f4c feat(storage/fatfs): move fatfs to new VFS API 2024-11-21 07:41:40 +01:00
sonika.rathi 459f2517a8 feat(fatfs): enable partition handling for sectors less than 128 2024-10-08 13:35:08 +02:00
Alexey Lapshin 4c87af6359 fix(build): fix calloc warnings 2024-09-08 13:53:52 +07:00
Adam Múdry a1f493b50f fix(vfs): FATFS mount immediately after format if mount failed 2024-07-23 15:44:40 +02:00
sonika.rathi 8e3e642db4 fix(fatfs): fix memory overlapping issue in vfs_fat.c 2024-05-22 13:06:59 +02:00
sonika.rathi a1e06ebab0 fix(vfs): fix coverity issue copy of overlapping memory in vfs_fat.c 2024-05-06 13:57:08 +02:00
Sonika Rathi e17da6f9f9 fix(fatfs): Optimizes vfs_fat_stat function to get stat structure after readdir
Closes https://github.com/espressif/esp-idf/issues/10220
2024-04-22 09:07:15 +02:00
Tomáš Rohlínek f398b7923a fix(storage/fatfs): fix double mouting of spiflash 2024-04-12 10:26:22 +02:00
Ivan Grokhotkov 10cc15b150 fix(storage): applied spelling fixes by codespell pre-commit hook 2024-03-28 13:00:54 +01:00
Adam Múdry 40de3816ec fix(fatfs): Fix leak of malloced FIL struct
In esp_vfs_fat_create_contiguous_file and esp_vfs_fat_test_contiguous_file functions
2024-03-12 13:25:09 +01:00
Adam Múdry b76123af06 Merge branch 'feature/fatfs_expand_files_api' into 'master'
feat(fatfs): Allow expanding files with seeking and truncating functions

Closes IDFGH-12035

See merge request espressif/esp-idf!28945
2024-03-04 20:56:44 +08:00
Adam Múdry 35e312c48e feat(fatfs): Allow expanding files with seeking and truncating functions
Closes https://github.com/espressif/esp-idf/issues/13100
2024-02-29 01:01:32 +01:00
Adam Múdry 8d3e79971e feat(fatfs): Add f_expand function as esp_vfs_fat_create_contiguous_file
Add esp_vfs_fat_test_contiguous_file to test it
2024-02-22 16:05:28 +01:00
Marius Vikhammer af6657b43b fix(fatfs): temp remove deprecated attribute from esp_vfs_fat_register
Causes build-errors internally in CI, should deprecate after external
components have been upgraded
2024-02-22 17:48:32 +08:00
Adam Múdry 5f961537cc feat(storage/fatfs): Switch to a config struct for VFS FAT registration 2024-02-19 14:05:50 +01:00
Adam Múdry 88e4fd9ac1 fix(vfs): Add missing lock release in vfs_fat_truncate 2024-02-08 14:16:19 +01:00
Adam Múdry 376ea7e4ed feat(fatfs): VFS FATFS add format functions with config argument 2024-01-29 15:09:50 +08:00
Adam Múdry 8e50d63fea feat(fatfs): Add an option to use 2 FATs (file allocation tables) in FATFS volumes
Should help with redundancy and data corruption when enabled but uses more space.
2024-01-18 14:03:28 +01:00
Adam Múdry 29c30b961d fix: esp_vfs_fat_sdcard_format workbuf memory leak 2023-11-29 12:39:15 +01:00
Tomáš Rohlínek 91e158aa0c fix(storage/fatfs): add missing locks in fatfs wrapper for vfs 2023-11-27 07:47:28 +01:00
Adam MúdryandTony Stuart 25714837cf fix(storage): FATFS WL function formatting wrong partition
Closes https://github.com/espressif/esp-idf/issues/12542

Co-authored-by: Tony Stuart <anthonyfstuart@gmail.com>
2023-11-23 13:54:00 +01:00
Armando 5b8d904a9b refactor(sdmmc): dependency inversion to sdmmc component 2023-11-16 15:37:32 +08:00
Tomáš Rohlínek 3f4698ac47 fix(storage/fatfs): add missing lock release introduced by IMMEDIATE_FSYNC 2023-10-30 10:22:08 +01:00
sonika.rathi 91eada4acc fix(fatfs): free allocated memory for base path before unmounting the card 2023-10-25 09:33:42 +02:00
Adam Múdry 0024867c3b Merge branch 'feature/add_optional_immediate_fsync' into 'master'
fatfs: add optional immediate fsync

See merge request espressif/esp-idf!26097
2023-10-16 17:37:22 +08:00