Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/kern



On Dec 28,  2:28pm, tsutsui%ceres.dti.ne.jp@localhost (Izumi Tsutsui) wrote:
-- Subject: Re: CVS commit: src/sys/kern

| > >> Log Message:
| > >> - Don't autounload modules loaded during boot. In my case, ffs got 
unloaded
| > >>  because my cdrom takes too long to initialize.
| > > is this the right thing to do ? it seems more a workaround than a fix
| > > of the obviously buggy auto-unload code.
| > 
| > Preloaded modules are special in that they are required to bootstrap the 
| > system. If they are unloaded before the kernel can mount the root 
| > filesystem there is no hope if loading them again.
| 
| It might be better to make bootstrap modules unloadable after mountroot
| (or just disable autounloading modules until mountroot)?

I had:

        extern int start_init_exec;

        if (!start_init_exec)
                return EBUSY;

in module_do_unload(), but that seemed kludgy to me.

christos


Home | Main Index | Thread Index | Old Index