summaryrefslogtreecommitdiffstats
path: root/sys/dev/vn
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/dev/vn
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/dev/vn')
-rw-r--r--sys/dev/vn/vn.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/vn/vn.c b/sys/dev/vn/vn.c
index 8a586d2..b4b278a 100644
--- a/sys/dev/vn/vn.c
+++ b/sys/dev/vn/vn.c
@@ -38,7 +38,7 @@
* from: Utah Hdr: vn.c 1.13 94/04/02
*
* from: @(#)vn.c 8.6 (Berkeley) 4/1/94
- * $Id: vn.c,v 1.65 1998/07/11 07:45:22 bde Exp $
+ * $Id: vn.c,v 1.66 1998/07/13 08:22:58 julian Exp $
*/
/*
@@ -232,8 +232,8 @@ vnopen(dev_t dev, int flags, int mode, struct proc *p)
label.d_partitions[RAW_PART].p_size =
vn->sc_size;
- return (dsopen("vn", dev, mode, &vn->sc_slices, &label,
- vnstrategy, (ds_setgeom_t *)NULL,
+ return (dsopen("vn", dev, mode, 0, &vn->sc_slices,
+ &label, vnstrategy, (ds_setgeom_t *)NULL,
&vn_cdevsw, &vn_cdevsw));
}
if (dkslice(dev) != WHOLE_DISK_SLICE ||
OpenPOWER on IntegriCloud