diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-10-03 00:21:45 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2022-10-03 00:42:05 -0600 |
commit | 8d002200ad5133c8c499aed93e0261fbf38e19b7 (patch) | |
tree | 624d91f9ee83a3e4fac1c5188f753d20f9e5323d /lib/btrfs/btrfstree/path.go | |
parent | b8925fd046948bd9e4979626b511d98849ae385c (diff) |
add max key checking
Diffstat (limited to 'lib/btrfs/btrfstree/path.go')
-rw-r--r-- | lib/btrfs/btrfstree/path.go | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/btrfs/btrfstree/path.go b/lib/btrfs/btrfstree/path.go index b40c7ed..d9bf216 100644 --- a/lib/btrfs/btrfstree/path.go +++ b/lib/btrfs/btrfstree/path.go @@ -85,10 +85,14 @@ 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 + // ToKey is either + // - btrfprim.Key{} if 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 pointed to. + ToKey btrfsprim.Key + ToMaxKey btrfsprim.Key } func (elem TreePathElem) writeNodeTo(w io.Writer) { |