summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>1999-07-16 10:41:36 +0000
committerTheodore Ts'o <tytso@mit.edu>1999-07-16 10:41:36 +0000
commit9f10a7b31e57288093930fc9565102409eeac6e9 (patch)
tree40d5f2eb7102404d4fd8e8ef58e387c052bf7fbf /misc
parent6d53db3fba09a90875048326bd7ae29cd24d00e2 (diff)
downloade2fsprogs-9f10a7b31e57288093930fc9565102409eeac6e9.tar.gz
ChangeLog, badblocks.c:
badblocks.c (do_test): Don't complain if the write error occurs on a non-block boundary. This is perfectly common when using blocksizes larger than 1k.
Diffstat (limited to 'misc')
-rw-r--r--misc/ChangeLog6
-rw-r--r--misc/badblocks.c5
2 files changed, 8 insertions, 3 deletions
diff --git a/misc/ChangeLog b/misc/ChangeLog
index 3ba47a8c..29415a8c 100644
--- a/misc/ChangeLog
+++ b/misc/ChangeLog
@@ -1,3 +1,9 @@
+1999-07-08 <tytso@rsts-11.mit.edu>
+
+ * badblocks.c (do_test): Don't complain if the write error occurs
+ on a non-block boundary. This is perfectly common when
+ using blocksizes larger than 1k.
+
1999-07-03 <tytso@valinux.com>
* uuidgen.c: Add option parsing so that user can ask for either a
diff --git a/misc/badblocks.c b/misc/badblocks.c
index d312cd27..bd3f223c 100644
--- a/misc/badblocks.c
+++ b/misc/badblocks.c
@@ -99,10 +99,9 @@ static long do_test (int dev, char * buffer, int try, unsigned long block_size,
got = read (dev, buffer, try * block_size);
if (got < 0)
got = 0;
- if (got & (block_size - 1))
+ if (got & 511)
fprintf (stderr,
- "Weird value (%ld) in do_test: probably bugs\n",
- got);
+ "Weird value (%ld) in do_test\n", got);
got /= block_size;
return got;
}