Re: [PATCH 3/3] mm: Swap checksum
From: Avi Kivity
Date: Mon May 24 2010 - 06:51:57 EST
On 05/24/2010 10:32 AM, Nick Piggin wrote:
I wonder, though. If we no longer trust block devices to give the
correct data back, should we provide a meta block device to do error
detection?
Some block devices do provide space for end-to-end checksums. For the
ones that don't, I see no efficient way of adding it (either we turn one
access into two, or we have a non-power-of-two block size).
No production filesystem on Linux has checksums (well, ext4
has a few). Of the ones that add checksumming, I'd say most will not do
data checksumming (and for direct IO it is not done).
I believe btrfs checksums direct IO. Unfortunately it has some way to
go before it can be used in production.
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/