diff options
author | bde <bde@FreeBSD.org> | 1998-07-30 15:16:06 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-07-30 15:16:06 +0000 |
commit | 2c362dc181b2013d9ce19d506a6fd532076fb722 (patch) | |
tree | c2df5b29bba20de2b98999f17767275415afeaf5 /sys/scsi | |
parent | 524b03458c184ad22eb4f862e1bfbb8c7729c0f4 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/scsi/od.c | 4 | ||||
-rw-r--r-- | sys/scsi/sd.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/scsi/od.c b/sys/scsi/od.c index 4769406..cfccdb9 100644 --- a/sys/scsi/od.c +++ b/sys/scsi/od.c @@ -28,7 +28,7 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $Id: od.c,v 1.43 1998/07/28 18:59:49 bde Exp $ + * $Id: od.c,v 1.44 1998/07/29 11:15:51 bde Exp $ */ /* @@ -385,7 +385,7 @@ od_open(dev, mode, fmt, p, sc_link) label.d_secperunit = od->params.disksize; /* Initialize slice tables. */ - errcode = dsopen("od", dev, fmt, &od->dk_slices, &label, odstrategy1, + errcode = dsopen("od", dev, fmt, 0, &od->dk_slices, &label, odstrategy1, (ds_setgeom_t *)NULL, &od_cdevsw, &od_cdevsw); if (errcode != 0) goto bad; 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; |