Page MenuHomeFreeBSD

loader: zfs reader vdev_probe should check for minimum device size
ClosedPublic

Authored by tsoome on Apr 13 2017, 6:07 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jun 18, 8:37 PM
Unknown Object (File)
Tue, Jun 18, 8:37 PM
Unknown Object (File)
Tue, Jun 18, 8:37 PM
Unknown Object (File)
Tue, Jun 18, 8:35 PM
Unknown Object (File)
May 22 2024, 3:53 AM
Unknown Object (File)
May 17 2024, 12:50 PM
Unknown Object (File)
Feb 23 2024, 11:38 PM
Unknown Object (File)
Feb 4 2024, 8:51 PM
Subscribers

Details

Summary

The smallest device we can have in the pool is 64MB, since we are trying to walk all four labels to find the most up to date uberblock, this limit will alsogive us good method to check if we even should attempt to probe.

Enforcing the check also will make sure we are not getting wrapped while calculating the label offset.

Also, after label check, we should verify if we actually got any UB or not.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tsoome retitled this revision from loader: zfs reader vdev_probe should check for minimum pool size The smallest pool we can have is 64MB, since we are trying to walk all four labels to find the most up to date uberblock, this limit will also give us good method to check if we... to loader: zfs reader vdev_probe should check for minimum pool size.Apr 13 2017, 6:11 AM
tsoome edited the summary of this revision. (Show Details)
tsoome retitled this revision from loader: zfs reader vdev_probe should check for minimum pool size to loader: zfs reader vdev_probe should check for minimum device size.Apr 13 2017, 10:10 PM
tsoome edited the summary of this revision. (Show Details)

Looks straightforward enough

This revision is now accepted and ready to land.Apr 18 2017, 3:19 PM
This revision was automatically updated to reflect the committed changes.