* [PATCH] documentation: make it clear that sysfs is optional
@ 2009-07-27 16:06 Randy Dunlap
2009-07-27 16:10 ` Greg KH
0 siblings, 1 reply; 8+ messages in thread
From: Randy Dunlap @ 2009-07-27 16:06 UTC (permalink / raw)
To: lkml; +Cc: gregkh, Lucian Adrian Grijincu
From: Lucian Adrian Grijincu <lgrijincu@ixiacom.com>
Subject: [PATCH] documentation: make it clear that sysfs is optional
The original text suggested that sysfs is mandatory and always
compiled in the kernel.
Signed-off-by: Lucian Adrian Grijincu <lgrijincu@ixiacom.com>
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
Documentation/filesystems/sysfs.txt | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- linux-next-20090727.orig/Documentation/filesystems/sysfs.txt
+++ linux-next-20090727/Documentation/filesystems/sysfs.txt
@@ -23,7 +23,8 @@ interface.
Using sysfs
~~~~~~~~~~~
-sysfs is always compiled in. You can access it by doing:
+sysfs is always compiled in if CONFIG_SYSFS is defined. You can access
+it by doing:
mount -t sysfs sysfs /sys
---
~Randy
LPC 2009, Sept. 23-25, Portland, Oregon
http://linuxplumbersconf.org/2009/
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH] documentation: make it clear that sysfs is optional
2009-07-27 16:06 [PATCH] documentation: make it clear that sysfs is optional Randy Dunlap
@ 2009-07-27 16:10 ` Greg KH
2009-07-27 16:18 ` Randy Dunlap
0 siblings, 1 reply; 8+ messages in thread
From: Greg KH @ 2009-07-27 16:10 UTC (permalink / raw)
To: Randy Dunlap; +Cc: lkml, Lucian Adrian Grijincu
On Mon, Jul 27, 2009 at 09:06:42AM -0700, Randy Dunlap wrote:
> From: Lucian Adrian Grijincu <lgrijincu@ixiacom.com>
> Subject: [PATCH] documentation: make it clear that sysfs is optional
>
> The original text suggested that sysfs is mandatory and always
> compiled in the kernel.
But it should be :)
Seriously, who turns sysfs off these days, does anyone? If so, why?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] documentation: make it clear that sysfs is optional
2009-07-27 16:10 ` Greg KH
@ 2009-07-27 16:18 ` Randy Dunlap
2009-07-27 16:26 ` Greg KH
0 siblings, 1 reply; 8+ messages in thread
From: Randy Dunlap @ 2009-07-27 16:18 UTC (permalink / raw)
To: Greg KH; +Cc: lkml, Lucian Adrian Grijincu
On Mon, 27 Jul 2009 09:10:33 -0700 Greg KH wrote:
> On Mon, Jul 27, 2009 at 09:06:42AM -0700, Randy Dunlap wrote:
> > From: Lucian Adrian Grijincu <lgrijincu@ixiacom.com>
> > Subject: [PATCH] documentation: make it clear that sysfs is optional
> >
> > The original text suggested that sysfs is mandatory and always
> > compiled in the kernel.
>
> But it should be :)
Well, you have the option of making it non-optional.
> Seriously, who turns sysfs off these days, does anyone? If so, why?
Why is it configurable then?
---
~Randy
LPC 2009, Sept. 23-25, Portland, Oregon
http://linuxplumbersconf.org/2009/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] documentation: make it clear that sysfs is optional
2009-07-27 16:18 ` Randy Dunlap
@ 2009-07-27 16:26 ` Greg KH
2009-07-27 22:49 ` Henrique de Moraes Holschuh
2009-08-01 9:14 ` Christian Kujau
0 siblings, 2 replies; 8+ messages in thread
From: Greg KH @ 2009-07-27 16:26 UTC (permalink / raw)
To: Randy Dunlap; +Cc: lkml, Lucian Adrian Grijincu
On Mon, Jul 27, 2009 at 09:18:24AM -0700, Randy Dunlap wrote:
> On Mon, 27 Jul 2009 09:10:33 -0700 Greg KH wrote:
>
> > On Mon, Jul 27, 2009 at 09:06:42AM -0700, Randy Dunlap wrote:
> > > From: Lucian Adrian Grijincu <lgrijincu@ixiacom.com>
> > > Subject: [PATCH] documentation: make it clear that sysfs is optional
> > >
> > > The original text suggested that sysfs is mandatory and always
> > > compiled in the kernel.
> >
> > But it should be :)
>
> Well, you have the option of making it non-optional.
>
>
> > Seriously, who turns sysfs off these days, does anyone? If so, why?
>
> Why is it configurable then?
Probably the same reason /proc is configurable. No one ever turns it
off, but hey, it's possible :)
thanks,
greg k-h
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] documentation: make it clear that sysfs is optional
2009-07-27 16:26 ` Greg KH
@ 2009-07-27 22:49 ` Henrique de Moraes Holschuh
2009-07-27 23:21 ` Greg KH
2009-08-01 9:14 ` Christian Kujau
1 sibling, 1 reply; 8+ messages in thread
From: Henrique de Moraes Holschuh @ 2009-07-27 22:49 UTC (permalink / raw)
To: Greg KH; +Cc: Randy Dunlap, lkml, Lucian Adrian Grijincu
On Mon, 27 Jul 2009, Greg KH wrote:
> On Mon, Jul 27, 2009 at 09:18:24AM -0700, Randy Dunlap wrote:
> > On Mon, 27 Jul 2009 09:10:33 -0700 Greg KH wrote:
> > > On Mon, Jul 27, 2009 at 09:06:42AM -0700, Randy Dunlap wrote:
> > > > The original text suggested that sysfs is mandatory and always
> > > > compiled in the kernel.
> > >
> > > But it should be :)
> >
> > Well, you have the option of making it non-optional.
> >
> > > Seriously, who turns sysfs off these days, does anyone? If so, why?
> >
> > Why is it configurable then?
>
> Probably the same reason /proc is configurable. No one ever turns it
> off, but hey, it's possible :)
But does anyone ever test if the system doesn't go to lunch when you do
that?
--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] documentation: make it clear that sysfs is optional
2009-07-27 22:49 ` Henrique de Moraes Holschuh
@ 2009-07-27 23:21 ` Greg KH
0 siblings, 0 replies; 8+ messages in thread
From: Greg KH @ 2009-07-27 23:21 UTC (permalink / raw)
To: Henrique de Moraes Holschuh; +Cc: Randy Dunlap, lkml, Lucian Adrian Grijincu
On Mon, Jul 27, 2009 at 07:49:30PM -0300, Henrique de Moraes Holschuh wrote:
> On Mon, 27 Jul 2009, Greg KH wrote:
> > On Mon, Jul 27, 2009 at 09:18:24AM -0700, Randy Dunlap wrote:
> > > On Mon, 27 Jul 2009 09:10:33 -0700 Greg KH wrote:
> > > > On Mon, Jul 27, 2009 at 09:06:42AM -0700, Randy Dunlap wrote:
> > > > > The original text suggested that sysfs is mandatory and always
> > > > > compiled in the kernel.
> > > >
> > > > But it should be :)
> > >
> > > Well, you have the option of making it non-optional.
> > >
> > > > Seriously, who turns sysfs off these days, does anyone? If so, why?
> > >
> > > Why is it configurable then?
> >
> > Probably the same reason /proc is configurable. No one ever turns it
> > off, but hey, it's possible :)
>
> But does anyone ever test if the system doesn't go to lunch when you do
> that?
I have no idea, I doubt it...
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] documentation: make it clear that sysfs is optional
2009-07-27 16:26 ` Greg KH
2009-07-27 22:49 ` Henrique de Moraes Holschuh
@ 2009-08-01 9:14 ` Christian Kujau
2009-08-01 16:49 ` Randy Dunlap
1 sibling, 1 reply; 8+ messages in thread
From: Christian Kujau @ 2009-08-01 9:14 UTC (permalink / raw)
To: Greg KH; +Cc: Randy Dunlap, lkml, Lucian Adrian Grijincu
On Mon, 27 Jul 2009 at 09:26, Greg KH wrote:
> Probably the same reason /proc is configurable. No one ever turns it
> off, but hey, it's possible :)
Hm, it seems as we cannot turn off PROC_FS or SYSFS any more. At least on
my system a "make allnoconfig" still selects both. While PROC_FS still
shows up under Filesystems->Pseudo-Filesystem (but cannot be turned off),
I don't see a menuconfig knob to turn off SYSFS.
However, "make allnoconfig" still selects quite a few options anyway:
# uname -m
x86_64
# make allnoconfig
# grep -c =y .config
175
(manually editing .config gets reverted on another "make config").
So, it loks like SYSFS is just one of the things needed to build a kernel,
along with the ~170 other things, at least on x86_64. Is this "make it
clear that sysfs is optional" patch still valid? :-)
Christian.
sid$ find . -name Kconfig | xargs grep SYSFS | egrep -v 'drivers/|fs/|net/'
./arch/arm/mach-pxa/Kconfig: select GPIO_SYSFS
./arch/powerpc/kvm/Kconfig: depends on KVM && MARKERS && SYSFS
./arch/x86/kvm/Kconfig: depends on KVM && SYSFS
./init/Kconfig:config SYSFS_DEPRECATED
./init/Kconfig:config SYSFS_DEPRECATED_V2
./init/Kconfig: depends on SYSFS
./init/Kconfig: select SYSFS_DEPRECATED
./init/Kconfig: depends on SLUB && SYSFS
./kernel/trace/Kconfig: depends on SYSFS
./security/Kconfig: depends on SYSFS
--
BOFH excuse #228:
That function is not currently supported, but Bill Gates assures us it will be featured in the next upgrade.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] documentation: make it clear that sysfs is optional
2009-08-01 9:14 ` Christian Kujau
@ 2009-08-01 16:49 ` Randy Dunlap
0 siblings, 0 replies; 8+ messages in thread
From: Randy Dunlap @ 2009-08-01 16:49 UTC (permalink / raw)
To: Christian Kujau; +Cc: Greg KH, lkml, Lucian Adrian Grijincu
On Sat, 1 Aug 2009 02:14:47 -0700 (PDT) Christian Kujau wrote:
> On Mon, 27 Jul 2009 at 09:26, Greg KH wrote:
> > Probably the same reason /proc is configurable. No one ever turns it
> > off, but hey, it's possible :)
>
> Hm, it seems as we cannot turn off PROC_FS or SYSFS any more. At least on
> my system a "make allnoconfig" still selects both. While PROC_FS still
> shows up under Filesystems->Pseudo-Filesystem (but cannot be turned off),
> I don't see a menuconfig knob to turn off SYSFS.
> However, "make allnoconfig" still selects quite a few options anyway:
>
> # uname -m
> x86_64
> # make allnoconfig
> # grep -c =y .config
> 175
>
> (manually editing .config gets reverted on another "make config").
>
> So, it loks like SYSFS is just one of the things needed to build a kernel,
> along with the ~170 other things, at least on x86_64. Is this "make it
> clear that sysfs is optional" patch still valid? :-)
It's no problem to disable PROC_FS and SYSFS if you first enable
CONFIG_EMBEDDED>
> sid$ find . -name Kconfig | xargs grep SYSFS | egrep -v 'drivers/|fs/|net/'
> ./arch/arm/mach-pxa/Kconfig: select GPIO_SYSFS
> ./arch/powerpc/kvm/Kconfig: depends on KVM && MARKERS && SYSFS
> ./arch/x86/kvm/Kconfig: depends on KVM && SYSFS
> ./init/Kconfig:config SYSFS_DEPRECATED
> ./init/Kconfig:config SYSFS_DEPRECATED_V2
> ./init/Kconfig: depends on SYSFS
> ./init/Kconfig: select SYSFS_DEPRECATED
> ./init/Kconfig: depends on SLUB && SYSFS
> ./kernel/trace/Kconfig: depends on SYSFS
> ./security/Kconfig: depends on SYSFS
---
~Randy
LPC 2009, Sept. 23-25, Portland, Oregon
http://linuxplumbersconf.org/2009/
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2009-08-01 16:49 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-27 16:06 [PATCH] documentation: make it clear that sysfs is optional Randy Dunlap
2009-07-27 16:10 ` Greg KH
2009-07-27 16:18 ` Randy Dunlap
2009-07-27 16:26 ` Greg KH
2009-07-27 22:49 ` Henrique de Moraes Holschuh
2009-07-27 23:21 ` Greg KH
2009-08-01 9:14 ` Christian Kujau
2009-08-01 16:49 ` Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox