]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: add device counters for detected IO and checksum errors
authorStefan Behrens <sbehrens@giantdisaster.de>
Fri, 25 May 2012 14:06:08 +0000 (16:06 +0200)
committerJosef Bacik <josef@redhat.com>
Wed, 30 May 2012 14:23:39 +0000 (10:23 -0400)
commit9bc01bd6326ae4dce50ceb45810573c4c476e6ae
treee782db1bcbec25283048d77871e0bed7ad04567c
parent643142fe948b9a8366cd7ebd983763d599a24a0b
Btrfs: add device counters for detected IO and checksum errors

The goal is to detect when drives start to get an increased error rate,
when drives should be replaced soon. Therefore statistic counters are
added that count IO errors (read, write and flush). Additionally, the
software detected errors like checksum errors and corrupted blocks are
counted.

Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
fs/btrfs/disk-io.c
fs/btrfs/extent_io.c
fs/btrfs/ioctl.h
fs/btrfs/scrub.c
fs/btrfs/volumes.c
fs/btrfs/volumes.h