Re: the ' 'official' point of view' expressed by kernelnewbies.org regarding reiser4 inclusion

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

 



On Thu, Jul 27, 2006 at 02:37:33PM -0400, Jim Crilly wrote:
> Or because they did 'allmodconfig' or 'allyesconfig'. Whenever I build
> a kernel I enabled everything possible as a module in case I ever need
> it. For instance, a few weeks ago I had the reiserfs module loaded because
> I was testing something, if I had klive running it would have said that I
> use reiserfs when in fact I don't.

reiserfs would showup in the module list in such case, but _not_ in
the fs list. KLive records both the modules loaded _and_ the mounted
fs.

This is the code that records the FS:

	if CONFIG_FS:
		fs = {}
		for _fs in [ re.search(r'^[^\s]+\s[^\s]+\s([^\s]+)', x).group(1)
			     for x in file('/proc/mounts').readlines() ]:
			if _fs not in ['rootfs', 'proc', 'devpts']:
				fs[_fs] = None
		fs = ' '.join(fs.keys())
		KERNEL += str_append(fs)

/proc/mounts only lists the _mounted_ fs, not the fs loaded into the
kernel statically or with insmod.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux