]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit92f6d1aaccc280385ad520cecf1bf89c7c25ebfc
tree4509ecd27c4445b542e9c592ca835af1f99e845e
parent4d36805e1d0c3a6651f54051077efe59827e8c57
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