]> 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>
Fri, 25 Feb 2022 22:42:16 +0000 (17:42 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Fri, 25 Feb 2022 22:42:16 +0000 (17:42 -0500)
commite9ff33f6e604ece202373be3ac176064083d913e
treeb88ab37d726e3c5bd1d571a7dda7cc2ba3955c99
parent57e4d02c81f86e0142775fbf84c843cd691b17be
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>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
db/faddr.c