]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_db: fix nbits parameter in fa_ino[48] functions
authorDarrick J. Wong <djwong@kernel.org>
Thu, 13 Jan 2022 01:19:03 +0000 (17:19 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 20 Jan 2022 00:02:51 +0000 (16:02 -0800)
commit792c7fe0498409dfcff5a79acf8316f7c03fabb6
treea113b793e050883bc05ea5ba74690ac316e37160
parent578feb7c6832cca2e3f52560069a026ef6863755
xfs_db: fix nbits parameter in fa_ino[48] functions

Use the proper macro to convert ino4 and ino8 field byte sizes to a bit
count in the functions that navigate shortform directories.  This just
happens to work correctly for ino4 entries, but omits the upper 4 bytes
of an ino8 entry.  Note that the entries display correctly; it's just
the command "addr u3.sfdir3.list[X].inumber.i8" that won't.

Found by running smatch.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
db/faddr.c