Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
badblocks: fix wrong return value in badblocks_set if badblocks are d…
…isabled MD's rdev_set_badblocks() expects that badblocks_set() returns 1 if badblocks are disabled, otherwise, rdev_set_badblocks() will record superblock changes and return success in that case and md will fail to report an IO error which it should. This bug has existed since badblocks were introduced in commit 9e0e252 ("badblocks: Add core badblock management code"). Signed-off-by: Liu Bo <[email protected]> Acked-by: Guoqing Jiang <[email protected]> Signed-off-by: Shaohua Li <[email protected]>
- Loading branch information