Commit Graph
333 Commits
Author SHA1 Message Date
Jiang Jiang Jian ef77f8e60a Merge branch 'contrib/github_pr_18823_v5.5' into 'release/v5.5'
fix(vfs): use MAX_FDS instead of VFS_MAX_COUNT when clearing fd table on unregister (GitHub PR) (v5.5)

See merge request espressif/esp-idf!50699
2026-08-06 12:20:43 +08:00
Jiang Jiang Jian 707e1e21b2 Merge branch 'fix/vfs_fatfs_test_stale_partition_v5.5' into 'release/v5.5'
test(vfs): reformat WL FATFS in setup to avoid stale-partition flakes (v5.5)

See merge request espressif/esp-idf!50402
2026-07-21 12:06:41 +08:00
Jiang Jiang Jian 1acff98167 Merge branch 'bugfix/idfci-8839-remove-orphan-test-configs_v5.5' into 'release/v5.5'
fix(fatfs): re-enable fatfs and vfs psram/ccomp CI tests (v5.5)

See merge request espressif/esp-idf!50186
2026-07-21 12:05:42 +08:00
yi chen 6960a92b33 fix(vfs): use MAX_FDS instead of VFS_MAX_COUNT when clearing fd table on unregister
esp_vfs_unregister_with_id() scanned only the first VFS_MAX_COUNT
(default 8, max 20) slots of s_fd_table[MAX_FDS] (MAX_FDS = FD_SETSIZE,
64 on non-Cygwin targets) when clearing stale references to the
unregistered VFS. Every other loop over s_fd_table in this file
(and in vfs_calls.c) correctly bounds on MAX_FDS.

Any global fd >= VFS_MAX_COUNT that was still open against the VFS
being unregistered was left with a stale vfs_index pointing at a slot
that esp_get_free_index() can immediately hand out to the next
esp_vfs_register*() call, causing later operations on that fd to be
routed into an unrelated filesystem's context.

Signed-off-by: yi chen <94xhn1@gmail.com>
2026-07-13 15:59:00 +02:00
Martin VychodilandCursor 7a06f3cdce test(vfs): reformat WL FATFS in setup to avoid stale-partition flakes
Reformat the test partition before each mount so those tests always start from
a known-empty filesystem.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 11:39:44 +02:00
sonika.rathi 6731a52061 fix(fatfs): re-enable fatfs and vfs psram/ccomp CI tests 2026-06-30 09:10:29 +02:00
Adam Múdry 26fe7ce726 test(vfs): Test changes regarding VFS register incorrect check fix 2026-06-23 16:28:36 +02:00
Adam Múdry 067c6f8989 fix(vfs): Fix incorrect check in esp_vfs_register_fs_common and optimize memory 2026-06-17 14:07:02 +02:00
sonika.rathi 01116e4c9e fix(storage): mark storage pytest apps flaky in CI 2026-05-21 15:48:10 +02:00
Evgeny Torbin d412f4b858 ci: remove unused test cases 2026-03-13 16:06:08 +08:00
Alexey Lapshin 0b3929d0d9 feat(esp_libc): add full support for picolibc 2026-01-30 23:39:53 +07:00
radek.tandler c3239ce836 fix(vfs): Fixed include for target linux failing on MacOs 2025-05-15 12:28:11 +02:00
Shen Meng Jing 62d4115e08 docs: Fix some typos 2025-04-30 18:35:39 +08:00
Guillaume Souchere 8a89dc0b9c feat(vfs): Add linux target support for esp_vfs_eventfd 2025-04-03 10:06:01 +02:00
Chen Jichang 6c4271d4bb feat(esp32h4): disable unsupported build 2025-03-28 14:41:29 +08:00
Chen Jichang c34b4eb882 feat(esp32h4): enable ESP32H4 ci build 2025-03-28 14:41:28 +08:00
igor.udot daf2d31008 test: format all test scripts 2025-03-05 12:08:48 +08:00
Martin Vychodil 8606eb43f7 Merge branch 'feat/optimize_vfs_mountpoint_table' into 'master'
feat(storage/vfs): improve mountpoint table memory usage

Closes IDF-12560

See merge request espressif/esp-idf!36613
2025-02-26 22:08:15 +08:00
Tomáš Rohlínek 67638981ec feat(storage/vfs): cleanup path prefix handling 2025-02-07 10:34:24 +01:00
gaoxu 5ef4f20778 feat(esp32h21): disable unsupported build test 2025-02-06 15:47:51 +08:00
Tomáš Rohlínek a45b12a68b feat(storage/vfs): improve mountpoint table memory usage 2025-01-30 09:07:51 +01:00
Radek Tandler 5b15320600 Merge branch 'bugfix/storage_generic_pytests' into 'master'
fix(ci): Removed storage related entries in known generate test child pipeline warnings

