2006-05-29 22:07:10

by H. Peter Anvin

[permalink] [raw]
Subject: [PATCH] Make procfs obligatory except under CONFIG_EMBEDDED

From: H. Peter Anvin <[email protected]>

This patch makes procfs non-optional unless EMBEDDED is set, just like
sysfs. procfs is already de facto required for a large subset of
Linux functionality.

Signed-off-by: H. Peter Anvin <[email protected]>

diff --git a/fs/Kconfig b/fs/Kconfig
index 71d6b30..2c3a733 100644
--- a/fs/Kconfig
+++ b/fs/Kconfig
@@ -764,7 +764,8 @@ endmenu
menu "Pseudo filesystems"

config PROC_FS
- bool "/proc file system support"
+ bool "/proc file system support" if EMBEDDED
+ default y
help
This is a virtual file system providing information about the status
of the system. "Virtual" means that it doesn't take up any space on


2006-05-31 22:16:12

by Bill Davidsen

[permalink] [raw]
Subject: Re: [PATCH] Make procfs obligatory except under CONFIG_EMBEDDED

H. Peter Anvin wrote:
> From: H. Peter Anvin <[email protected]>
>
> This patch makes procfs non-optional unless EMBEDDED is set, just like
> sysfs. procfs is already de facto required for a large subset of
> Linux functionality.

I have no objection, but I'm curious why this wasn't done long ago.
>
> Signed-off-by: H. Peter Anvin <[email protected]>
>
> diff --git a/fs/Kconfig b/fs/Kconfig
> index 71d6b30..2c3a733 100644
> --- a/fs/Kconfig
> +++ b/fs/Kconfig
> @@ -764,7 +764,8 @@ endmenu
> menu "Pseudo filesystems"
>
> config PROC_FS
> - bool "/proc file system support"
> + bool "/proc file system support" if EMBEDDED
> + default y
> help
> This is a virtual file system providing information about the status
> of the system. "Virtual" means that it doesn't take up any space on

2006-05-31 22:18:41

by H. Peter Anvin

[permalink] [raw]
Subject: Re: [PATCH] Make procfs obligatory except under CONFIG_EMBEDDED

Bill Davidsen wrote:
> H. Peter Anvin wrote:
>> From: H. Peter Anvin <[email protected]>
>>
>> This patch makes procfs non-optional unless EMBEDDED is set, just like
>> sysfs. procfs is already de facto required for a large subset of
>> Linux functionality.
>
> I have no objection, but I'm curious why this wasn't done long ago.
>

Probably because procfs predates CONFIG_EMBEDDED by many years, and noone really thought
about it. Either that or it was part of the "let's switch all of userspace to sysfs,
overnight!" conspiracy.

-hpa