]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
repair: ensure prefetched buffers have CRCs validated
authorDave Chinner <dchinner@redhat.com>
Thu, 1 May 2014 23:30:57 +0000 (09:30 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 1 May 2014 23:30:57 +0000 (09:30 +1000)
commitadbb3573a7937823026a4b23ee279d1dff92acf6
treee2a35f3709d5d3b7d4775a96e6424b4be5901a58
parent9ba69ce2297d8c4abf2b39a41b389b0b258a6bd5
repair: ensure prefetched buffers have CRCs validated

Prefetch currently does not do CRC validation when the IO completes
due to the optimisation it performs and the fact that it does not
know what the type of metadata into the buffer is supposed to be.
Hence, mark all prefetched buffers as "suspect" so that when the
end user tries to read it with a supplied validation function the
validation is run even though the buffer was already in the cache.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
include/libxfs.h
libxfs/rdwr.c
repair/prefetch.c