forked from tytso/e2fsprogs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
badblocks: Limit maximum number of bad blocks
Currently maximum number of bad blocks is not limited in any way. However our code can really handle at most INT_MAX/2 bad blocks (for larger numbers binary search indexes start overflowing). So report number of bad blocks is just too big instead of plain segfaulting. It won't be too hard to raise the limit but I don't think there's any real use for disks with over 1 billion of bad blocks... Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
- Loading branch information
Showing
1 changed file
with
20 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters