Re: [RFC PATCH]debugfs:Fix terminology inconsistency of dir name tomount debugfs filesystem.

From: Steven Rostedt
Date: Tue May 26 2009 - 17:15:24 EST



On Tue, 26 May 2009, Greg KH wrote:
> >
> > The filesystem Nazi's out there will argue that the proper place to mount
> > the debugfs filesystem is /sys/kernel/debug. I personally find that
> > location annoying.
>
> Why?

Because it is too much to type ;-)

>
> When I created debugfs, I was told that I had to pick a place to mount
> it so that everyone could write scripts that "knew" where it would be.
>
> So we picked /sys/kernel/debug/ and the code creates the mount point to
> put it there. Now distros actually mount debugfs at that location.
>
> So, now you don't like this? After it's become a standard? Ick.
>
> Becides, /debug/ is pretty presumptious, it's as if debugging the kernel
> is a system-wide thing :)
>
> So please, don't use /debug/ use the standard, defined, and ACTUALLY
> USED BY DISTROS TODAY mount point of /sys/kernel/debug/
>
> If you want to create your own symlink from /debug/ to that location to
> make it easier to type, feel free, but do not hard code any scripts to
> use that location, or they are going to break.

All my scripts search /proc/mounts to find where debugfs is mounted, then
it uses that.

Hmm, Not sure what packages in the distros use the default. I don't see
the debugfs in /etc/fstab in any of my machines.

-- Steve

--
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/