Whamcloud - gitweb
badblocks: Only report errors when reading/writing one block at a time
authorTheodore Ts'o <tytso@mit.edu>
Fri, 18 Feb 2011 03:58:21 +0000 (22:58 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 18 Feb 2011 06:16:03 +0000 (01:16 -0500)
commit468d82f430dfdf270b738e14345b879560c2cd9e
tree9a22c6521874c9648be55ebe7b99325013fe7175
parente53e8fb00970fc74163b822e65d4e1156adac770
badblocks: Only report errors when reading/writing one block at a time

With Direct I/O, the kernel can report 0 bytes read even though the
first block has no errors.  So there are any errors, we need try to
read/write blocks one at a time and to get an accurate report.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/badblocks.c