patch-2.4.0-test1 linux/drivers/ide/hd.c
Next file: linux/drivers/ide/ide-features.c
Previous file: linux/drivers/ide/Makefile
Back to the patch index
Back to the overall index
- Lines: 14
- Date:
Wed May 24 08:40:41 2000
- Orig file:
v2.3.99-pre9/linux/drivers/ide/hd.c
- Orig date:
Tue May 23 15:31:34 2000
diff -u --recursive --new-file v2.3.99-pre9/linux/drivers/ide/hd.c linux/drivers/ide/hd.c
@@ -778,6 +778,8 @@
#endif
for (drive=0 ; drive < NR_HD ; drive++) {
+ hd[drive<<6].nr_sects = hd_info[drive].head *
+ hd_info[drive].sect * hd_info[drive].cyl;
printk ("hd%c: %ldMB, CHS=%d/%d/%d\n", drive+'a',
hd[drive<<6].nr_sects / 2048, hd_info[drive].cyl,
hd_info[drive].head, hd_info[drive].sect);
@@ -890,3 +892,4 @@
return 0;
}
__setup("hd=", parse_hd_setup);
+
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)