]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: initialize non-leaf finobt blocks with correct magic
authorBrian Foster <bfoster@redhat.com>
Mon, 28 Jan 2019 22:05:16 +0000 (16:05 -0600)
committerEric Sandeen <sandeen@redhat.com>
Mon, 28 Jan 2019 22:05:16 +0000 (16:05 -0600)
commit051dae5efb4fc7c1c47ccb72ff161241fb0815ee
treeb96f2d52430c0bccaad0e33f3fc66bc78cc1b98a
parent38c599e7782ced7d2d1b41c3182daeaddad2cee4
xfs_repair: initialize non-leaf finobt blocks with correct magic

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@redhat.com>
Reported-by: Lucas Stach <l.stach@pengutronix.de>
Root-caused-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
repair/phase5.c