summaryrefslogtreecommitdiff
path: root/lib/btrfsprogs/btrfsinspect/scandevices.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2022-11-29 14:54:37 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2022-12-20 19:58:11 -0700
commita71e1969a1b24500ce9885c4a3f1aeee40c421a8 (patch)
tree37366e76569363e4d37ddd4362bbd009313b82d2 /lib/btrfsprogs/btrfsinspect/scandevices.go
parent7d77b89f355714da88bb1bbde5e343747bfb6a81 (diff)
scandevices: Include a Key in SysExtentCSum
Diffstat (limited to 'lib/btrfsprogs/btrfsinspect/scandevices.go')
-rw-r--r--lib/btrfsprogs/btrfsinspect/scandevices.go2
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,
})