See merge request espressif/esp-idf!35738
2024-12-25 18:37:14 +08:00
radek.tandler 1c03391414 fix(storage/vfs): Fixed failing test cases in test_apps 2024-12-20 19:41:01 +01:00
radek.tandler df31bc6fdd fix(ci): Removed storage related ignore warnings 2024-12-20 19:40:33 +01:00
Tomáš Rohlínek 5e53f2975e fix(storage/vfs): incorrect log level in esp_vfs_register_fd_range
Closes https://github.com/espressif/esp-idf/issues/14327
2024-12-16 15:12:11 +01:00
Martin Vychodil f8701f1c92 Merge branch 'feat/vfs_ops_make_all_op_pointers_const' into 'master'
feat(storage/vfs): make all member pointer of vfs_ops struct const

See merge request espressif/esp-idf!35287
2024-12-13 18:01:53 +08:00
Tomáš Rohlínek 86e5039fc9 feat(storage/vfs): make all member pointer of vfs_ops struct const 2024-12-12 13:03:30 +01:00
Alexey Lapshin 888b5f7e8d feat(newlib): add picolibc support 2024-12-02 21:35:56 +07:00
Alexey Lapshin 1232759fb7 fix(vfs): fix gcc 14 analyzer warning 2024-12-02 20:26:26 +07:00
Tomáš Rohlínek 65575bfe4d feat(storage/vfs): move semihost to new vfs API 2024-11-21 07:41:43 +01:00
Tomáš Rohlínek 19eb0d6d02 feat(storage/vfs): move nullfs to new API 2024-11-21 07:41:42 +01:00
Tomáš Rohlínek 3d079312b1 feat(storage/vfs): make part of nullfs API private 2024-11-21 07:41:41 +01:00
Tomáš Rohlínek 5109f08dfa feat(storage/vfs): make subcomponent pointers const 2024-11-21 07:41:40 +01:00
wanckl 8a467ffd9a feat(driver_sdspi): c61 sdspi support 2024-10-24 13:54:08 +08:00
Tomáš Rohlínek 18e20c0bc5 feat(storage/vfs): change names related to minified vfs 2024-10-22 14:50:31 +08:00
Tomáš Rohlínek 040ad5ca20 feat(storage/vfs): add test for ESP_VFS_FLAG_STATIC 2024-10-22 14:50:31 +08:00
Tomáš Rohlínek 3cab84f033 fix(storage/vfs): clarify minified related documentation 2024-10-22 14:50:31 +08:00
Tomáš Rohlínek 923fb635b4 feat(storage/vfs): add documentation for minified_vfs 2024-10-22 14:50:31 +08:00
Tomáš Rohlínek 3cfc78ee67 feat(storage/vfs): update documentation for minified vfs functions 2024-10-22 14:50:31 +08:00
Tomáš Rohlínek 755adf3b4f feat(storage/vfs): impelement sparse vfs struct 2024-10-22 14:50:31 +08:00
Tomáš Rohlínek cec0525460 fix(storage/vfs): update select sanity checks 2024-10-22 14:50:31 +08:00
Tomáš Rohlínek fe0fc40049 fix(storage/vfs): incorrect registration checks 2024-10-22 14:50:31 +08:00
Tomáš Rohlínek 36d821f70c feat(storage/vfs): add more extensive checks to vfs tests 2024-10-22 14:50:31 +08:00
Tomáš Rohlínek b6a9acfc07 feat(storage/vfs): Add minified vfs implementation 2024-10-22 14:50:31 +08:00
Alexey Lapshin 561587c11c fix(vfs): fix nullfs open syscall 2024-08-09 16:05:52 +07:00
wanlei 3cf069c7d8 feat(esp32c61): disable unsupported build test 2024-07-16 16:06:19 +08:00
Alexey Lapshin edbf6130db fix(vfs): fix warnings found by GNU static analyzer 2024-06-18 14:25:37 +08:00
Tomáš Rohlínek 97af825b14 feat(storage/vfs): make automatic nullfs initialization optional 2024-05-29 10:39:55 +02:00
Tomáš Rohlínek a30d27e01e feat(storage/vfs): add nullfs test cases for vfs 2024-05-28 08:06:33 +02:00
Tomáš Rohlínek 2b75ed37b9 fix(storage/vfs): always register /dev/null on startup 2024-05-28 07:55:37 +02:00