RTEMS | JFFS2 fails test about rename with long file name (#5073)
Loris Nardo (@loris.nardo)
gitlab at rtems.org
Tue Aug 6 04:32:24 UTC 2024
Loris Nardo commented: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5073#note_110534
About this issue, there are a bunch of things that can be done:
- Explicitly forbid names longer than `JFFS2_MAX_NAME_LEN` or `NAME_MAX` (the first seems better)
- Update the fpathconf `PC_NAME_MAX` to yield back the same information of `statvfs.f_namemax`
- Update the testcase to use the information from `fstatvfs` or `fpathconf` for the maximum allowed name and not `NAME_MAX` (this change may impact other filesystem).
Digging a bit further in the code, while there is not apparent limit on the file name length when created, if it is greater than `JFFS2_MAX_NAME_LEN`, then the file cannot be removed or renamed (see the function `rtems_jffs2_cache_fd_name`).
What are your opinion on this?
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5073#note_110534
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20240806/e4e3b4d2/attachment.htm>
More information about the bugs
mailing list