Page MenuHomeFreeBSD

makefs: zfs uberblock location is calculated wrong
ClosedPublic

Authored by tsoome on Mon, Aug 11, 1:43 PM.
Tags
None
Referenced Files
F127307391: D51860.id160398.diff
Sat, Aug 30, 5:49 AM
Unknown Object (File)
Wed, Aug 27, 9:03 AM
Unknown Object (File)
Tue, Aug 26, 2:33 AM
Unknown Object (File)
Tue, Aug 26, 2:06 AM
Unknown Object (File)
Mon, Aug 25, 4:35 AM
Unknown Object (File)
Mon, Aug 25, 3:36 AM
Unknown Object (File)
Fri, Aug 22, 4:34 PM
Unknown Object (File)
Thu, Aug 21, 9:44 AM
Subscribers

Details

Summary

The shift used to calculate uberblock location depends both
on minimum size (UBERBLOCK_SHIFT) and MAX_UBERBLOCK_SHIFT.
Since makefs defaults to use ashift 12, it incidentally
does get the correct size, but ashift 9 does not work with
current code.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 66258
Build 63141: arc lint + arc unit

Event Timeline

It'd be nice to have a helper macro for this, basically the same as VDEV_UBERBLOCK_SHIFT but just taking an integer ashift as a parameter. There is already one such macro in OpenZFS, ASHIFT_UBERBLOCK_SHIFT in zhack.c.

This revision is now accepted and ready to land.Tue, Aug 12, 1:22 PM

use ASHIFT_UBERBLOCK_SIZE().

This revision now requires review to proceed.Fri, Aug 15, 7:36 AM
This revision is now accepted and ready to land.Fri, Aug 15, 11:12 AM