diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-08-28 11:44:08 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2022-08-28 14:40:22 -0600 |
commit | a40e81b3b629198a4c30ad18f7544c7d513da287 (patch) | |
tree | 8291e76d36821652f98d4110f3abb33ceb1de7b1 /lib/btrfsprogs/btrfsrepair/clearnodes.go | |
parent | 732394dfe160705f80c136aa8696d180165b485c (diff) |
btrfs: Rework TreePath to allow correctly checking the owner tree
Diffstat (limited to 'lib/btrfsprogs/btrfsrepair/clearnodes.go')
-rw-r--r-- | lib/btrfsprogs/btrfsrepair/clearnodes.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/btrfsprogs/btrfsrepair/clearnodes.go b/lib/btrfsprogs/btrfsrepair/clearnodes.go index 9f1e42c..2258f66 100644 --- a/lib/btrfsprogs/btrfsrepair/clearnodes.go +++ b/lib/btrfsprogs/btrfsrepair/clearnodes.go @@ -54,10 +54,10 @@ func ClearBadNodes(ctx context.Context, fs *btrfs.FS) error { Flags: btrfs.NodeWritten, BackrefRev: btrfs.MixedBackrefRev, ChunkTreeUUID: chunkTreeUUID, - Generation: 0, - Owner: path.TreeID, + Generation: path.Node(-1).FromGeneration, + Owner: path.Node(-1).FromTree, NumItems: 0, - Level: path.Node(-1).NodeLevel, + Level: path.Node(-1).ToNodeLevel, }, } node.Data.Head.Checksum, err = node.Data.CalculateChecksum() |