From owner-freebsd-fs Tue Sep 24 10:24:32 1996 Return-Path: owner-fs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA07981 for fs-outgoing; Tue, 24 Sep 1996 10:24:32 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id KAA07899; Tue, 24 Sep 1996 10:24:20 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.7.6/8.6.9) id DAA07851; Wed, 25 Sep 1996 03:19:24 +1000 Date: Wed, 25 Sep 1996 03:19:24 +1000 From: Bruce Evans Message-Id: <199609241719.DAA07851@godzilla.zeta.org.au> To: dfr@render.com, michaelh@cet.co.jp Subject: Re: New d_type field in *devsw Cc: bde@zeta.org.au, fs@FreeBSD.org, lite2@FreeBSD.org Sender: owner-fs@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk >There is an existing unused field in bdevsw, d_flags which can be used to >identify disks and tapes for securelevel and ioctl or alternatively the >existing FreeBSD behaviour of calling isdisk() is still possible. The >current behaviour of dead_read is probably also adequate. >Needless to say, these hacks should be first against the wall after the >devfs revolution :-). They are high quality compared with isdisk(). The cross pointers in the devsw's can be be used to share d_flags with the cdevs. However, to use them we would have to modify a lot of device drivers with a temporary change. Bruce