Page MenuHomeFreeBSD

getmntpoint: Don't compare st_rdev for non-devices
ClosedPublic

Authored by des on Aug 17 2025, 1:34 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 27, 12:22 PM
Unknown Object (File)
May 6 2026, 6:03 AM
Unknown Object (File)
May 6 2026, 12:29 AM
Unknown Object (File)
May 5 2026, 6:33 PM
Unknown Object (File)
May 4 2026, 2:58 PM
Unknown Object (File)
Apr 27 2026, 8:05 PM
Unknown Object (File)
Apr 24 2026, 7:59 AM
Unknown Object (File)
Apr 12 2026, 9:51 AM
Subscribers

Details

Summary

If the mntfromname of a mountpoint is not a device (e.g. nullfs, tarfs,
procfs) we shouldn't compare st_rdev, as any match will be spurious.

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

Diff Detail

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