Martin Vychodil and Cursor
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
sonika.rathi
459f2517a8
feat(fatfs): enable partition handling for sectors less than 128
2024-10-08 13:35: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
615a9c6742
feat(storage/example): enable host test for flash wl fatfs
2024-04-12 10:26:25 +02:00
Tomáš Rohlínek
7c3b9bde0e
feat(storage/fatfs): add testcase with erased spi partition
2024-04-12 10:26:25 +02: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
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 and Tony 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
Tomáš Rohlínek
525776f748
feat(vfs/fatfs): Add option for automatic immediate fsync
2023-10-02 07:06:05 +02:00
Adam Múdry
fa16ed3898
CI: sdcard tests fail fix
2023-05-10 16:48:03 +02:00
Sonika Rathi
b31b68fc68
bugfix: fix for fatfs "open("xx",O_CREAT|O_WRONLY,0666)" call failure
...
fatfs 'open' with only O_CREAT flag fails to creat new file
Closes https://github.com/espressif/esp-idf/issues/1817
2023-04-18 09:57:44 +05:30
Armando
4150bfb403
fatfs: added an API to format FAT on spiflash
2023-02-16 12:19:35 +08:00
Ivan Grokhotkov
ac830e04ac
fatfs: migrate unit tests to component test app, re-enable test for C2
2022-10-04 17:39:38 +02:00