Package: e2fsprogs
Version: 1.39-1
Severity: normal

An attempt to test one block:

    % badblocks /dev/hdb1 1 1 ; echo $?
    badblocks: invalid blocks range: 1-1
    1

'man badblocks' seems clear enough:

        last-block is the last block to be checked; if it is not specified, the
        last block on the device is used as a default.   start-block  is an
        optional  parameter  specifying the starting block number for the test,
        which allows the testing to start in the middle of the disk. 

...according to that, a range  of '1 1' should work.  Looks like
a fencepost error, in which case this might work:

    % badblocks -vs /dev/hdb1 2 1
    Checking blocks 1 to 2
    Checking for bad blocks (read-only test): done
    Pass completed, 0 bad blocks found.

Vague... did it scan one block or two?  If it scanned one block,
then the the message "Checking blocks 1 to 2" is inaccurate.

Suggested fixes:

    Either:
    1) Make 'badblocks' do what the manual says.  A range of '1 1' would search
       one block.

    Or else:
    2) Have the manual correctly describe what 'badblocks' now does, 
       and fix the program's "Checking blocks x to y" output message.

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.ds1-4 GNU C Library: Shared libraries
ii  libcomerr2                   1.39-1      common error description library
ii  libdevmapper1.02             2:1.02.08-1 The Linux Kernel Device Mapper use
ii  libselinux1                  1.30.26-2   SELinux shared libraries
ii  libsepol1                    1.12.24-1   Security Enhanced Linux policy lib
ii  libss2                       1.39-1      command-line interface parsing lib
ii  libuuid1                     1.39-1      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]

Reply via email to