commit | 468d82f430dfdf270b738e14345b879560c2cd9e | [log] [tgz] |
---|---|---|
author | Theodore Ts'o <tytso@mit.edu> | Thu Feb 17 22:58:21 2011 -0500 |
committer | Theodore Ts'o <tytso@mit.edu> | Fri Feb 18 01:16:03 2011 -0500 |
tree | 9a22c6521874c9648be55ebe7b99325013fe7175 | |
parent | e53e8fb00970fc74163b822e65d4e1156adac770 [diff] |
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>