LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* do_kern_mount return value question
@ 2003-11-25 22:36 thomas weidner
  0 siblings, 0 replies; only message in thread
From: thomas weidner @ 2003-11-25 22:36 UTC (permalink / raw)
  To: linux-kernel

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).


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-11-25 22:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-25 22:36 do_kern_mount return value question thomas weidner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).