RTEMS | fstest: Testcase about rename with LINK_MAX makes a generally invalid assumption (#5070)

Loris Nardo (@loris.nardo) gitlab at rtems.org
Thu Jul 18 09:02:39 UTC 2024



Loris Nardo created an issue: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5070



## Summary
The testcase regarding the `rename` with `LINK_MAX` assumes that every file (folder in that case) counts a link towards the parent folder, and thus moving one more folder from outside into the parent folder fails with `ENOLINK`.

FAT, RFS, JFFS2 and IMFS however seem to not care about the parent link to the folder.

For what I can see in the code, only the IMFS file system can yield back `ENOLINK` from `IMFS_link`.

In addition FAT, RFS and JFFS2 do not set a different value for `LINK_MAX` during mounting, causing the value of `LINK_MAX` to be always 5 (the default) for these file systems.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5070
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/20240718/813dfc58/attachment-0001.htm>


More information about the bugs mailing list