2006-10-16 23:10:19

by Jan Engelhardt

[permalink] [raw]
Subject: config EXT4DEV_FS question

Hi,



something I have seen during `make oldconfig`, in fs/Kconfig we find:

config EXT4DEV_FS
...

To compile this file system support as a module, choose M here. The
module will be called ext4dev. Be aware, however, that the
filesystem of your root partition (the one containing the directory
/) cannot be compiled as a module, and so this could be dangerous.


Why can't this be compiled as a module when / is ext4? There are a lot
of people out there having no filesystem code included in the kernel at
all (includes at least SUSE users using the default vendor kernel), but
instead have them as modules in their initramfss (what's the proper
plural of initramfs?). What is it that makes ext4 different?

-`J'
--


2006-10-17 12:33:57

by Dave Kleikamp

[permalink] [raw]
Subject: Re: config EXT4DEV_FS question

On Tue, 2006-10-17 at 01:08 +0200, Jan Engelhardt wrote:
> Hi,
>
>
>
> something I have seen during `make oldconfig`, in fs/Kconfig we find:
>
> config EXT4DEV_FS
> ...
>
> To compile this file system support as a module, choose M here. The
> module will be called ext4dev. Be aware, however, that the
> filesystem of your root partition (the one containing the directory
> /) cannot be compiled as a module, and so this could be dangerous.
>
>
> Why can't this be compiled as a module when / is ext4? There are a lot
> of people out there having no filesystem code included in the kernel at
> all (includes at least SUSE users using the default vendor kernel), but
> instead have them as modules in their initramfss (what's the proper
> plural of initramfs?). What is it that makes ext4 different?

That same paragraph is in the help text of both ext2 and ext3. It is a
bit outdated and should probably be cleaned up in all three.

Shaggy
--
David Kleikamp
IBM Linux Technology Center

2006-10-17 18:39:39

by Jan Engelhardt

[permalink] [raw]
Subject: Re: config EXT4DEV_FS question

Hi,

>> something I have seen during `make oldconfig`, in fs/Kconfig we find:
>>
>> config EXT4DEV_FS
>> ...
>>
>> To compile this file system support as a module, choose M here. The
>> module will be called ext4dev. Be aware, however, that the
>> filesystem of your root partition (the one containing the directory
>> /) cannot be compiled as a module, and so this could be dangerous.
>>
>> Why can't this be compiled as a module when / is ext4? There are a lot
>> of people out there having no filesystem code included in the kernel at
>> all (includes at least SUSE users using the default vendor kernel), but
>> instead have them as modules in their initramfss (what's the proper
>> plural of initramfs?). What is it that makes ext4 different?
>
>That same paragraph is in the help text of both ext2 and ext3. It is a
>bit outdated and should probably be cleaned up in all three.

Then I suggest removing the bogus part, as per following patch.

Signed-off-by: Jan Engelhardt <[email protected]>

Index: linux-2.6.19-rc2/fs/Kconfig
===================================================================
--- linux-2.6.19-rc2.orig/fs/Kconfig
+++ linux-2.6.19-rc2/fs/Kconfig
@@ -12,9 +12,7 @@ config EXT2_FS
Ext2 is a standard Linux file system for hard disks.

To compile this file system support as a module, choose M here: the
- module will be called ext2. Be aware however that the file system
- of your root partition (the one containing the directory /) cannot
- be compiled as a module, and so this could be dangerous.
+ module will be called ext2.

If unsure, say Y.

@@ -98,9 +96,7 @@ config EXT3_FS
(available at <http://sourceforge.net/projects/e2fsprogs/>).

To compile this file system support as a module, choose M here: the
- module will be called ext3. Be aware however that the file system
- of your root partition (the one containing the directory /) cannot
- be compiled as a module, and so this may be dangerous.
+ module will be called ext3.

config EXT3_FS_XATTR
bool "Ext3 extended attributes"
@@ -163,9 +159,7 @@ config EXT4DEV_FS
features will be added to ext4dev gradually.

To compile this file system support as a module, choose M here. The
- module will be called ext4dev. Be aware, however, that the filesystem
- of your root partition (the one containing the directory /) cannot
- be compiled as a module, and so this could be dangerous.
+ module will be called ext4dev.

If unsure, say N.

#<EOF>


-`J'
--

2006-10-17 18:46:49

by Dave Kleikamp

[permalink] [raw]
Subject: Re: config EXT4DEV_FS question

On Tue, 2006-10-17 at 20:37 +0200, Jan Engelhardt wrote:
> Then I suggest removing the bogus part, as per following patch.
>
> Signed-off-by: Jan Engelhardt <[email protected]>
Acked-by: Dave Kleikamp <[email protected]>

>
> Index: linux-2.6.19-rc2/fs/Kconfig
> ===================================================================
> --- linux-2.6.19-rc2.orig/fs/Kconfig
> +++ linux-2.6.19-rc2/fs/Kconfig
> @@ -12,9 +12,7 @@ config EXT2_FS
> Ext2 is a standard Linux file system for hard disks.
>
> To compile this file system support as a module, choose M here: the
> - module will be called ext2. Be aware however that the file system
> - of your root partition (the one containing the directory /) cannot
> - be compiled as a module, and so this could be dangerous.
> + module will be called ext2.
>
> If unsure, say Y.
>
> @@ -98,9 +96,7 @@ config EXT3_FS
> (available at <http://sourceforge.net/projects/e2fsprogs/>).
>
> To compile this file system support as a module, choose M here: the
> - module will be called ext3. Be aware however that the file system
> - of your root partition (the one containing the directory /) cannot
> - be compiled as a module, and so this may be dangerous.
> + module will be called ext3.
>
> config EXT3_FS_XATTR
> bool "Ext3 extended attributes"
> @@ -163,9 +159,7 @@ config EXT4DEV_FS
> features will be added to ext4dev gradually.
>
> To compile this file system support as a module, choose M here. The
> - module will be called ext4dev. Be aware, however, that the filesystem
> - of your root partition (the one containing the directory /) cannot
> - be compiled as a module, and so this could be dangerous.
> + module will be called ext4dev.
>
> If unsure, say N.
>
> #<EOF>
>
>
> -`J'
--
David Kleikamp
IBM Linux Technology Center