]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
db: verify buffer on type change
authorDave Chinner <dchinner@redhat.com>
Thu, 1 May 2014 23:30:47 +0000 (09:30 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 1 May 2014 23:30:47 +0000 (09:30 +1000)
commit9ba69ce2297d8c4abf2b39a41b389b0b258a6bd5
treee851abdce7e36b7882584fa1b078ac272c41dbb8
parentb511ff41ea3c683d0a6fdc4149094655614178f1
db: verify buffer on type change

Currently when the type command is run, we simply change the type
associated with the buffer, but don't verify it. This results in
unchecked CRCs being displayed. Hence when changing the type, run
the verifier associated with the type to determine if the buffer
contents is valid or not.

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