mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-19 11:23:07 +08:00
nshlib: df command no long uses the non-standard OS interface foreach_mountpoint(). No simply cats /proc/fs/blocks or /proc/fs/usage.
This commit is contained in:
@@ -170,10 +170,8 @@ static const struct cmdmap_s g_cmdmap[] =
|
||||
|
||||
#if CONFIG_NFILE_DESCRIPTORS > 0 && !defined(CONFIG_DISABLE_MOUNTPOINT) && \
|
||||
defined(CONFIG_FS_READABLE) && !defined(CONFIG_NSH_DISABLE_DF)
|
||||
#ifdef CONFIG_NSH_CMDOPT_DF_H
|
||||
#ifdef NSH_HAVE_CATFILE
|
||||
{ "df", cmd_df, 1, 2, "[-h]" },
|
||||
#else
|
||||
{ "df", cmd_df, 1, 1, NULL },
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -340,13 +338,11 @@ static const struct cmdmap_s g_cmdmap[] =
|
||||
#endif
|
||||
|
||||
#if !defined(CONFIG_DISABLE_MOUNTPOINT) && CONFIG_NFILE_DESCRIPTORS > 0 && defined(CONFIG_FS_READABLE)
|
||||
# ifndef CONFIG_NSH_DISABLE_MOUNT
|
||||
#if defined(CONFIG_BUILD_PROTECTED) || defined(CONFIG_BUILD_KERNEL)
|
||||
{ "mount", cmd_mount, 5, 7, "-t <fstype> [-o <options>] [<block-device>] <mount-point>" },
|
||||
# else
|
||||
#ifndef CONFIG_NSH_DISABLE_MOUNT
|
||||
#ifdef NSH_HAVE_CATFILE
|
||||
{ "mount", cmd_mount, 1, 7, "[-t <fstype> [-o <options>] [<block-device>] <mount-point>]" },
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef NSH_HAVE_DIROPTS
|
||||
|
Reference in New Issue
Block a user