[Bug 269075] New: dd manpage lies, or there is a bug in dd
https://bugzilla.novell.com/show_bug.cgi?id=269075 Summary: dd manpage lies, or there is a bug in dd Product: openSUSE 10.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jnelson-suse@jamponi.net QAContact: qa@suse.de According to the manpage (and the help output), the 'bs' parameter sets the blocksize for *both* the input side and the output side. However, it only appears to set it for the input side. Compare the straces of these: find $HOME | strace -o trace1 dd bs=32k of=/dev/null find $HOME | strace -o trace2 dd obs=32k of=/dev/null find $HOME | strace -o trace3 dd ibs=4k obs=32k of=/dev/null and you can clearly see that in the first case, dd is *not* writing in 32KB chunks. Only in the latter two does this appear to work, when obs is specified specifically. This is a big deal because some devices (tape drives, etc...) *require* a certain block size to be used. I don't know if it matters but the same bug is present in openSUSE 10.0 and RHEL3 as well. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=269075 judas_iscariote@shorewall.net changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |schwab@novell.com |screening@forge.provo.novell| |.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=269075 schwab@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Comment #1 from schwab@novell.com 2007-05-02 08:02 MST ------- bs=expr Set both input and output block sizes to expr bytes, superseding ibs= and obs=. If no conversion other than sync, noerror, and notrunc is specified, each input block shall be copied to the output as a single block without aggregating short blocks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=269075 jnelson-suse@jamponi.net changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | ------- Comment #2 from jnelson-suse@jamponi.net 2007-05-02 08:21 MST ------- (In reply to comment #1)
bs=expr Set both input and output block sizes to expr bytes, superseding ibs= and obs=. If no conversion other than sync, noerror, and notrunc is specified, each input block shall be copied to the output as a single block without aggregating short blocks.
Where is that documented? I don't see it in the manpage, the info document, --help, or any of the docs that come with coreutils. I am running openSUSE 10.2 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=269075 schwab@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |INVALID ------- Comment #3 from schwab@novell.com 2007-05-02 08:43 MST ------- http://www.opengroup.org/onlinepubs/009695399/ -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=269075 jnelson-suse@jamponi.net changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | ------- Comment #4 from jnelson-suse@jamponi.net 2007-05-02 08:54 MST ------- I fail to see what relevants those documents have on GNU dd. Either the documentation is wrong (or insufficient) or there is a bug in dd. I'm not sure how linking to an external document makes this (bug 269075) any less of a bug. At the very least, the documentation needs to be updated, or there is a bug in dd. This behavior is far from optimal, by the way, but maybe I'll have to take that up with the GNU folks. It's entirely possible the GNU folks *intended* the behavior to differ from the opengroup documentation. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=269075 schwab@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |INVALID ------- Comment #5 from schwab@novell.com 2007-05-02 09:06 MST ------- There is no bug. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com