btrfs scrub: added unverified_errors
authorJan Schmidt <list.btrfs@jan-o-sch.net>
Mon, 13 Jun 2011 17:56:13 +0000 (19:56 +0200)
committerJan Schmidt <list.btrfs@jan-o-sch.net>
Thu, 29 Sep 2011 10:54:27 +0000 (12:54 +0200)
commit13db62b7a1e8c64763a93c155091620f85ff8920
treefdc56259e5675f6fe70c555138d6d3b0ebbbefb5
parenta542ad1bafc7df9fc16de8a6894b350a4df75572
btrfs scrub: added unverified_errors

In normal operation, scrub is reading data sequentially in large portions.
In case of an i/o error, we try to find the corrupted area(s) by issuing
page sized read requests. With this commit we increment the
unverified_errors counter if all of the small size requests succeed.

Userland patches carrying such conspicous events to the administrator should
already be around.

Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
fs/btrfs/scrub.c