]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_db: Allow writes of corrupted data
authorEric Sandeen <sandeen@sandeen.net>
Mon, 6 Apr 2015 23:19:04 +0000 (09:19 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 6 Apr 2015 23:19:04 +0000 (09:19 +1000)
commitc9f5e3db2209878abdf52d89e5532fe378dfaf15
treeea80a6be0ab28bd7f25f2378676f34f4e68be44d
parent8bc43a39facea94cc276df86956f4e6bf1ad05f6
xfs_db: Allow writes of corrupted data

Being able to write corrupt data is handy if we wish to test
repair against specific types of corruptions.

Add a "-c" option to the write command which allows this by removing
the write verifier.

Note that this also skips CRC updates; it's not currently possible
to write invalid data with a valid CRC; CRC recalculation is
intertwined with validation.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
db/io.c
db/io.h
db/write.c
man/man8/xfs_db.8