[riot-notifications] [RIOT-OS/RIOT] vfs / filesystem example: readdir does not work on `/` without something mounted there (#15291)

chrysn notifications at github.com
Thu Sep 2 18:22:46 CEST 2021


Revisiting this while considering to restart the file server work, I now prefer a fourth alternative:

* Do nothing.

Applications that do directory listing would instead, on every directory listing, also iterate over all mount points (with application specific locks for mounting/unmounting in place), and mix any results in if they match the directory being listed. They can then forego a "directory not found" error if something does show up there but the directory listing itself fails.

This keeps complexity out of the internal parts of the file system (which rarely do directory listings, and even more rarely need to see mount points), and leaves control with the application (which may even use the additional information, eg. by marking the file as a mount point). Some helpers might be practical, but these can be taken out of the first application that actually does things this way.

Thus, I think this can stay closed.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/issues/15291#issuecomment-911854192
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210902/ee2c1b87/attachment.htm>


More information about the notifications mailing list