diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-08-30 21:39:00 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2022-08-30 21:39:54 -0600 |
commit | a9d6b935eef8124efbcfd2c9569fbccd932051de (patch) | |
tree | 24b9681825a6dcc40643f7d3d081c21316ee585e /lib/btrfsprogs/btrfsinspect/rebuildnodes | |
parent | 4a52c625fdf68a8693d5b3c6eb80e7faf822cb15 (diff) |
Change how btrfstree.TreePath generations work
Diffstat (limited to 'lib/btrfsprogs/btrfsinspect/rebuildnodes')
-rw-r--r-- | lib/btrfsprogs/btrfsinspect/rebuildnodes/s3_reinit.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/btrfsprogs/btrfsinspect/rebuildnodes/s3_reinit.go b/lib/btrfsprogs/btrfsinspect/rebuildnodes/s3_reinit.go index fc46d27..5655eb6 100644 --- a/lib/btrfsprogs/btrfsinspect/rebuildnodes/s3_reinit.go +++ b/lib/btrfsprogs/btrfsinspect/rebuildnodes/s3_reinit.go @@ -74,8 +74,8 @@ func reInitBrokenNodes(ctx context.Context, fs _FS, badNodes []badNode) (map[btr } sort.Slice(badNodes, func(i, j int) bool { - iGen := badNodes[i].Path.Node(-1).FromGeneration - jGen := badNodes[j].Path.Node(-1).FromGeneration + iGen := badNodes[i].Path.Node(-1).ToNodeGeneration + jGen := badNodes[j].Path.Node(-1).ToNodeGeneration switch { case iGen < jGen: return true @@ -117,7 +117,7 @@ func reInitBrokenNodes(ctx context.Context, fs _FS, badNodes []badNode) (map[btr Addr: path.Node(-1).ToNodeAddr, ChunkTreeUUID: chunkTreeUUID, //Owner: TBD, // see RebuiltNode.InTrees - Generation: path.Node(-1).FromGeneration, + Generation: path.Node(-1).ToNodeGeneration, Level: path.Node(-1).ToNodeLevel, }, }, |