diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2003-06-24 22:42:08 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2003-06-24 22:42:08 +0000 |
commit | 817ecac2e2ca954de96eab1d2a48544a1d6f8524 (patch) | |
tree | d3bd0356fc0cf8f76aab56b06b2f97b0d7fa70ec /sys/scsi/sd.c | |
parent | 379cd4e469d883bc090ce5bcf24ceb72dc2aa1cf (diff) |
try to devise drive's rpm and default to 3600 should we fail miserably.
derived from pr2815 from Marco Peereboom
krw@ deraadt@ ok
Diffstat (limited to 'sys/scsi/sd.c')
-rw-r--r-- | sys/scsi/sd.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |