summaryrefslogtreecommitdiffstats
path: root/sys/scsi/sd.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-07-28 18:59:49 +0000
committerbde <bde@FreeBSD.org>1998-07-28 18:59:49 +0000
commitf60ba2125f0c5b877bf812913a7d2ae04ff3afec (patch)
tree69877b72cad4b47d1b2fff6748e9bf1d196cb4a9 /sys/scsi/sd.c
parentd7d6a198df823a359b39db442d8f3c1aa006fa3f (diff)
downloadFreeBSD-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.c3
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;
OpenPOWER on IntegriCloud