]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_db: consolidate set_iocur_type behavior
authorEric Sandeen <sandeen@redhat.com>
Mon, 24 Aug 2020 17:20:07 +0000 (13:20 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Mon, 24 Aug 2020 17:20:07 +0000 (13:20 -0400)
commitcdabe556458a2dc1d673472d8d04e739dba8263b
treeec44a6b4fe2fdce932d3752ba9d1a00bc52762c1
parent7b4a7b3f6bce91be45b54fc68e169cb756dc8c74
xfs_db: consolidate set_iocur_type behavior

Right now there are 3 cases to type_f: inode type, type with fields,
and a default.  The first two were added to address issues with handling
V5 metadata.

The first two already use some version of set_cur, which handles all
of the validation etc. There's no reason to leave the open-coded bits
at the end, just send every non-inode type through set_cur and be done
with it.

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