From owner-cvs-all Thu Jan 29 10:37:23 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA24622 for cvs-all-outgoing; Thu, 29 Jan 1998 10:37:23 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA24565; Thu, 29 Jan 1998 10:37:13 -0800 (PST) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id FAA07536; Fri, 30 Jan 1998 05:31:25 +1100 Date: Fri, 30 Jan 1998 05:31:25 +1100 From: Bruce Evans Message-Id: <199801291831.FAA07536@godzilla.zeta.org.au> To: bde@zeta.org.au, daniel_sobral@voga.com.br Subject: Re: cvs commit: src/sys/i386/isa wfd.c Cc: cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-sys@FreeBSD.ORG, mike@smith.net.au Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe cvs-all" >> There should also be a cdevsw function to give the >> "best" i/o size. > >I agree with that. Having an ioctl to do it is awkward. Especially a nonexistent ioctl. The DIOCGPART ioctl only works for partitions with type FS_BSDFFS and a nonzero fragment size and count in their partition table entry. newfs(8) used to initialize these entries but this was broken a few years ago. You can still initialize these entries using disklabel(8), although this is bogus for partitions that don't have ufs filesystem on them. This sometimes happens by accident because /etc/disktab specifies such entries. BTW, how is tc (type specify for partition c) disambiguated from tc (termcap capabilities)? The former should never be used, for reasons not related to termcap. Bruce