Whamcloud - gitweb
badblocks: Remove 4096 blocksize limit
authorTheodore Ts'o <tytso@mit.edu>
Tue, 2 Jun 2009 13:31:24 +0000 (09:31 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 2 Jun 2009 13:31:24 +0000 (09:31 -0400)
There is no need to prohibit the use of block sizes larger than 4k in
the badblocks program.

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

index 528bc22..6e9c939 100644 (file)
@@ -1010,11 +1010,6 @@ int main (int argc, char ** argv)
                switch (c) {
                case 'b':
                        block_size = parse_uint(optarg, "block size");
-                       if (block_size > 4096) {
-                               com_err (program_name, 0,
-                                        _("bad block size - %s"), optarg);
-                               exit (1);
-                       }
                        break;
                case 'f':
                        force++;