patch-1.3.87 linux/drivers/scsi/sd.c
Next file: linux/drivers/scsi/sr.c
Previous file: linux/drivers/scsi/scsi.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Fri Apr 12 09:49:42 1996
- Orig file:
v1.3.86/linux/drivers/scsi/sd.c
- Orig date:
Wed Apr 10 17:02:25 1996
diff -u --recursive --new-file v1.3.86/linux/drivers/scsi/sd.c linux/drivers/scsi/sd.c
@@ -118,7 +118,7 @@
}
/*
- * Similarily, if the device has the write protect tab set,
+ * Similarly, if the device has the write protect tab set,
* have the open fail if the user expects to be able to write
* to the thing.
*/
@@ -1168,7 +1168,7 @@
for (m=i<<4; m<((i+1)<<4); m++){
sd_hardsizes[m] = hard_sector;
}
- mb = (hard_sector * rscsi_disks[i].capacity) / (1024*1024);
+ mb = rscsi_disks[i].capacity / 1024 * hard_sector / 1024;
/* sz = div(m/100, 10); this seems to not be in the libr */
m = (mb + 50) / 100;
sz_quot = m / 10;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this