Page MenuHomeFreeBSD

diff: Improve directory loop detection
ClosedPublic

Authored by des on Feb 11 2026, 2:29 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 21, 6:04 AM
Unknown Object (File)
Sun, May 17, 8:10 PM
Unknown Object (File)
Sun, May 17, 8:04 PM
Unknown Object (File)
Sun, May 17, 9:57 AM
Unknown Object (File)
Sun, May 17, 9:42 AM
Unknown Object (File)
Sat, May 16, 8:08 PM
Unknown Object (File)
Sat, May 16, 8:04 PM
Unknown Object (File)
Fri, May 15, 10:42 AM
Subscribers

Details

Summary

When we're done processing a directory, remove its entry from the tree
of visited inodes, ensuring that we only report a loop when we encounter
a descendant-to-ancestor link, not when we encounter a cousin-to-cousin
or sibling-to-sibling link.

MFC after: 1 week
Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

des requested review of this revision.Feb 11 2026, 2:29 PM
This revision is now accepted and ready to land.Feb 11 2026, 2:39 PM
This revision now requires review to proceed.Feb 11 2026, 2:45 PM
This revision is now accepted and ready to land.Feb 11 2026, 3:13 PM
This revision was automatically updated to reflect the committed changes.