From 817ecac2e2ca954de96eab1d2a48544a1d6f8524 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Tue, 24 Jun 2003 22:42:08 +0000 Subject: try to devise drive's rpm and default to 3600 should we fail miserably. derived from pr2815 from Marco Peereboom krw@ deraadt@ ok --- sys/scsi/sd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/scsi/sd.c') diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c index 90e6850c52e..9b1b59f7d10 100644 --- a/sys/scsi/sd.c +++ b/sys/scsi/sd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sd.c,v 1.61 2003/05/21 23:43:58 krw Exp $ */ +/* $OpenBSD: sd.c,v 1.62 2003/06/24 22:42:07 mickey Exp $ */ /* $NetBSD: sd.c,v 1.111 1997/04/02 02:29:41 mycroft Exp $ */ /*- @@ -1023,7 +1023,7 @@ sdgetdisklabel(dev, sd, lp, clp, spoofonly) bcopy(packname, lp->d_packname, len); lp->d_secperunit = sd->params.disksize; - lp->d_rpm = 3600; + lp->d_rpm = sd->params.rot_rate; lp->d_interleave = 1; lp->d_flags = 0; -- cgit v1.2.3