Whamcloud - gitweb
badblocks: Fix up recover_block handling in badblocks
authorTheodore Ts'o <tytso@mit.edu>
Sun, 20 Feb 2011 20:19:47 +0000 (15:19 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 20 Feb 2011 20:19:47 +0000 (15:19 -0500)
commit39791dc0bda8c5a995e307e6306b79cd0fded644
treec5e2e514231183763982f69a1622a69a4c7f66eb
parent468d82f430dfdf270b738e14345b879560c2cd9e
badblocks: Fix up recover_block handling in badblocks

If there was a bad block for block #0, badblocks would never switch
back testing blocks more efficiently.  In addition, we were
double-incrementing the blocks to be tested in the read/write test due
to failure to remove code.

Thanks to Ragnar Kjørstad for pointing these problems out.

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