Skip to content

Commit

Permalink
Merge pull request #8481 from filecoin-project/fix/snap-fsoverhead
Browse files Browse the repository at this point in the history
fix: storiface: Make FSOverhead numbers more accurate
  • Loading branch information
magik6k authored Apr 14, 2022
2 parents 0c88285 + 0a4b49d commit 06f8637
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions extern/sector-storage/storiface/filetype.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var FSOverheadSeal = map[SectorFileType]int{ // 10x overheads
FTUnsealed: FSOverheadDen,
FTSealed: FSOverheadDen,
FTUpdate: FSOverheadDen,
FTUpdateCache: FSOverheadDen * 2,
FTUpdateCache: FSOverheadDen*2 + 1,
FTCache: 141, // 11 layers + D(2x ssize) + C + R'
}

Expand All @@ -39,9 +39,9 @@ var FSOverheadSeal = map[SectorFileType]int{ // 10x overheads
var FsOverheadFinalized = map[SectorFileType]int{
FTUnsealed: FSOverheadDen,
FTSealed: FSOverheadDen,
FTUpdate: FSOverheadDen * 2, // XXX: we should clear the update cache on Finalize???
FTUpdateCache: FSOverheadDen,
FTCache: 2,
FTUpdate: FSOverheadDen,
FTUpdateCache: 1,
FTCache: 1,
}

type SectorFileType int
Expand Down

0 comments on commit 06f8637

Please sign in to comment.