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
Unknown Object (File)
Mon, Apr 27, 8:34 PM
Unknown Object (File)
Mon, Apr 27, 5:45 AM
Unknown Object (File)
Fri, Apr 24, 4:28 PM
Unknown Object (File)
Wed, Apr 22, 4:19 PM
Unknown Object (File)
Tue, Apr 21, 11:40 AM
Unknown Object (File)
Mar 8 2026, 12:51 PM
Unknown Object (File)
Mar 7 2026, 11:00 PM
Unknown Object (File)
Feb 7 2026, 10:01 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 49256
Build 46146: arc lint + arc unit

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