From 8d002200ad5133c8c499aed93e0261fbf38e19b7 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 3 Oct 2022 00:21:45 -0600 Subject: add max key checking --- lib/btrfs/btrfstree/path.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'lib/btrfs/btrfstree/path.go') 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) { -- cgit v1.2.3-2-g168b