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 | |
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')
-rw-r--r-- | sys/scsi/od.c | 3 | ||||
-rw-r--r-- | sys/scsi/sd.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/scsi/od.c b/sys/scsi/od.c index f693824..1dc817e 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.41 1998/07/04 22:30:24 julian Exp $ + * $Id: od.c,v 1.42 1998/07/13 09:53:11 bde Exp $ */ /* @@ -370,6 +370,7 @@ od_open(dev, mode, fmt, p, sc_link) /* Build label for whole disk. */ bzero(&label, sizeof label); + label.d_type = DTYPE_SCSI; label.d_secsize = od->params.secsiz; label.d_nsectors = od->params.sectors; label.d_ntracks = od->params.heads; 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; |