]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_db: fix finobt record decoding when sparse inodes enabled
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 28 Jan 2019 19:03:15 +0000 (13:03 -0600)
committerEric Sandeen <sandeen@redhat.com>
Mon, 28 Jan 2019 19:03:15 +0000 (13:03 -0600)
commit38c599e7782ced7d2d1b41c3182daeaddad2cee4
tree6fc87163dfa04927102df3ccb2190b365f6cecf8
parent0ba6dae9f86f7c02e88d8846234f497e1cde3aa9
xfs_db: fix finobt record decoding when sparse inodes enabled

Use the sparse inobt record field decoder (inobt_spcrc_hfld) to decode
finobt records when sparse inodes are enabled.  Otherwise, xfs_db
prints out bogus things like:

recs[1] = [startino,freecount,free]
1:[214720,16429,0xfffffffffff80000]

There can never be 16429 records in an inode btree record; instead it
should print:

recs[1] = [startino,holemask,count,freecount,free]
1:[214720,0,64,45,0xfffffffffff80000]

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
db/type.c