From owner-freebsd-current Mon Mar 27 23:19:31 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id XAA29735 for current-outgoing; Mon, 27 Mar 1995 23:19:31 -0800 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.34]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id XAA29726; Mon, 27 Mar 1995 23:19:14 -0800 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id RAA13866; Tue, 28 Mar 1995 17:14:53 +1000 Date: Tue, 28 Mar 1995 17:14:53 +1000 From: Bruce Evans Message-Id: <199503280714.RAA13866@godzilla.zeta.org.au> To: freebsd-bugs@FreeBSD.org, freebsd-current@FreeBSD.org, uhclem@nemesis.lonestar.org Subject: Re: No declaration for bounds_check_with_label Sender: current-owner@FreeBSD.org Precedence: bulk >Could we locate a nice include file and include: >extern int bounds_check_with_label(struct buf *bp, struct disklabel *lp, > int wlabel); >Several different drivers have to references this and it has no >declaration. The function is in machdep.c. It is declared in (since revision 1.11 1995/03/16), but will go away. Please update your driver(s) to use disk slices (dscheck()) so that bounds_check_with_label() can go away ASAP. See recent changes to sd.c. for examples. Unsliced unlabeled read-only disks are simpler to handle. dsopen() will eventually have a `struct diskgeom' arg (the struct will be something like `struct disk_parms' in sd.c) so that a dummy label doesn't have to be created in 1001 different cdrom drivers. The disk slice module also handles all for the DIOC* ioctls so that drivers don't have to and correctly tracks open partitions. Most scsi and cd drivers incorrectly track open partitions. Some of them incorrectly declare their close function so they don't even know about the `fmt' arg which is required for distinguishing closes of the cdev from closes of the bdev. Bruce