]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_db: allow write -d to inodes
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 2 May 2017 16:12:31 +0000 (11:12 -0500)
committerEric Sandeen <sandeen@redhat.com>
Tue, 2 May 2017 16:12:31 +0000 (11:12 -0500)
commit6f7f89286ecd24fcc3b0e83dd71d24dbba756dd0
tree2651557a0fb81ac07c6912167c7f9f19d6989972
parentca138928faddcadaf6175b2b3de24560187107b1
xfs_db: allow write -d to inodes

Add a helper function to xfs_db so that we can recalculate the CRC of an
inode whose field we just wrote.  This enables us to write arbitrary
values with a good CRC for the purpose of checking the read verifiers on
a v5 filesystem.

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