From owner-freebsd-bugs@FreeBSD.ORG Fri Apr 16 01:50:23 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C99DD16A4CE for ; Fri, 16 Apr 2004 01:50:23 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC4CF43D2F for ; Fri, 16 Apr 2004 01:50:23 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i3G8oNbv033642 for ; Fri, 16 Apr 2004 01:50:23 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i3G8oNDl033641; Fri, 16 Apr 2004 01:50:23 -0700 (PDT) (envelope-from gnats) Date: Fri, 16 Apr 2004 01:50:23 -0700 (PDT) Message-Id: <200404160850.i3G8oNDl033641@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Kris Kennaway Subject: Re: misc/65494: dd bs size _MUST_ be N*512 - bug or feature X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Kris Kennaway List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Apr 2004 08:50:23 -0000 The following reply was made to PR misc/65494; it has been noted by GNATS. From: Kris Kennaway To: Sheshka Alexey Cc: freebsd-gnats-submit@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@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@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--