GNU bug report logs -
#8171
[dd] bs=blocksize doesn't work as expected
Previous Next
Reported by: Станислав <ginermail <at> gmail.com>
Date: Fri, 4 Mar 2011 05:07:02 UTC
Severity: normal
Done: Pádraig Brady <P <at> draigBrady.com>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 8171 <at> debbugs.gnu.org (full text, mbox):
On Fri, 2011-03-04 at 08:02 +0300, Станислав wrote:
> [dd] bs=blocksize doesn't work as expected, for example:
> tar -c /somedir | dd bs=256K of=/dev/nst0
> In this example backup record will be recorded to a tape with block size =
> 10K instead of 256K because 10K is default for tar.
> There is workaround:
> tar -c /somedir | dd ibs=256K obs=256K of=/dev/nst0
> If we set block size for input and output separatly - it works as expected.
Even partial block (short read) is a block - especially when you read
via pipe. If you want to have only fullblock, dd provides
iflag=fullblock for you. See info documentation (or online GNU coreutils
manual) for details.
> lucid <http://packages.ubuntu.com/lucid/coreutils> (utils): The GNU core
> utilities
> 7.4-2ubuntu2: amd64 i386
Current version is 8.10, but iflag=fullblock should be present there -
added in 7.0
This bug report was last modified 14 years and 142 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.