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.
_______________________________________________ bugs mailing list [email protected] http://lists.rtems.org/mailman/listinfo/bugs
