RTEMS Logo

RTEMS 4.10.2 On-Line Library


File and Directory Commands debugrfs - debug RFS file system

PREV UP NEXT Bookshelf RTEMS Shell User's Guide

3.2.23: debugrfs - debug RFS file system

SYNOPSYS:

debugrfs [-hl] path command [options]

DESCRIPTION:

The command provides debugging information for the RFS file system.

The options are:

-h
Print a help message.
-l
List the commands.
path
Path to the mounted RFS file system. The file system has to be mounted to view to use this command.

The commands are:

block start [end]
Display the contents of the blocks from start to end.
data
Display the file system data and configuration.
dir bno
Process the block as a directory displaying the entries.
group start [end]
Display the group data from the start group to the end group.
inode [-aef] [start] [end]
Display the inodes between start and end. If no start and end is provides all inodes are displayed.
-a
Display all inodes. That is allocated and unallocated inodes.
-e
Search and display on inodes that have an error.
-f
Force display of inodes, even when in error.

EXIT STATUS:

This command returns 0 on success and non-zero if an error is encountered.

NOTES:

NONE

EXAMPLES:

The following is an example of how to use debugrfs:

SHLL [/] $ debugrfs /c data

CONFIGURATION:

This command is included in the default shell command set. When building a custom command set, define CONFIGURE_SHELL_COMMAND_DEBUGRFS to have this command included.

This command can be excluded from the shell command set by defining CONFIGURE_SHELL_NO_COMMAND_DEBUGRFS when all shell commands have been configured.

PROGRAMMING INFORMATION:

The debugrfs command is implemented by a C language function which has the following prototype:

int rtems_shell_rtems_main_debugrfs(
  int    argc,
  char **argv
);

The configuration structure for debugrfs has the following prototype:

extern rtems_shell_cmd_t rtems_shell_DEBUGRFS_Command;


PREV UP NEXT Bookshelf RTEMS Shell User's Guide

Copyright © 1988-2008 OAR Corporation