From: thomas weidner <3.14159@gmx.net>
To: linux-kernel@vger.kernel.org
Subject: do_kern_mount return value question
Date: Tue, 25 Nov 2003 23:36:16 +0100 [thread overview]
Message-ID: <pan.2003.11.25.22.36.10.741477@gmx.net> (raw)
Hi,
this post is no bug or patch, but a simple question about the kernel
source. Why does do_kern_mount return ENODEV when the given filesystem is
unknown? EINVAL seems to be better to me. when i change from ENODEV to
EINVAL (fs/super.c:713 in 2.6.0-test10) the following szenario works as i
except:
kernel options: rootfstype=ext3,ext2
1. load ext2 initrd
2. try to mount as ext3 -> fails (ext3 is a module in my configuration and
not in the kernel)
3. try to mount it as ext2 -> fine
4. handle initrd
5. try to mount root as ext3 -> fine (ext3 module now loaded)
the vanilla kernel stops after 2. because some late boot code thinks the
initrd is an invalid device (ENODEV).
reply other threads:[~2003-11-25 22:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=pan.2003.11.25.22.36.10.741477@gmx.net \
--to=3.14159@gmx.net \
--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
all inboxes | Powered by JetHome®