Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:24:19

0001 /*
0002  *  The license and distribution terms for this file may be
0003  *  found in the file LICENSE in this distribution or at
0004  *  http://www.rtems.org/license/LICENSE.
0005  */
0006 
0007 #ifdef HAVE_CONFIG_H
0008 #include "config.h"
0009 #endif
0010 
0011 #include <stdio.h>
0012 #include <unistd.h>
0013 #include <string.h>
0014 #include <errno.h>
0015 
0016 #include <rtems.h>
0017 #include <rtems/shell.h>
0018 #include <rtems/stringto.h>
0019 #include <rtems/shellconfig.h>
0020 #include <rtems/rtems-rfs-shell.h>
0021 #include <rtems/fsmount.h>
0022 #include "internal.h"
0023 
0024 #define OPTIONS "[-v] [-s blksz] [-b grpblk] [-i grpinode] [-I] [-o %inode]"
0025 
0026 rtems_shell_cmd_t rtems_shell_MKRFS_Command = {
0027   "mkrfs",                                   /* name */
0028   "mkrfs " OPTIONS " dev",                   /* usage */
0029   "files",                                   /* topic */
0030   rtems_shell_rfs_format,                    /* command */
0031   NULL,                                      /* alias */
0032   NULL                                       /* next */
0033 };