linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* udev /sys
@ 2003-12-10 13:56 dd
  2003-12-10 20:22 ` Greg KH
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: dd @ 2003-12-10 13:56 UTC (permalink / raw)
  To: linux-hotplug

I hope I am posting to correct maillist.

I saw udev and I saw that I have to mount sysfs to /sys or to some similar
directory.

Is it possible to mount sysfs to some directory in /proc?
I don't want to have /sys directory created, it violates the standard...

Is there any empty directory in /proc where I can mount sysfs?

If I understand it right, sysfs is always compiled into kernel.
And also ALL linux systems are mounting procfs to /proc.
So why don't just add this sysfs as a /proc entry in the kernel?
Hope you understand me...

Tomas



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id\x1278&alloc_id371&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: udev /sys
  2003-12-10 13:56 udev /sys dd
@ 2003-12-10 20:22 ` Greg KH
  2003-12-10 21:08 ` dd
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Greg KH @ 2003-12-10 20:22 UTC (permalink / raw)
  To: linux-hotplug

On Wed, Dec 10, 2003 at 02:56:22PM +0100, dd@daemond.com wrote:
> I hope I am posting to correct maillist.
> 
> I saw udev and I saw that I have to mount sysfs to /sys or to some similar
> directory.
> 
> Is it possible to mount sysfs to some directory in /proc?

Sure, libsysfs should pick it up just fine (unless you build udev with
klibc, but that's my fault, I need to fix that up...)

> I don't want to have /sys directory created, it violates the standard...

What standard?  And where in that standard?

> Is there any empty directory in /proc where I can mount sysfs?

Nope.

> If I understand it right, sysfs is always compiled into kernel.

Yes.

> And also ALL linux systems are mounting procfs to /proc.

Sure.  But you don't _have_ to have procfs, it can be not selected in
the kernel.

> So why don't just add this sysfs as a /proc entry in the kernel?

Because sysfs has nothing to do with procfs.  They are two separate
filesystems, doing different things.

So in short, just mount sysfs at /sys and everyone will be happy :)

thanks,

greg k-h


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id\x1278&alloc_id371&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: udev /sys
  2003-12-10 13:56 udev /sys dd
  2003-12-10 20:22 ` Greg KH
@ 2003-12-10 21:08 ` dd
  2003-12-10 21:12 ` Greg KH
  2003-12-10 21:56 ` dd
  3 siblings, 0 replies; 5+ messages in thread
From: dd @ 2003-12-10 21:08 UTC (permalink / raw)
  To: linux-hotplug

> So in short, just mount sysfs at /sys and everyone will be happy :)

everyone expect me :-)

I was talking about Filesystem Hierarchy standard, as described in
http://www.pathname.com/fhs/

I thought that sysfs and procfs are both for the same thing (you can see
inside the kernel by using programs or even shell scripts), so I just
thought sysfs could be a part of procfs, or procfs could offer for example
/proc/sysfs directory which is empty everytime and allows users like me (who
don't like /sys) to mount sysfs there :-)

Maybe you are asking _why?_, but I am asking _why not?_ :-)


Tomas



>
> thanks,
>
> greg k-h



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id\x1278&alloc_id371&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: udev /sys
  2003-12-10 13:56 udev /sys dd
  2003-12-10 20:22 ` Greg KH
  2003-12-10 21:08 ` dd
@ 2003-12-10 21:12 ` Greg KH
  2003-12-10 21:56 ` dd
  3 siblings, 0 replies; 5+ messages in thread
From: Greg KH @ 2003-12-10 21:12 UTC (permalink / raw)
  To: linux-hotplug

On Wed, Dec 10, 2003 at 10:03:53PM +0100, dd@daemond.com wrote:
> > So in short, just mount sysfs at /sys and everyone will be happy :)
> 
> everyone expect me :-)
> 
> I was talking about Filesystem Hierarchy standard, as described in
> http://www.pathname.com/fhs/

No, please read that document.  It doesn't even require /proc :)
So we are free to create /sys without invalidating the document.

> I thought that sysfs and procfs are both for the same thing (you can see
> inside the kernel by using programs or even shell scripts), so I just
> thought sysfs could be a part of procfs, or procfs could offer for example
> /proc/sysfs directory which is empty everytime and allows users like me (who
> don't like /sys) to mount sysfs there :-)

No, they are not the same.  That is why they are different, and mounted
in different places.

> Maybe you are asking _why?_, but I am asking _why not?_ :-)

Because they have nothing to do with each other.  Yeah, they both show
kernel information, but different information.  Eventually almost
everything that does not deal with proccess will move to sysfs, as
procfs is not the place for them.

thanks,

greg k-h


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id\x1278&alloc_id371&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: udev /sys
  2003-12-10 13:56 udev /sys dd
                   ` (2 preceding siblings ...)
  2003-12-10 21:12 ` Greg KH
@ 2003-12-10 21:56 ` dd
  3 siblings, 0 replies; 5+ messages in thread
From: dd @ 2003-12-10 21:56 UTC (permalink / raw)
  To: linux-hotplug

ok, thank you very much for your explanation,
finaly I have to agree with you.


Tom

----- Original Message ----- 
From: "Greg KH" <greg@kroah.com>
To: <dd@daemond.com>
Cc: <linux-hotplug-devel@lists.sourceforge.net>
Sent: Wednesday, December 10, 2003 10:12 PM
Subject: Re: udev /sys


> On Wed, Dec 10, 2003 at 10:03:53PM +0100, dd@daemond.com wrote:
> > > So in short, just mount sysfs at /sys and everyone will be happy :)
> >
> > everyone expect me :-)
> >
> > I was talking about Filesystem Hierarchy standard, as described in
> > http://www.pathname.com/fhs/
>
> No, please read that document.  It doesn't even require /proc :)
> So we are free to create /sys without invalidating the document.
>
> > I thought that sysfs and procfs are both for the same thing (you can see
> > inside the kernel by using programs or even shell scripts), so I just
> > thought sysfs could be a part of procfs, or procfs could offer for
example
> > /proc/sysfs directory which is empty everytime and allows users like me
(who
> > don't like /sys) to mount sysfs there :-)
>
> No, they are not the same.  That is why they are different, and mounted
> in different places.
>
> > Maybe you are asking _why?_, but I am asking _why not?_ :-)
>
> Because they have nothing to do with each other.  Yeah, they both show
> kernel information, but different information.  Eventually almost
> everything that does not deal with proccess will move to sysfs, as
> procfs is not the place for them.
>
> thanks,
>
> greg k-h
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
> Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id\x1278&alloc_id371&op=click
> _______________________________________________
> Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
> Linux-hotplug-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id\x1278&alloc_id371&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-12-10 21:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-10 13:56 udev /sys dd
2003-12-10 20:22 ` Greg KH
2003-12-10 21:08 ` dd
2003-12-10 21:12 ` Greg KH
2003-12-10 21:56 ` dd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).