summaryrefslogtreecommitdiffstats
path: root/sys/scsi/sd.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-07-30 15:16:06 +0000
committerbde <bde@FreeBSD.org>1998-07-30 15:16:06 +0000
commit2c362dc181b2013d9ce19d506a6fd532076fb722 (patch)
treec2df5b29bba20de2b98999f17767275415afeaf5 /sys/scsi/sd.c
parent524b03458c184ad22eb4f862e1bfbb8c7729c0f4 (diff)
downloadFreeBSD-src-2c362dc181b2013d9ce19d506a6fd532076fb722.zip
FreeBSD-src-2c362dc181b2013d9ce19d506a6fd532076fb722.tar.gz
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.
Diffstat (limited to 'sys/scsi/sd.c')
-rw-r--r--sys/scsi/sd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c
index 8043704..1ddc16d 100644
--- a/sys/scsi/sd.c
+++ b/sys/scsi/sd.c
@@ -14,7 +14,7 @@
*
* Ported to run under 386BSD by Julian Elischer (julian@dialix.oz.au) Sept 1992
*
- * $Id: sd.c,v 1.136 1998/07/28 18:59:49 bde Exp $
+ * $Id: sd.c,v 1.137 1998/07/29 11:15:51 bde Exp $
*/
#include "opt_bounce.h"
@@ -486,7 +486,7 @@ sd_open(dev_t dev, int mode, int fmt, struct proc *p, struct scsi_link *sc_link)
label.d_secperunit = sd->params.disksize;
/* Initialize slice tables. */
- errcode = dsopen("sd", dev, fmt, &sd->dk_slices, &label, sdstrategy1,
+ errcode = dsopen("sd", dev, fmt, 0, &sd->dk_slices, &label, sdstrategy1,
(ds_setgeom_t *)NULL, &sd_cdevsw, &sd_cdevsw);
if (errcode != 0)
goto close;
OpenPOWER on IntegriCloud