diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-08-18 04:17:09 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2022-08-18 04:18:40 -0600 |
commit | c910df75c332f605a26f9f9e09b04e98df054a5f (patch) | |
tree | 9a2fb8c3ff676ebb0b6abb663a3e16cea388d1f7 /lib/btrfs/btrfssum/shortsum.go | |
parent | 0de4afc4da432d5f3e4076859adcda75f2bdd5ba (diff) |
add a dbgsums command
Diffstat (limited to 'lib/btrfs/btrfssum/shortsum.go')
-rw-r--r-- | lib/btrfs/btrfssum/shortsum.go | 3 |
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] } |