man debugfs.ocfs2 (Administration système) - OCFS2 file system debugger.

NAME

debugfs.ocfs2 - OCFS2 file system debugger.

SYNOPSIS

debugfs.ocfs2 [-f cmdfile] [-V] [-w] [-?] [device]

DESCRIPTION

The debugfs.ocfs2 is an interactive file system debugger. It can be used to examine the state of an OCFS2 filesystem. device is the special file corresponding the device containing the OCFS2 filesystem (e.g /dev/hdxx).

OPTIONS

-f, --file cmdfile
Causes debugfs.ocfs2 to read in commands from cmdfile and execute them. It exits after all the commands are executed.
-w, --write
Specifies that the filesystem should be opened in read-write mode. Without this option, the filesystem is opened in the read-only mode.
-V, --version
Print version information and exit.
-?, --help
Displays help and exit.

SPECIFYING FILES

Many debugfs.ocfs2 commands take a filespec as an argument to specify an inode (as opposed to a pathname) in the filesystem which is currently opened by debugfs.ocfs2. The filespec argument may be specified in two forms. The first form is an inode number surrounded by angle brackets, e.g., <32>. The second form is a pathname; if the pathname is prefixed by a forward slash ('/'), then it is interpreted relative to the root of the filesystem which is currently opened by debugfs.ocfs2. If not, the path is interpreted relative to the current working directory as maintained by debugfs.ocfs2, which can be modified using the command cd. If the pathname is prefixed by a double forward slash ('//'), then it is interpreted relative to the root of the system directory of the filesystem opened by debugfs.ocfs2.

COMMANDS

This is a list of the commands which debugfs.ocfs2 supports.

cat filespec
Dump the contents of inode filespec to stdout.
cd filespec
Change the current working directory to filespec.
chroot filespec
Change the root directory to be the directory filespec.
close
Close the currently opened filesystem.
curdev
Show the currently open device.
dump [-p] filespec outfile
Dump the contents of the inode filespec to the output file outfile. If the -p is given, set the owner, group, timestamps and permissions information on outfile to match those of filespec.
extent block#
Display the contents of the extent structure at block#.
group block#
Display the contents of the group structure at block#.
help, ?
Print the list of commands understood by debugfs.ocfs2.
lcd directory
Change the current working directory of the debugfs.ocfs2 process to the directory on the native filesystem.
logdump node#
Display the contents of the journal for node node#.
ls [-l] filespec
Print the listing of the files in the directory filespec. The -l flag will list files in the long format.
open device
Open the filesystem on device.
quit, q
Quit debugfs.ocfs2.
rdump [-v] filespec outdir
Recursively dump directory filespec and all its contents (including regular files, symbolic links and other directories) into the outdir which should be an existing directory on the native filesystem.
slotmap
Display the contents of the slotmap system file.
stat filespec
Display the contents of the inode structure of the inode filespec.
stats
Display the contents of the super block.

ACKNOWLEDGEMENT

This tool has been modelled after debugfs, a debugging tool for ext2.

SEE ALSO

AUTHOR

Oracle Corporation

COPYRIGHT

Copyright © 2004, 2005 Oracle. All rights reserved.