projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added my responsibility for the `cpm' port
[unix-history]
/
sys
/
scsi
/
sd.c
diff --git
a/sys/scsi/sd.c
b/sys/scsi/sd.c
index
cf8348e
..
22dce9a
100644
(file)
--- 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
*
*
* Ported to run under 386BSD by Julian Elischer (julian@dialix.oz.au) Sept 1992
*
- * $Id: sd.c,v 1.2
4 1994/05/25 23:21:46 ats
Exp $
+ * $Id: sd.c,v 1.2
6 1994/05/26 00:23:24 jkh
Exp $
*/
#define SPLSD splbio
*/
#define SPLSD splbio
@@
-894,13
+894,13
@@
sd_get_parms(unit, flags)
}
else {
/* set it to something reasonable */
}
else {
/* set it to something reasonable */
- sectors = 32;
disk_parms->heads = 64;
disk_parms->cyls = sectors / (64 * 32);
disk_parms->heads = 64;
disk_parms->cyls = sectors / (64 * 32);
+ sectors = 32;
}
/* keep secsiz sane too - we may divide by it later */
}
/* keep secsiz sane too - we may divide by it later */
- if(d
p
->secsiz == 0)
- d
p
->secsiz = SECSIZE;
+ if(d
isk_parms
->secsiz == 0)
+ d
isk_parms
->secsiz = SECSIZE;
disk_parms->sectors = sectors; /* dubious on SCSI *//*XXX */
}
sd->sc_link->flags |= SDEV_MEDIA_LOADED;
disk_parms->sectors = sectors; /* dubious on SCSI *//*XXX */
}
sd->sc_link->flags |= SDEV_MEDIA_LOADED;