summaryrefslogtreecommitdiff
path: root/lib/btrfs/btrfssum
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2022-08-18 04:17:09 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2022-08-18 04:18:40 -0600
commitc910df75c332f605a26f9f9e09b04e98df054a5f (patch)
tree9a2fb8c3ff676ebb0b6abb663a3e16cea388d1f7 /lib/btrfs/btrfssum
parent0de4afc4da432d5f3e4076859adcda75f2bdd5ba (diff)
add a dbgsums command
Diffstat (limited to 'lib/btrfs/btrfssum')
-rw-r--r--lib/btrfs/btrfssum/shortsum.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/btrfs/btrfssum/shortsum.go b/lib/btrfs/btrfssum/shortsum.go
index e93287e..90d2612 100644
--- a/lib/btrfs/btrfssum/shortsum.go
+++ b/lib/btrfs/btrfssum/shortsum.go
@@ -149,8 +149,11 @@ func (run SumRun[Addr]) Walk(ctx context.Context, fn func(Addr, ShortSum) error)
// SumRunWithGaps ////////////////////////////////////////////////////
type SumRunWithGaps[Addr btrfsvol.IntAddr[Addr]] struct {
+ // Store the start address and size, in order to facilitate
+ // leading and trailing gaps.
Addr Addr
Size btrfsvol.AddrDelta
+
Runs []SumRun[Addr]
}