summaryrefslogtreecommitdiff
path: root/lib/btrfs/btrfstree/path.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2022-09-05 10:03:03 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2022-09-05 10:39:18 -0600
commitabdc8394bcb7080f01859cbfe367beecf5aef06f (patch)
tree0bd93c7d59113ffc1933578c9968b15dcb41f0a2 /lib/btrfs/btrfstree/path.go
parenta16c3b96ddfae01a2e89c1855058230eb369263c (diff)
Add ToKey to TreePaths; MinItem and MaxItem to NodeExpectations
Diffstat (limited to 'lib/btrfs/btrfstree/path.go')
-rw-r--r--lib/btrfs/btrfstree/path.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/btrfs/btrfstree/path.go b/lib/btrfs/btrfstree/path.go
index 212b5df..b40c7ed 100644
--- a/lib/btrfs/btrfstree/path.go
+++ b/lib/btrfs/btrfstree/path.go
@@ -85,6 +85,10 @@ type TreePathElem struct {
// ToNodeAddr, or 0 if this is a leaf item and nothing is
// being pointed at.
ToNodeLevel uint8
+ // ToKey is btrfprim.Key{} this is the root node being pointed
+ // to, the KeyPointer.Key if this is a non-root node being
+ // pointed to, or the key of the leaf item being bointed to.
+ ToKey btrfsprim.Key
}
func (elem TreePathElem) writeNodeTo(w io.Writer) {