HomeFreeBSD

getmntpoint: Don't compare st_rdev for non-devices

Description

getmntpoint: Don't compare st_rdev for non-devices

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.
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D51945

Details

Provenance
desAuthored on Aug 17 2025, 5:07 PM
Reviewer
kib
Differential Revision
D51945: getmntpoint: Don't compare st_rdev for non-devices
Parents
rGd4b59682cbb4: fusefs: Fix a warning in a test
Branches
Unknown
Tags
Unknown