diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-11-29 14:54:37 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2022-12-20 19:58:11 -0700 |
commit | a71e1969a1b24500ce9885c4a3f1aeee40c421a8 (patch) | |
tree | 37366e76569363e4d37ddd4362bbd009313b82d2 /lib/btrfsprogs/btrfsinspect/scandevices.go | |
parent | 7d77b89f355714da88bb1bbde5e343747bfb6a81 (diff) |
scandevices: Include a Key in SysExtentCSum
Diffstat (limited to 'lib/btrfsprogs/btrfsinspect/scandevices.go')
-rw-r--r-- | lib/btrfsprogs/btrfsinspect/scandevices.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/btrfsprogs/btrfsinspect/scandevices.go b/lib/btrfsprogs/btrfsinspect/scandevices.go index 87dcedf..a382e17 100644 --- a/lib/btrfsprogs/btrfsinspect/scandevices.go +++ b/lib/btrfsprogs/btrfsinspect/scandevices.go @@ -73,6 +73,7 @@ type SysDevExtent struct { } type SysExtentCSum struct { + Key btrfsprim.Key Generation btrfsprim.Generation Sums btrfsitem.ExtentCSum } @@ -200,6 +201,7 @@ func ScanOneDevice(ctx context.Context, dev *btrfs.Device, sb btrfstree.Superblo //dlog.Tracef(ctx, "... dev[%q] node@%v: item %v: found csums", // dev.Name(), nodeRef.Addr, i) result.FoundExtentCSums = append(result.FoundExtentCSums, SysExtentCSum{ + Key: item.Key, Generation: nodeRef.Data.Head.Generation, Sums: sums, }) |