From 5f4060ce1ee16bd46a4189d6d73a63765509566b Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 12 Oct 2015 09:36:42 -0600 Subject: [PATCH] NSH mount command: Add support for TMPFS --- nshlib/nsh_mntcmds.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nshlib/nsh_mntcmds.c b/nshlib/nsh_mntcmds.c index ec0a24e31..10d341ca9 100644 --- a/nshlib/nsh_mntcmds.c +++ b/nshlib/nsh_mntcmds.c @@ -109,6 +109,12 @@ static const char* get_fstype(FAR struct statfs *statbuf) break; #endif +#ifdef CONFIG_FS_TMPFS + case TMPFS_MAGIC: + fstype = "tmpfs"; + break; +#endif + #ifdef CONFIG_FS_BINFS case BINFS_MAGIC: fstype = "binfs";