]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - db/io.h
db: don't claim unchecked CRCs are correct
authorDave Chinner <dchinner@redhat.com>
Thu, 1 May 2014 23:30:39 +0000 (09:30 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 1 May 2014 23:30:39 +0000 (09:30 +1000)
commitb511ff41ea3c683d0a6fdc4149094655614178f1
tree615aa8213994a9343eeef665265649a2be715acd
parentfa98503b9d8412be46e85857f36b941b4fb5df92
db: don't claim unchecked CRCs are correct

Currently xfs_db will claim the CRC on a structure is correct if the
buffer is not marked with an error. However, buffers may have been
read without a verifier, and hence have not had their CRCs
validated. in this case, we shoul dreport "unchecked" rather than
"correct". For example:

xfs_db> fsb 0x6003f
xfs_db> type dir3
xfs_db> p
dhdr.hdr.magic = 0x58444433
dhdr.hdr.crc = 0x2d0f9c9d (unchecked)
....

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
db/fprint.c
db/io.c
db/io.h
include/libxfs.h