summaryrefslogtreecommitdiff
path: root/lib/btrfs/btrfstree/btree.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/btrfs/btrfstree/btree.go')
-rw-r--r--lib/btrfs/btrfstree/btree.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/btrfs/btrfstree/btree.go b/lib/btrfs/btrfstree/btree.go
index 2fd7c39..7b3721b 100644
--- a/lib/btrfs/btrfstree/btree.go
+++ b/lib/btrfs/btrfstree/btree.go
@@ -45,7 +45,10 @@ type TreeOperator interface {
// If some items are able to be read, but there is an error reading the
// full set, then it might return *both* a list of items and an error.
//
- // If no such item is found, an error that is io/fs.ErrNotExist is
+ // If the tree is not found, an error that is ErrNoTree is
+ // returned.
+ //
+ // If no such item is found, an error that is ErrNoItem is
// returned.
TreeSearchAll(treeID btrfsprim.ObjID, fn func(key btrfsprim.Key, size uint32) int) ([]Item, error) // size is math.MaxUint32 for key-pointers
}