diff options
author | bde <bde@FreeBSD.org> | 1998-07-28 18:59:49 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-07-28 18:59:49 +0000 |
commit | f60ba2125f0c5b877bf812913a7d2ae04ff3afec (patch) | |
tree | 69877b72cad4b47d1b2fff6748e9bf1d196cb4a9 /sys/scsi/sd.c | |
parent | d7d6a198df823a359b39db442d8f3c1aa006fa3f (diff) | |
download | FreeBSD-src-f60ba2125f0c5b877bf812913a7d2ae04ff3afec.zip FreeBSD-src-f60ba2125f0c5b877bf812913a7d2ae04ff3afec.tar.gz |
Set the disk type to SCSI in the in-core label for the whole disk.
Diffstat (limited to 'sys/scsi/sd.c')
-rw-r--r-- | sys/scsi/sd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c index 4a35005..c7e191b 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.134 1998/07/13 08:23:05 julian Exp $ + * $Id: sd.c,v 1.135 1998/07/14 11:34:22 bde Exp $ */ #include "opt_bounce.h" @@ -474,6 +474,7 @@ sd_open(dev_t dev, int mode, int fmt, struct proc *p, struct scsi_link *sc_link) #ifndef SLICE /* Build label for whole disk. */ bzero(&label, sizeof label); + label.d_type = DTYPE_SCSI; label.d_secsize = sd->params.secsiz; label.d_nsectors = sd->params.sectors; label.d_ntracks = sd->params.heads; |