public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: jakob@southpole.se (Jakob Sandgren)
To: linux-kernel@vger.kernel.org
Subject: 2.4.18 --> 2.4.19. Ramdisk requires floppy?
Date: Tue, 3 Sep 2002 18:51:33 +0200	[thread overview]
Message-ID: <20020903165133.GA8726@southpole.se> (raw)

Hi,

I've noticed that the 2.4.19 version of "prepare_namespace"
(init/do_mounts.c) not allows you to mount a non floppy as a
ramdisk(?). This has changed since 2.4.18 (split of main.c ->
{do_mounts,main}.c).

2.4.18 does a very simple check (below):

--- 2.4.18 ---
#ifdef CONFIG_BLK_DEV_RAM
#ifdef CONFIG_BLK_DEV_INITRD
        if (mount_initrd)
                initrd_load();
        else
#endif
        rd_load();
#endif
--- 2.4.18 ---

however, in 2.4.19 it just tries to load a ramdisk if it's on a
floppy. Why? There may still be a ramdisk on an other device, NOT
using initrd. 

--- 2.4.19 ---
if (mount_initrd) {
       if (initrd_load() && ROOT_DEV != MKDEV(RAMDISK_MAJOR, 0)) {
              handle_initrd();
              goto out;
       }
} else if (is_floppy && rd_doload && rd_load_disk(0))
       ROOT_DEV = MKDEV(RAMDISK_MAJOR, 0);
mount_root();
out:
--- 2.4.19 ---


Best Regards,
Jakob Sandgren
South Pole AB
-- 
Jakob Sandgren                  South Pole AB
Phone:  +46 8 51420420          Gelbjutarvägen 5
Fax:    +46 8 51420429          SE - 17148 Solna 
e-mail: jakob@southpole.se      www.southpole.se

             reply	other threads:[~2002-09-03 16:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-03 16:51 Jakob Sandgren [this message]
2002-09-04  2:16 ` 2.4.18 --> 2.4.19. Ramdisk requires floppy? H. Peter Anvin
2002-09-04  9:32   ` Jakob Sandgren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020903165133.GA8726@southpole.se \
    --to=jakob@southpole.se \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox