patch-2.2.17 linux/drivers/block/rd.c
Next file: linux/drivers/block/smart1,2.h
Previous file: linux/drivers/block/raid0.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Mon Sep 4 18:39:17 2000
- Orig file:
v2.2.16/drivers/block/rd.c
- Orig date:
Mon Sep 4 18:37:28 2000
diff -u --recursive --new-file v2.2.16/drivers/block/rd.c linux/drivers/block/rd.c
@@ -587,6 +587,9 @@
set_fs(fs);
}
+#ifdef CONFIG_MAC_FLOPPY
+int swim3_fd_eject(int devnum);
+#endif
__initfunc(static void rd_load_disk(int n))
{
@@ -607,6 +610,12 @@
if (rd_prompt) {
#ifdef CONFIG_BLK_DEV_FD
floppy_eject();
+#endif
+#ifdef CONFIG_MAC_FLOPPY
+ if(MAJOR(ROOT_DEV) == FLOPPY_MAJOR)
+ swim3_fd_eject(MINOR(ROOT_DEV));
+ else if(MAJOR(real_root_dev) == FLOPPY_MAJOR)
+ swim3_fd_eject(MINOR(real_root_dev));
#endif
printk(KERN_NOTICE
"VFS: Insert root floppy disk to be loaded into RAM disk and press ENTER\n");
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)