Re: Need help in using debugFs.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux