mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-20 04:26:04 +08:00
mksmartfs: Move into apps/fsutils from kernel, now uses only open and ioctl. Add configuration option to supported multiple root directories. From Ken Petit
This commit is contained in:
@@ -280,13 +280,14 @@ static const struct cmdmap_s g_cmdmap[] =
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if !defined(CONFIG_DISABLE_MOUNTPOINT) && CONFIG_NFILE_DESCRIPTORS > 0 && defined(CONFIG_FS_SMARTFS)
|
||||
#if !defined(CONFIG_DISABLE_MOUNTPOINT) && CONFIG_NFILE_DESCRIPTORS > 0 && \
|
||||
defined(CONFIG_FS_SMARTFS) && defined(CONFIG_FSUTILS_MKSMARTFS)
|
||||
# ifndef CONFIG_NSH_DISABLE_MKSMARTFS
|
||||
#ifdef CONFIG_SMARTFS_MULTI_ROOT_DIRS
|
||||
{ "mksmartfs", cmd_mksmartfs, 2, 3, "<path> [<num-root-directories>]" },
|
||||
#else
|
||||
{ "mksmartfs", cmd_mksmartfs, 2, 2, "<path>" },
|
||||
#endif
|
||||
# ifdef CONFIG_SMARTFS_MULTI_ROOT_DIRS
|
||||
{ "mksmartfs", cmd_mksmartfs, 2, 5, "[-s sector-size] <path> [<num-root-directories>]" },
|
||||
# else
|
||||
{ "mksmartfs", cmd_mksmartfs, 2, 4, "[-s sector-size] <path>" },
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user