From nobody@FreeBSD.org  Tue Apr 13 09:07:45 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 67F6F16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 13 Apr 2004 09:07:45 -0700 (PDT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 623F243D5D
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 13 Apr 2004 09:07:45 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.10/8.12.10) with ESMTP id i3DG7j72078919
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 13 Apr 2004 09:07:45 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.10/8.12.10/Submit) id i3DG7jtw078918;
	Tue, 13 Apr 2004 09:07:45 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200404131607.i3DG7jtw078918@www.freebsd.org>
Date: Tue, 13 Apr 2004 09:07:45 -0700 (PDT)
From: Sheshka Alexey <pulsar@sky-zebra.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: dd bs size _MUST_ be N*512 - bug or feature 
X-Send-Pr-Version: www-2.3

>Number:         65494
>Category:       misc
>Synopsis:       dd bs size _MUST_ be N*512 - bug or feature
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 13 09:10:20 PDT 2004
>Closed-Date:    Sat Apr 24 00:43:06 PDT 2004
>Last-Modified:  Sat Apr 24 00:43:06 PDT 2004
>Originator:     Sheshka Alexey
>Release:        5.2.1
>Organization:
>Environment:
FreeBSD service.extmedia.com 5.2.1-RELEASE-p4 FreeBSD 5.2.1-RELEASE-p4 #0: Mon Apr  5 04:54:55 EEST 2004     root@service.extmedia.com:/usr/obj/usr/src/sys/SERVICE  i386
>Description:
While I'm making 
root@service.extmedia.com [~] # dd if=/dev/ad0 of=/dev/null bs=1000 count=10
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=/dev/ad0 of=/dev/null bs=4096 count=10
10+0 records in
10+0 records out
40960 bytes transferred in 0.013014 secs (3147361 bytes/sec)
all good.

On OpenBSD and Linux all woks fine with _ANY_ value of bs ... Is it bug or feature in FreeBSD ?
If it is feature , I think this information must presents on it.
>How-To-Repeat:
      dd if=/dev/ad0 of=/dev/null bs=1000 count=10
>Fix:
      
>Release-Note:
>Audit-Trail:

From: Kris Kennaway <kris@obsecurity.org>
To: Sheshka Alexey <pulsar@sky-zebra.net>
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--
State-Changed-From-To: open->closed 
State-Changed-By: kris 
State-Changed-When: Sat Apr 24 00:42:48 PDT 2004 
State-Changed-Why:  
Not a bug 

http://www.freebsd.org/cgi/query-pr.cgi?pr=65494 
>Unformatted:
