]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_db: Don't ASSERT on unrecognized metadata
authorCarlos Maiolino <cmaiolino@redhat.com>
Thu, 31 May 2018 19:10:42 +0000 (14:10 -0500)
committerEric Sandeen <sandeen@redhat.com>
Thu, 31 May 2018 19:10:42 +0000 (14:10 -0500)
commita023e1af046c190c9782b2ecd814cd28bcdb4e39
tree7e7f8140830adf72dc1ccbac2824dc9ffb2bcea7
parent14c57d50de912fae821f8c1e717144f3602566de
xfs_db: Don't ASSERT on unrecognized metadata

For some types, (for example attr3) if the metadata is not recognized
as the requested type, we can hit an ASSERT when trying to print
the type:

xfs_db: print.c:164: print_flist_1: Assertion `fa->arg & 64' failed.
Aborted (core dumped)

This can happen for corrupted metadata or even just a misdirected
user command; there's no reason to ASSERT.  If we get here, print
something helpful and carry on.

[sandeen: write the commit log]

Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
db/print.c