Page MenuHomeFreeBSD

diff: Improve directory loop detection
ClosedPublic

Authored by des on Feb 11 2026, 2:29 PM.
Tags
None
Referenced Files
F175204614: D55248.id171771.diff
Fri, Oct 9, 2:14 AM
F175203370: D55248.id171762.diff
Fri, Oct 9, 2:01 AM
F175202188: D55248.id171763.diff
Fri, Oct 9, 1:50 AM
F175200902: D55248.diff
Fri, Oct 9, 1:35 AM
Unknown Object (File)
Fri, Oct 2, 5:46 PM
Unknown Object (File)
Sat, Sep 19, 4:02 AM
Unknown Object (File)
Wed, Sep 16, 2:58 PM
Unknown Object (File)
Wed, Sep 16, 8:50 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.