mkrfs [-vsbiIo] device
Format the block device with the RTEMS File System (RFS). The default configuration with not parameters selects a suitable block size based on the size of the media being formatted.
The media is broken up into groups of blocks. The number of blocks in a group is based on the number of bits a block contains. The large a block the more blocks a group contains and the fewer groups in the file system.
The following options are provided:
This command returns 0 on success and non-zero if an error is encountered.
NONE
The following is an example of how to use mkrfs
:
SHLL [/] $ mkrfs /dev/fdda
This command is included in the default shell command set.
When building a custom command set, define
CONFIGURE_SHELL_COMMAND_MKRFS
to have this
command included.
This command can be excluded from the shell command set by
defining CONFIGURE_SHELL_NO_COMMAND_MKRFS
when all
shell commands have been configured.
The mkrfs
command is implemented by a C language function which
has the following prototype:
int rtems_shell_rtems_main_mkrfs( int argc, char **argv );
The configuration structure for mkrfs
has the following
prototype:
extern rtems_shell_cmd_t rtems_shell_MKRFS_Command;
Copyright © 1988-2008 OAR Corporation