diff options
author | Theodore Ts'o <tytso@mit.edu> | 1997-05-09 02:50:16 +0000 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 1997-05-09 02:50:16 +0000 |
commit | f635d7f65bd002984ce9a202d491d4f187b996b2 (patch) | |
tree | ea1543db6782ab713e826b6cf2de83e3dad149d9 /misc | |
parent | 9559ea33ebf9242d6ffbd09ec7b0996b4f594ef6 (diff) | |
download | e2fsprogs-f635d7f65bd002984ce9a202d491d4f187b996b2.tar.gz |
ChangeLog, mke2fs.c, badblocks.c:
Pass the blocksize to the bad blocks command so that all of the
filesystem gets tested in the case where the blocksize 2048 or 4096.
ChangeLog, badblocks.c:
Fix bug where ext2fs_badblocks_list_test would test the list (and
exceed array boundaries) if there were no bad blocks on the bad blocks
list. (Showed up when user tried: mke2fs -c -b 4096).
Diffstat (limited to 'misc')
-rw-r--r-- | misc/ChangeLog | 6 | ||||
-rw-r--r-- | misc/mke2fs.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/misc/ChangeLog b/misc/ChangeLog index 7ad397a8..b839560c 100644 --- a/misc/ChangeLog +++ b/misc/ChangeLog @@ -1,3 +1,9 @@ +Thu May 8 22:22:08 1997 Theodore Ts'o <tytso@rsts-11.mit.edu> + + * mke2fs.c (test_disk): Pass the blocksize to the bad blocks + command so that all of the filesystem gets tested in the + case where the blocksize 2048 or 4096. + Thu Apr 24 12:16:42 1997 Theodre Ts'o <tytso@localhost.mit.edu> * Release of E2fsprogs version 1.10 diff --git a/misc/mke2fs.c b/misc/mke2fs.c index 55412466..99f0a211 100644 --- a/misc/mke2fs.c +++ b/misc/mke2fs.c @@ -203,8 +203,8 @@ static void test_disk(ext2_filsys fs, badblocks_list *bb_list) errcode_t retval; char buf[1024]; - sprintf(buf, "badblocks %s%s %d", quiet ? "" : "-s ", - fs->device_name, + sprintf(buf, "badblocks -b %d %s%s %d", fs->blocksize, + quiet ? "" : "-s ", fs->device_name, fs->super->s_blocks_count); if (verbose) printf("Running command: %s\n", buf); |