[RTEMS Project] #4674: readdir skips entries after unlink

RTEMS trac trac at rtems.org
Wed Apr 19 13:08:53 UTC 2023


#4674: readdir skips entries after unlink
-----------------------------+----------------------------
 Reporter:  Alexandre Oliva  |       Owner:  Needs Funding
     Type:  defect           |      Status:  assigned
 Priority:  normal           |   Milestone:  6.1
Component:  fs               |     Version:  6
 Severity:  normal           |  Resolution:
 Keywords:                   |  Blocked By:
 Blocking:                   |
-----------------------------+----------------------------

Comment (by Joel Sherrill):

 I think the next step is to submit a patch to add tests to the fstests
 suite. That way your test case can be run against any filesystem. It
 should pass on all file systems except IMFS at this point. Then we can
 discuss a fix.

 Marking a node as dead is OK but we need to make sure there is a way to
 reclaim that node either for another file or to be freed. I am not sure
 offhand how the directory entries are managed during file creation.

 The one thing we do NOT want to do is accidentally create a memory leak.

--
Ticket URL: <http://devel.rtems.org/ticket/4674#comment:8>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list