This can sometimes happen with broken HDDs.
MFC after: 2 weeks
Sponsored by: Axcient
Differential D37313
Don't panic when tasting a disk with sectorsize=0 asomers on Nov 9 2022, 3:22 AM. Authored by Tags None Referenced Files
Subscribers
Details This can sometimes happen with broken HDDs. MFC after: 2 weeks Manually tested with a suitably broken HDD
Diff Detail
Event TimelineComment Actions Seems ok, but why not handle it in g_label_taste(), or even at some higher level in GEOM (maybe g_disk_create())? I can't think of any classes that will do something sane with a provider with sectorsize 0... Comment Actions Ok, I'll move the part from g_label_ufs.c into g_label_taste. I don't want to move it higher up though, because g_label_taste can also be called in the resize path. And I'll leave the changes to the other label classes, because they're 0-cost.
|