Package: e2fsprogs
Version: 1.39-1
Severity: wishlist
It says here:
% man badblocks | grep -n -B 4 exclusive | tail -n +3
84- -n Use non-destructive read-write mode. By default only a
non-
85- destructive read-only test is done. This option must
not be
86: combined with the -w option, as they are mutually
exclusive.
--
93- -w Use write-mode test. With this option, badblocks scans
for bad
94- blocks by writing some patterns (0xaa, 0x55, 0xff,
0x00) on
95- every block of the device, reading every block and
comparing the
96- contents. This option may not be combined with the -n
option,
97: as they are mutually exclusive.
Let's TRY that:
% badblocks -nw /dev/hda4 ; echo $? # '-nw' shouldn't work.
Usage: badblocks [-b block_size] [-i input_file] [-o output_file] [-svwnf]
[-c blocks_at_once] [-p num_passes] [-t test_pattern [-t test_pattern
[...]]]
device [last_block [start_block]]
1
Vague, the error message gives no clue as to what went wrong.
It would be better if:
1) the 'badblocks' code checked for the prohibited '-nw'
combination, then displayed a more specific error message.
2) once that was done, both man page paragraphs quoted
above could have their last sentences deleted for
being redundant.
(Kludge, if for some reason #1 was difficult. A simple
Bourne shell script wrapper could easily be written to handle
parameter passing.)
Hope this helps...
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/dash
Kernel: Linux 2.6.16-2-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Versions of packages e2fsprogs depends on:
ii e2fslibs 1.39-1 ext2 filesystem libraries
ii libblkid1 1.39-1 block device id library
ii libc6 2.3.6-11 GNU C Library: Shared libraries
ii libcomerr2 1.38+1.39-WIP-2006.04.09-2 common error description library
ii libdevmapper1 2:1.02.05-2 The Linux Kernel Device Mapper use
ii libselinux1 1.30-1 SELinux shared libraries
ii libsepol1 1.12-1 Security Enhanced Linux policy lib
ii libss2 1.38+1.39-WIP-2006.04.09-2 command-line interface parsing lib
ii libuuid1 1.38+1.39-WIP-2006.04.09-2 universally unique id library
e2fsprogs recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]