HomeFreeBSD

stand: Use devformat rather than disk_devfmt

Description

stand: Use devformat rather than disk_devfmt

Fix layering violation and use devformat to get the string
representation of the device to see if we're mounted yet or not. Remove
added include to pickup disk.h.

Sponsored by: Netflix
Reviewed by: tsoome (prior version)
Differential Revision: https://reviews.freebsd.org/D35919

[ minor changes because UFS changes interferred and were already merged ]

(cherry picked from commit ec9f3e776f39286ccec9915f38cca9729e6f9241)

Details

Provenance
impAuthored on Aug 11 2022, 3:06 PM
Reviewer
tsoome
Differential Revision
D35919: stand: Use devformat rather than disk_devfmt
Parents
rGde252384c043: stand: Add disk_fmtdev for dv_fmtdev for all the disk devices
Branches
Unknown
Tags
Unknown