forked from Imagelibrary/rtems
* libblock/src/diskdevs.c: Create the devices as block devices.
* libmisc/shell/main_debugrfs.c, libmisc/shell/main_mkrfs.c,
libmisc/shell/main_mount_rfs.c: New.
* libmisc/shell/main_msdosfmt.c: Change the command to mkdos and
alias the old name.
* libmisc/shell/shellconfig.h, libmisc/Makefile.am: Add RFS
support.
* libfs/src/rfs/rtems-rfs-shell.c,
libfs/src/rfs/rtems-rfs-shell.h: Move the format command code into
the shell file.
36 lines
915 B
C
36 lines
915 B
C
/*
|
|
* The license and distribution terms for this file may be
|
|
* found in the file LICENSE in this distribution or at
|
|
* http://www.rtems.com/license/LICENSE.
|
|
*
|
|
* $Id$
|
|
*/
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#endif
|
|
|
|
#include <stdio.h>
|
|
#include <unistd.h>
|
|
#include <string.h>
|
|
#include <errno.h>
|
|
|
|
#include <rtems.h>
|
|
#include <rtems/shell.h>
|
|
#include <rtems/stringto.h>
|
|
#include <rtems/shellconfig.h>
|
|
#include <rtems/rtems-rfs-shell.h>
|
|
#include <rtems/fsmount.h>
|
|
#include "internal.h"
|
|
|
|
#define OPTIONS "[-h]"
|
|
|
|
rtems_shell_cmd_t rtems_shell_DEBUGRFS_Command = {
|
|
"debugrfs", /* name */
|
|
"debugrfs " OPTIONS, /* usage */
|
|
"files", /* topic */
|
|
rtems_shell_debugrfs, /* command */
|
|
NULL, /* alias */
|
|
NULL /* next */
|
|
};
|