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 label tasting. PR: 281978
Details
Details
- Reviewers
bz markj - Commits
- rG4bf34c597c44: md(4): always trim the last partial sector
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
I think the commit message might want a description that this does it for mdimage (loaded from loader) as well now avoiding a panic on boot.
For everything runtime this is NOP if I read it correctly?
Thanks a lot!
Comment Actions
I am surprised by this behaviour, it seems we should at least print a warning if the file is truncated.
sys/dev/md/md.c | ||
---|---|---|
1309 |