mkdir can now be used to create empty directories in the pseudo-filesystem.
This commit is contained in:
parent
b70ce5f634
commit
b39f432020
@ -828,3 +828,6 @@
|
|||||||
* apps/nshilib: rmdir can now be used in the pseudo-filesystem. Hence,
|
* apps/nshilib: rmdir can now be used in the pseudo-filesystem. Hence,
|
||||||
the command needs to be available even if there are no write-able
|
the command needs to be available even if there are no write-able
|
||||||
filesystem enabled (2014-2-19).
|
filesystem enabled (2014-2-19).
|
||||||
|
* apps/nshilib: mkdir can now be used in the pseudo-filesystem. Hence,
|
||||||
|
the command needs to be available even if there are no write-able
|
||||||
|
filesystem enabled (2014-2-19).
|
||||||
|
@ -972,7 +972,7 @@ Command Dependencies on Configuration Settings
|
|||||||
ls CONFIG_NFILE_DESCRIPTORS > 0
|
ls CONFIG_NFILE_DESCRIPTORS > 0
|
||||||
md5 CONFIG_NETUTILS_CODECS && CONFIG_CODECS_HASH_MD5
|
md5 CONFIG_NETUTILS_CODECS && CONFIG_CODECS_HASH_MD5
|
||||||
mb,mh,mw ---
|
mb,mh,mw ---
|
||||||
mkdir !CONFIG_DISABLE_MOUNTPOINT && CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_FS_WRITABLE (see note 4)
|
mkdir CONFIG_NFILE_DESCRIPTORS > 0
|
||||||
mkfatfs !CONFIG_DISABLE_MOUNTPOINT && CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_FS_FAT
|
mkfatfs !CONFIG_DISABLE_MOUNTPOINT && CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_FS_FAT
|
||||||
mkfifo CONFIG_NFILE_DESCRIPTORS > 0
|
mkfifo CONFIG_NFILE_DESCRIPTORS > 0
|
||||||
mkrd !CONFIG_DISABLE_MOUNTPOINT && CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_FS_WRITABLE (see note 4)
|
mkrd !CONFIG_DISABLE_MOUNTPOINT && CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_FS_WRITABLE (see note 4)
|
||||||
@ -984,7 +984,7 @@ Command Dependencies on Configuration Settings
|
|||||||
put CONFIG_NET && CONFIG_NET_UDP && CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_NET_BUFSIZE >= 558 (see note 1,2)
|
put CONFIG_NET && CONFIG_NET_UDP && CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_NET_BUFSIZE >= 558 (see note 1,2)
|
||||||
pwd !CONFIG_DISABLE_ENVIRON && CONFIG_NFILE_DESCRIPTORS > 0
|
pwd !CONFIG_DISABLE_ENVIRON && CONFIG_NFILE_DESCRIPTORS > 0
|
||||||
rm !CONFIG_DISABLE_MOUNTPOINT && CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_FS_WRITABLE (see note 4)
|
rm !CONFIG_DISABLE_MOUNTPOINT && CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_FS_WRITABLE (see note 4)
|
||||||
rmdir !CONFIG_DISABLE_MOUNTPOINT && CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_FS_WRITABLE (see note 4)
|
rmdir CONFIG_NFILE_DESCRIPTORS > 0
|
||||||
set !CONFIG_DISABLE_ENVIRON
|
set !CONFIG_DISABLE_ENVIRON
|
||||||
sh CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_NFILE_STREAMS > 0 && !CONFIG_NSH_DISABLESCRIPT
|
sh CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_NFILE_STREAMS > 0 && !CONFIG_NSH_DISABLESCRIPT
|
||||||
sleep !CONFIG_DISABLE_SIGNALS
|
sleep !CONFIG_DISABLE_SIGNALS
|
||||||
|
@ -717,6 +717,9 @@ void nsh_usbtrace(void);
|
|||||||
# ifndef CONFIG_NSH_DISABLE_LS
|
# ifndef CONFIG_NSH_DISABLE_LS
|
||||||
int cmd_ls(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv);
|
int cmd_ls(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv);
|
||||||
# endif
|
# endif
|
||||||
|
# ifndef CONFIG_NSH_DISABLE_MKDIR
|
||||||
|
int cmd_mkdir(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv);
|
||||||
|
# endif
|
||||||
# ifndef CONFIG_NSH_DISABLE_RMDIR
|
# ifndef CONFIG_NSH_DISABLE_RMDIR
|
||||||
int cmd_rmdir(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv);
|
int cmd_rmdir(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv);
|
||||||
# endif
|
# endif
|
||||||
@ -746,9 +749,6 @@ void nsh_usbtrace(void);
|
|||||||
int cmd_umount(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv);
|
int cmd_umount(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv);
|
||||||
# endif
|
# endif
|
||||||
# ifdef CONFIG_FS_WRITABLE
|
# ifdef CONFIG_FS_WRITABLE
|
||||||
# ifndef CONFIG_NSH_DISABLE_MKDIR
|
|
||||||
int cmd_mkdir(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv);
|
|
||||||
# endif
|
|
||||||
# ifndef CONFIG_NSH_DISABLE_MKRD
|
# ifndef CONFIG_NSH_DISABLE_MKRD
|
||||||
int cmd_mkrd(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv);
|
int cmd_mkrd(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv);
|
||||||
# endif
|
# endif
|
||||||
|
@ -252,7 +252,7 @@ static const struct cmdmap_s g_cmdmap[] =
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(CONFIG_DISABLE_MOUNTPOINT) && CONFIG_NFILE_DESCRIPTORS > 0 && defined(CONFIG_FS_WRITABLE)
|
#if CONFIG_NFILE_DESCRIPTORS > 0
|
||||||
# ifndef CONFIG_NSH_DISABLE_MKDIR
|
# ifndef CONFIG_NSH_DISABLE_MKDIR
|
||||||
{ "mkdir", cmd_mkdir, 2, 2, "<path>" },
|
{ "mkdir", cmd_mkdir, 2, 2, "<path>" },
|
||||||
# endif
|
# endif
|
||||||
|
@ -995,7 +995,7 @@ int cmd_ls(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
|||||||
* Name: cmd_mkdir
|
* Name: cmd_mkdir
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#if !defined(CONFIG_DISABLE_MOUNTPOINT) && CONFIG_NFILE_DESCRIPTORS > 0 && defined(CONFIG_FS_WRITABLE)
|
#if CONFIG_NFILE_DESCRIPTORS > 0
|
||||||
#ifndef CONFIG_NSH_DISABLE_MKDIR
|
#ifndef CONFIG_NSH_DISABLE_MKDIR
|
||||||
int cmd_mkdir(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
int cmd_mkdir(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user