md: report sector of stripes with check mismatches
authorNix <nix@esperi.org.uk>
Tue, 16 May 2017 09:13:31 +0000 (10:13 +0100)
committerShaohua Li <shli@fb.com>
Wed, 24 May 2017 23:31:13 +0000 (16:31 -0700)
commite153903686deac9ea8c499b49516126f1a844fdb
tree4509ecd27c4445b542e9c592ca835af1f99e845e
parent4179bc30b2fe85f827d93e0ae7ae8f49ad3afc02
md: report sector of stripes with check mismatches

This makes it possible, with appropriate filesystem support, for a
sysadmin to tell what is affected by the mismatch, and whether
it should be ignored (if it's inside a swap partition, for
instance).

We ratelimit to prevent log flooding: if there are so many
mismatches that ratelimiting is necessary, the individual messages
are relatively unlikely to be important (either the machine is
swapping like crazy or something is very wrong with the disk).

Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid5.c