Nodes in the pseudo-filesystem can now be renamed or moved within the pseduo-filesystem
This commit is contained in:
parent
b39f432020
commit
c88b844190
@ -825,9 +825,12 @@
|
|||||||
(2014-2-10).
|
(2014-2-10).
|
||||||
* apps/examples/nximage/Kconfig and apps/examples/uip/Kconfig: Incomplete
|
* apps/examples/nximage/Kconfig and apps/examples/uip/Kconfig: Incomplete
|
||||||
Kconfig files fleshed out by Alan Carvalho de Assis (2014-2-18).
|
Kconfig files fleshed out by Alan Carvalho de Assis (2014-2-18).
|
||||||
* apps/nshilib: rmdir can now be used in the pseudo-filesystem. Hence,
|
* apps/nshlib: '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,
|
* apps/nshlib: 'mkdir' 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/nshlib: 'rename' can now be used in the pseudo-filesystem. Hence,
|
||||||
|
the 'mv' command needs to be available even if there are no write-able
|
||||||
|
filesystem enabled (2014-2-19).
|
||||||
|
@ -720,6 +720,9 @@ void nsh_usbtrace(void);
|
|||||||
# 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);
|
||||||
# endif
|
# endif
|
||||||
|
# ifndef CONFIG_NSH_DISABLE_MV
|
||||||
|
int cmd_mv(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
|
||||||
@ -752,9 +755,6 @@ void nsh_usbtrace(void);
|
|||||||
# 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
|
||||||
# ifndef CONFIG_NSH_DISABLE_MV
|
|
||||||
int cmd_mv(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv);
|
|
||||||
# endif
|
|
||||||
# ifndef CONFIG_NSH_DISABLE_RM
|
# ifndef CONFIG_NSH_DISABLE_RM
|
||||||
int cmd_rm(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv);
|
int cmd_rm(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv);
|
||||||
# endif
|
# endif
|
||||||
|
@ -300,7 +300,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_MV
|
# ifndef CONFIG_NSH_DISABLE_MV
|
||||||
{ "mv", cmd_mv, 3, 3, "<old-path> <new-path>" },
|
{ "mv", cmd_mv, 3, 3, "<old-path> <new-path>" },
|
||||||
# endif
|
# endif
|
||||||
|
@ -1298,7 +1298,7 @@ int cmd_mksmartfs(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
|||||||
* Name: cmd_mv
|
* Name: cmd_mv
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#if !defined(CONFIG_DISABLE_MOUNTPOINT) && CONFIG_NFILE_DESCRIPTORS > 0 && defined(CONFIG_FS_WRITABLE)
|
#if CONFIG_NFILE_DESCRIPTORS > 0
|
||||||
#ifndef CONFIG_NSH_DISABLE_MV
|
#ifndef CONFIG_NSH_DISABLE_MV
|
||||||
int cmd_mv(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
int cmd_mv(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user