lkml.org 
[lkml]   [2009]   [May]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [RFC PATCH]debugfs:Fix terminology inconsistency of dir name to mount debugfs filesystem.
    From
    On Wed, May 27, 2009 at 6:15 AM, Steven Rostedt <rostedt@goodmis.org> wrote:
    >
    > 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 ;-)
    I think so. But, when we consider many developers that use linux kernel
    source all over the world, I think that a regular rules or consistency
    is important
    as greg k-h explained.

    Recently, I read "ftrace-world.odp" presentation file of steven rostedt.

    For example, about Mounting debugfs...
    #> mount -t debugfs nodev /sys/kernel/debug
    OR
    #> mkdir /debug
    #> mount -t debugfs nodev /debug

    I want that we will reach a consensus about mount directory name of
    debugfs filesystem to avoid confusing among the kernel developers.

    /debug/ ?
    or /sys/kernel/debug/?
    .....

    Frankly speaking, I like /sys/kernel/debug/ rule is better than /debug/ rule
    for consistency.

    >
    >>
    >> 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.
    >
    Yes.. In my case, I use linux distributions like Ubuntu 8.10, Fedora
    9/10, CENTOS 5.3 currently. This distributions use proc , tmpfs,
    devpts, sysfs for official release
    by default.

    > -- Steve
    >
    >



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

    \
     
     \ /
      Last update: 2009-05-27 04:27    [W:4.263 / U:0.588 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site