mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-07 20:00:53 +00:00
Merge branch 'docs/fatfs_unlink_discrepancy' into 'master'
docs(storage/fatfs): discrepancies between FATFS and POSIX Closes IDFGH-14405 and DOC-10313 See merge request espressif/esp-idf!36941
This commit is contained in:
@@ -43,10 +43,11 @@ Most applications use the following workflow when working with ``esp_vfs_fat_``
|
||||
|
||||
The convenience functions :cpp:func:`esp_vfs_fat_sdmmc_mount`, :cpp:func:`esp_vfs_fat_sdspi_mount`, and :cpp:func:`esp_vfs_fat_sdcard_unmount` wrap the steps described above and also handle SD card initialization. These functions are described in the next section.
|
||||
|
||||
.. note::
|
||||
|
||||
Because FAT filesystem does not support hardlinks, :cpp:func:`link` copies contents of the file instead. (This only applies to files on FatFs volumes.)
|
||||
Differences from the POSIX Standard
|
||||
-----------------------------------
|
||||
|
||||
#. :cpp:func:`link`: Because FAT filesystem does not support hardlinks, :cpp:func:`link` copies contents of the file instead. (This only applies to files on FatFs volumes.)
|
||||
#. :cpp:func:`unlink`: Attempting to remove an open file will fail with ``EBUSY`` when ``CONFIG_FATFS_FS_LOCK`` is enabled. Otherwise, the behavior is undefined and may cause file system corruption.
|
||||
|
||||
.. _using-fatfs-with-vfs-and-sdcards:
|
||||
|
||||
|
Reference in New Issue
Block a user