FatFs' VFS unlink
implementation does not adhere to POSIX (IDFGH-14405)
#15187
Labels
Status: Opened
Issue is new
Answers checklist.
General issue report
Hi.
I've discovered that VFS' implementation of the FatFs file system uses FatFs' implementation of the unlink function as the unlink function implementation.
The problem is that FatFs' unlink function does not support removing a currently open file.
This is contrary to the definition of the POSIX unlink function, which allows it (this is the reason why it's called unlink).
I wasn't able to find any documentation for this discrepancy in ESP-IDF Programming Guide.
I think that it should be either properly documented (like the documentation added for explaining how the link function actually copies a file's content instead of just adding a second link), or it should be resolved in code by writing some special implementation of the unlink function.
Thanks!
The text was updated successfully, but these errors were encountered: