Re: debugfs in the namespace

From: Pete Zaitcev
Date: Thu Dec 16 2004 - 14:36:12 EST


On Thu, 16 Dec 2004 11:08:35 -0800, Greg KH <greg@xxxxxxxxx> wrote:

> On Thu, Dec 16, 2004 at 11:00:02AM -0800, Pete Zaitcev wrote:
> > what is the canonic place to mount debugfs: /debug, /debugfs, or anything
> > else? The reason I'm asking is that USBMon has to find it somewhere and
> > I'd really hate to see it varying from distro to distro.
>
> Hm, in my testing I've been putting it in /dbg, but I don't like vowels :)

Oh, that's right: usr and creat. How could I forget.

> Anyway, I don't really know. /dev/debug/ ? /proc/debug ? /debug ?
>
> What do people want? I guess it's time to write up a LSB proposal :(

I use /debug but it's not too late to change. Fedora does not ship it yet,
so I don't think we have an institutional opinion about it.

Personally, I'm against the doubles to prevent issues with the mounting
order on boot, but that's rather weak. The /dev can be specially managed
and I'm concerned with people running find(1) on it. The /proc sounds
better, but mounting anything under /proc requires a kernel component
to create a directory, does it not?

[root@lembas root]# mount -t debugfs any /proc/debug
mount: mount point /proc/debug does not exist
[root@lembas root]# mkdir /proc/debug
mkdir: cannot create directory `/proc/debug': No such file or directory
[root@lembas root]#

-- Pete
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/