ramdisk / root disk

Martin Schulze (linux-kernel@Infodrom.North.DE)
Mon, 16 Oct 95 10:38 MET


Hi folks!

I think there is a discrepancy in my understanding of the ramdisk code
and what is written down in drivers/block/ramdisk.c:

------------------------------- happs 8<------------------------------
--- v1.3.31/linux/drivers/block/ramdisk.c Mon Oct 16 10:31:59 1995
+++ linux/drivers/block/ramdisk.c Mon Oct 16 10:36:38 1995
@@ -1,5 +1,5 @@
/*
- * linux/kernel/blk_drv/ramdisk.c
+ * linux/drivers/block/ramdisk.c
*
* Written by Theodore Ts'o, 12/2/91
*
@@ -211,12 +211,12 @@
printk("RAMDISK: %d bytes, starting at 0x%p\n",
rd_length, rd_start);

- /* If we are doing a diskette boot, we might have to pre-load it. */
+ /* If the root filesystem isn't on a floppy skip the whole thing. */
if (MAJOR(ROOT_DEV) != FLOPPY_MAJOR)
return;

/* for Slackware install disks */
- printk(KERN_NOTICE "VFS: Insert root floppy to be loaded into ramdisk and press ENTER\n");
+ printk(KERN_NOTICE "VFS: Insert root floppy to be loaded into ramdisk and press any key\n");
wait_for_keypress();

memset(&filp, 0, sizeof(filp));
------------------------------- happs 8<------------------------------

I Is there a reason why a ramdisk (root disk) can't be loaded from
any other media than the root-floppy? What about energy-saver
machines that act as a fax receiver? It would be nice if the system
doesn't need to use the harddisk when it is in stand-by mode, a
ramdisk containing the most important stuff would be enough.

II If it says "press ENTER" why just wait for _any_ keypress and not
only for ENTER? It would be very nice if only ENTER would be a
valid key, but that isn't the fact - at the moment.

Regards,

Joey

--
    / Martin Schulze  *  joey@infodrom.north.de  *  26129 Oldenburg /
   / To-Zeilen in öffentlichen Nachrichten ist FidoNet-Technologie /
  / <gröll>                                            ^^^^^^^^^^ /
 / ... endlich 'mal wieder ein echt gelungener Witz!!!           /
/                                              -- Rainer Scholz /
----------------------------------------------------------------
16.10.95: Oldenburger Usenet(ter) Treffen, ab 20h im Dreieck