Package: sdd
Version: 1.52-10
Severity: normal

'man dd' on 'ibs=':

    % man dd | grep -A 1 -n 'ibs=' | tail -n 2
    27:       ibs=BYTES
    28-              read BYTES bytes at a time

In the following two tests 'sdd' behaves exactly like 'dd':

    # read one byte from a string
    % echo hello | sdd ibs=1 count=1 2> /dev/null | wc -c
    1

    # read one byte from /dev/null (does nothing)
    % sdd if=/dev/null ibs=1 count=1 2> /dev/null | wc -c
    0

But '-inull' ignores 'ibs=':

    % sdd -inull ibs=1 count=1 2> /dev/null | wc -c
    512

    # try it with '1w'?
    % sdd -inull ibs=1w count=1 2> /dev/null | wc -c
    512

Since 'man sdd' implies '-inull' is only a faster version of
'if=/dev/null', this looks like a bug.

If it's not a bug, it ought to be documented.  And maybe 'sdd'
should return a non-fatal error or warning to indicate that 
'ibs=' won't work:

    sdd: caution, the '-inull' option ignores 'ibs='

...or even a fatal error:

    sdd: syntax error, '-inull' can't be used with 'ibs='


Hope this helps...


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash

Versions of packages sdd depends on:
ii  libc6                         2.7-9      GNU C Library: Shared libraries

sdd 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