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)
Tue, Mar 24, 1:34 AM
Unknown Object (File)
Sat, Mar 14, 10:47 AM
Unknown Object (File)
Feb 16 2026, 11:36 AM
Unknown Object (File)
Feb 16 2026, 11:36 AM
Unknown Object (File)
Feb 8 2026, 8:33 AM
Unknown Object (File)
Feb 8 2026, 4:07 AM
Unknown Object (File)
Jan 30 2026, 8:18 PM
Unknown Object (File)
Nov 29 2025, 2:18 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