On Wed, May 28, 2008 at 8:13 PM, Manish Katiyar <mkatiyar@xxxxxxxxx> wrote: > > It appears you are using debugfs from e2fsprogs. The columns seem to be > Yes.....that is the impt point.....the two debugfs are two different thing (one is userspace, another is kernelspace).....two completely different way of using it....and userspace debugfs application DOES NOT use the kernelspace debugfs, am I correct? But for the kernel based debugfs, I am aware only of systemtap using it: systemtap, > 1) inode number > 2) permissons/mode, > 3) From the code it is "dirent->name_len >> 8", but my guess is it is > number of links. > 4) uid > 5) gid > 6) datetime string > 7) file name. > > > Hope that helps. > > >> >> Thanks and Regards, >> Prasad. >> >> On Wed, May 28, 2008 at 8:00 AM, Peter Teoh <htmldeveloper@xxxxxxxxx> wrote: >>> >>> On Wed, May 28, 2008 at 12:17 AM, Frédéric Weisbecker >>> <f.weisbecker@xxxxxxxxx> wrote: >>> > Hi! >>> > >>> > Here is a small tutorial: >>> > >>> > http://docs.blackfin.uclinux.org/doku.php?id=file_systems#file_system_exampledebugfs >>> >>> Yes, that is the kernel-based debugfs, and u used it via the following >>> manner (not mentioned in the page, but widely available in Internet): >>> >>> Method 1: >>> >>> put the following line in /etc/fstab for automatic moutning at bootup: >>> >>> none /sys/kernel/debug debugfs >>> defaults 0 0 >>> >>> >>> Method 2: >>> >>> Issue: >>> >>> mount -t debugfs none /sys/kernel/debug >>> >>> at command line level. >>> >>> BUT....in my Fedora FC7 distros, at the commandline level there is a >>> "debugfs" command (man debugfs): >>> >>> DEBUGFS(8) >>> DEBUGFS(8) >>> >>> NAME >>> debugfs - ext2/ext3 file system debugger >>> >>> SYNOPSIS >>> debugfs [ -Vwci ] [ -b blocksize ] [ -s superblock ] [ -f cmd_file >>> ] [ >>> -R request ] [ -d data_source_device ] [ device ] >>> >>> DESCRIPTION >>> The debugfs program is an interactive file system debugger. It can >>> be >>> used to examine and change the state of an ext2 file system. >>> device is the special file corresponding to the device containing >>> the >>> ext2 file system (e.g /dev/hdXX). >>> >>> OPTIONS >>> -w Specifies that the file system should be opened in >>> read-write >>> mode. Without this option, the file system is opened in >>> read- >>> only mode. >>> >>> ......... >>> >>> Very confusing.....but I think this is not what u want....it is a tool >>> as part of the e2fsprogs package (e2fsprogs.sourceforge.net, I think). >>> >>> >>> > If you need more help to use it, don't hesitate to ask! >>> > As you will see there are two ways to use it: >>> > >>> > _ By creating a file which exports or import a single variable. It's >>> > simple >>> > but asynchronous (you or the user-process needs to check periodically if >>> > the >>> > value has changed. >>> > _ By implementing the common file operations. But it stays simple and >>> > it's >>> > synchronous. >>> > >>> > Regards, >>> > Frédéric... >>> > >>> > >>> > >>> > >>> > 2008/5/27 Prasad Joshi <prasadjoshi124@xxxxxxxxx>: >>> >> >>> >> Hi All, >>> >> >>> >> I have an assignment and I am supposed to use debugfs for the same. >>> >> Can anyone please help me? or Point me to a link which tells how to >>> >> use >>> >> debug fs? >>> >> >>> >> Thanks and Regards, >>> >> Prasad >>> > >>> > >>> >>> >>> >>> -- >>> Regards, >>> Peter Teoh >> >> > > > > -- > Thanks & Regards, > ******************************************** > Manish Katiyar ( http://mkatiyar.googlepages.com ) > 3rd Floor, Fair Winds Block > EGL Software Park > Off Intermediate Ring Road > Bangalore 560071, India > *********************************************** > > -- > To unsubscribe from this list: send an email with > "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx > Please read the FAQ at http://kernelnewbies.org/FAQ > > -- Regards, Peter Teoh -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