From owner-cvs-all Thu Jul 30 12:17:36 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA29069 for cvs-all-outgoing; Thu, 30 Jul 1998 12:17:36 -0700 (PDT) (envelope-from owner-cvs-all) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA28964; Thu, 30 Jul 1998 12:17:15 -0700 (PDT) (envelope-from bde@FreeBSD.org) From: Bruce Evans Received: (from bde@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id IAA06125; Thu, 30 Jul 1998 08:16:06 -0700 (PDT) Date: Thu, 30 Jul 1998 08:16:06 -0700 (PDT) Message-Id: <199807301516.IAA06125@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/sys/dev/vn vn.c src/sys/i386/isa wd.c wfd.c src/sys/kern subr_diskslice.c src/sys/pc98/pc98 wd.c src/sys/scsi od.c sd.c src/sys/sys diskslice.h Sender: owner-cvs-all@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 1998/07/30 08:16:06 PDT Modified files: sys/dev/vn vn.c sys/i386/isa wd.c wfd.c sys/kern subr_diskslice.c sys/pc98/pc98 wd.c sys/scsi od.c sd.c sys/sys diskslice.h Log: Added a flags arg to dsopen() and updated drivers. The DSO_ONESLICE and DSO_NOLABELS flags prevent searching for slices and labels respectively. Current drivers don't set these flags. When DSO_NOLABELS is set, the in-core label for the whole disk is cloned to create an in-core label for each slice. This gives the correct result (a good in-core label for the compatibility slice) if DSO_ONESLICE is set or only one slice is found, but usually gives broken labels otherwise, so DSO_ONESLICE should be set if DSO_NOLABELS is set. Revision Changes Path 1.67 +3 -3 src/sys/dev/vn/vn.c 1.173 +2 -2 src/sys/i386/isa/wd.c 1.14 +4 -3 src/sys/i386/isa/wfd.c 1.56 +24 -14 src/sys/kern/subr_diskslice.c 1.60 +2 -2 src/sys/pc98/pc98/wd.c 1.45 +2 -2 src/sys/scsi/od.c 1.138 +2 -2 src/sys/scsi/sd.c 1.26 +10 -5 src/sys/sys/diskslice.h