diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-07-07 13:17:40 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2022-07-08 00:16:03 -0600 |
commit | c93e585d97cf6129cba277c812d100e7eac0d249 (patch) | |
tree | 37de44feba03f7a15379aa9ad38bf5e4e3d386f1 /pkg/btrfs | |
parent | 1bec6c5425f6df339e35d91468d4670f84020215 (diff) |
sorta fix the Level on root nodes
Diffstat (limited to 'pkg/btrfs')
-rw-r--r-- | pkg/btrfs/io3_btree.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/btrfs/io3_btree.go b/pkg/btrfs/io3_btree.go index 3c1535b..9ba3be1 100644 --- a/pkg/btrfs/io3_btree.go +++ b/pkg/btrfs/io3_btree.go @@ -152,7 +152,7 @@ func (fs *FS) treeWalk(path TreePath, cbs TreeWalkHandler) error { } } node, err := fs.readNodeAtLevel(path[len(path)-1].NodeAddr, path[len(path)-1].NodeLevel) - if node != nil { + if node != nil && err == nil { path[len(path)-1].NodeLevel = node.Data.Head.Level } if cbs.Node != nil { |