Skip to content

Commit 4592a05

Browse files
committed
d'oh
1 parent c61b6bd commit 4592a05

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

storage/posix/files.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1388,7 +1388,7 @@ func (m *MirrorWriter) ensureGeometry(ctx context.Context, cpSize, treeSize uint
13881388
if cpSize > treeSize {
13891389
return fmt.Errorf("new size %d is greater than integrated size %d", cpSize, treeSize)
13901390
}
1391-
levels := uint64(1<<bits.Len64(cpSize-1)) / 8
1391+
levels := uint64(1<<bits.Len64(cpSize-1)) / layout.TileHeight
13921392
idx := (cpSize - 1) / layout.EntryBundleWidth
13931393
for l := uint64(0); l < levels; l, idx = l+1, idx>>layout.TileHeight {
13941394
treeP := layout.PartialTileSize(l, idx, treeSize)

0 commit comments

Comments
 (0)