On Wed, Jan 23, 2019 at 01:59:29PM -0500, Brian Foster wrote: > The free inode btree construction code in xfs_repair has a bug where > any non-leaf nodes outside of the leftmost block at the associated > level in the tree are incorrectly initialized with the inobt magic > value. Update the prop_ino_cursor() path responsible for growing the > non-leaf portion of the inode btrees to use the btnum of the > specific tree being generated rather than the hardcoded inode btree > type. > > Signed-off-by: Brian Foster <bfoster@xxxxxxxxxx> > Reported-by: Lucas Stach <l.stach@xxxxxxxxxxxxxx> > Root-caused-by: Lucas Stach <l.stach@xxxxxxxxxxxxxx> Looks fine, but one minor thing I noticed when looking at the other cursor functions that handled different tree types was that they assert the valid btnums at the start of the prop_?_cursor() function. I note that build_ino_tree() has a similar assert: ASSERT(btnum == XFS_BTNUM_INO || btnum == XFS_BTNUM_FINO); might be worth adding just for consistency with the rest of the code? Other than that, Reviewed-by: Dave Chinner <dchinner@xxxxxxxxxx> -Dave. -- Dave Chinner david@xxxxxxxxxxxxx