misc/65494: dd bs size _MUST_ be N*512 - bug or feature

Kris Kennaway kris at obsecurity.org
Fri Apr 16 01:50:23 PDT 2004


The following reply was made to PR misc/65494; it has been noted by GNATS.

From: Kris Kennaway <kris at obsecurity.org>
To: Sheshka Alexey <pulsar at sky-zebra.net>
Cc: freebsd-gnats-submit at FreeBSD.org
Subject: Re: misc/65494: dd bs size _MUST_ be N*512 - bug or feature
Date: Fri, 16 Apr 2004 01:49:29 -0700

 --6c2NcOVqGQ03X4Wi
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Tue, Apr 13, 2004 at 09:07:45AM -0700, Sheshka Alexey wrote:
 
 > While I'm making=20
 > root at service.extmedia.com [~] # dd if=3D/dev/ad0 of=3D/dev/null bs=3D1000=
  count=3D10
 > dd: /dev/ad0: Invalid argument
 > 0+0 records in
 > 0+0 records out
 > 0 bytes transferred in 0.000544 secs (0 bytes/sec)
 > it produse error, but
 > root at service.extmedia.com [~] # dd if=3D/dev/ad0 of=3D/dev/null bs=3D4096=
  count=3D10
 > 10+0 records in
 > 10+0 records out
 > 40960 bytes transferred in 0.013014 secs (3147361 bytes/sec)
 > all good.
 >=20
 > On OpenBSD and Linux all woks fine with _ANY_ value of bs ... Is it bug o=
 r feature in FreeBSD ?
 > If it is feature , I think this information must presents on it.
 > >How-To-Repeat:
 >       dd if=3D/dev/ad0 of=3D/dev/null bs=3D1000 count=3D10
 
 Feature, I think - you have to use a multiple of the block size of the
 underlying device, because FreeBSD no longer implements buffered
 devices.
 
 Kris
 
 --6c2NcOVqGQ03X4Wi
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.4 (FreeBSD)
 
 iD8DBQFAf54ZWry0BWjoQKURAuI6AKCYc0/g/He6JLgkfvqb2lEfPrD9HQCgte0F
 Xs24sPaq5cG4MBSMBqjPmRA=
 =ylMn
 -----END PGP SIGNATURE-----
 
 --6c2NcOVqGQ03X4Wi--


More information about the freebsd-bugs mailing list