lkml.org 
[lkml]   [2009]   [May]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH]debugfs:Fix terminology inconsistency of dir name to mount debugfs filesystem.

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



\
 
 \ /
  Last update: 2009-05-26 23:17    [W:0.119 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site