Page MenuHomeFreeBSD

loader: md: Use default func for fmtdev and parsedev
ClosedPublic

Authored by manu on Jan 27 2023, 6:35 AM.
Tags
None
Referenced Files
F131712871: D38218.id115942.diff
Fri, Oct 10, 1:48 PM
F131712870: D38218.id115910.diff
Fri, Oct 10, 1:48 PM
F131712867: D38218.id.diff
Fri, Oct 10, 1:48 PM
F131678632: D38218.diff
Fri, Oct 10, 7:05 AM
Unknown Object (File)
Sat, Oct 4, 8:07 PM
Unknown Object (File)
Sat, Oct 4, 12:27 PM
Unknown Object (File)
Sat, Oct 4, 7:48 AM
Unknown Object (File)
Tue, Sep 23, 3:20 PM
Subscribers

Details

Summary

The default function are enough for md so use them instead of the
disks ones that doesn't work for it anymore.

Sponsored by: Beckhoff Automation GmbH & Co. KG
MFC after: now

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

manu requested review of this revision.Jan 27 2023, 6:35 AM
manu retitled this revision from leader: md: Use default func for fmtdev and parsedev to loader: md: Use default func for fmtdev and parsedev.Jan 27 2023, 7:10 AM

This will work and won't break anything.
It does mean, though, you can't have things like md0p2:, but IMHO, that's fine. There's no use cases for that and this makes things simpler and easier.
I'll have to see if this means we can make it not be a DEVT_DISK or not, but that's a longer-term project of mine ending that abuse ...

This revision is now accepted and ready to land.Jan 27 2023, 5:52 PM