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

(cherry picked from commit 8073a5137f223bb481606b15edaa5ecb93ceffcb)

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
rG4e3f44692f6d: freebsd-update: Do not fsync
Branches
Unknown
Tags
Unknown