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)
Mon, Oct 13, 7:31 AM
Unknown Object (File)
Mon, Oct 13, 12:53 AM
Unknown Object (File)
Mon, Oct 13, 12:53 AM
Unknown Object (File)
Mon, Oct 13, 12:53 AM
Unknown Object (File)
Sun, Oct 12, 1:18 PM
Unknown Object (File)
Sep 17 2025, 7:56 AM
Unknown Object (File)
Sep 17 2025, 7:20 AM
Unknown Object (File)
Sep 16 2025, 8:13 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