HomeFreeBSD

md(4): always trim the last partial sector

Description

md(4): always trim the last partial sector

Do it also for the preloaded disk, in addition to the dynamically
configured device. This is needed to avoid geom checking alignment and
panicing on read of the last sector, e.g. for partition schemes and
label tasting.

PR: 281978
Reported by: bz
Reviewed by: bz, markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D47102

Details

Provenance
kibAuthored on Sun, Oct 13, 9:28 PM
Reviewer
bz
Differential Revision
D47102: md(4): always trim the last partial sector
Parents
rG793c668ec5b8: UPDATING: Note higher-risk than I'd like ciss changes
Branches
Unknown
Tags
Unknown