HomeFreeBSD

stand: Add dv_devfmt to return a string represenation of the device

Description

stand: Add dv_devfmt to return a string represenation of the device

Add a new pointer, dv_devfmt, to allow devices to format themselves. We
will use this to simplify many of the fmtdev functions in the tree as
they are all almost the same, or all are isomorphic to each other.

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

(cherry picked from commit 4d4b1a298c84f2357c304583dfe78d0e4b8fa2f1)

Details

Provenance
impAuthored on Aug 11 2022, 3:05 PM
Reviewer
tsoome
Differential Revision
D35915: stand: Add dv_devfmt to return a string represenation of the device
Parents
rG0683209a94b0: stand: Change zfs_fmtdev to take a struct devdesc *
Branches
Unknown
Tags
Unknown