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 6, 6:03 AM
Unknown Object (File)
Wed, May 6, 12:29 AM
Unknown Object (File)
Tue, May 5, 6:33 PM
Unknown Object (File)
Mon, May 4, 2:58 PM
Unknown Object (File)
Mon, Apr 27, 8:05 PM
Unknown Object (File)
Fri, Apr 24, 7:59 AM
Unknown Object (File)
Apr 12 2026, 9:51 AM
Unknown Object (File)
Mar 24 2026, 1:34 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