diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2010-07-01 14:10:54 +0000 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2010-07-01 14:10:54 +0000 |
commit | 00bf6744f5afd9f44fe3a3dc05e9263152910938 (patch) | |
tree | 2dd17d531d77fb8ef66c01c250834599281a68f3 /cpukit/libmisc | |
parent | 2010-06-24 Bharath Suri <bharath.s.jois@gmail.com> (diff) | |
download | rtems-00bf6744f5afd9f44fe3a3dc05e9263152910938.tar.bz2 |
2010-06-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libcsupport/include/rtems/libio_.h: Declare
rtems_filesystem_mount_table_control.
* libcsupport/include/rtems/libio.h: Removed
rtems_filesystem_table_first(), rtems_filesystem_table_next() and
rtems_filesystem_table_node_t declarations. Declare
rtems_per_filesystem_routine, rtems_filesystem_iterate() and
rtems_filesystem_get_mount_handler().
* libcsupport/src/mount.c: Added rtems_filesystem_mounts_first() and
rtems_filesystem_mounts_next(). Simplify mount(). Removed
rtems_filesystem_mount_table_control_init. Use
rtems_filesystem_get_mount_handler().
* libcsupport/src/mount-mgr.c: Removed rtems_filesystem_mounts_first() and
rtems_filesystem_mounts_next(). Added rtems_filesystem_iterate() and
rtems_filesystem_get_mount_handler(). Use rtems_libio_lock() and
rtems_libio_unlock();
* sapi/include/confdefs.h, libmisc/shell/main_mount.c: Update for
mount API changes.
2010-06-07 Bharath Suri <bharath.s.jois@gmail.com>
* libcsupport/include/rtems/libio_.h: Removed macros
rtems_filesystem_is_separator
rtems_filesystem_get_start_loc
rtems_filesystem_get_sym_start_loc
and added them as files under libcsupport/src/
* libcsupport/src/: Added new files
libcsupport/src/sup_fs_get_start_loc.c
libcsupport/src/sup_fs_get_sym_start_loc.c
libcsupport/src/sup_fs_is_separator.c
* libcsupport/Makefile.am: Changes to accommodate new
files under libcsupport/src/
Diffstat (limited to 'cpukit/libmisc')
-rw-r--r-- | cpukit/libmisc/shell/main_mount.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/cpukit/libmisc/shell/main_mount.c b/cpukit/libmisc/shell/main_mount.c index 8062001d6a..44a9c42665 100644 --- a/cpukit/libmisc/shell/main_mount.c +++ b/cpukit/libmisc/shell/main_mount.c @@ -27,6 +27,13 @@ #include <rtems/libio.h> #include "internal.h" +static bool print_filesystem(const rtems_filesystem_table_t *entry, void *arg) +{ + printf("%s ", entry->type); + + return true; +} + int rtems_shell_main_mount( int argc, char *argv[] @@ -55,13 +62,8 @@ int rtems_shell_main_mount( } else if (argv[arg][1] == 'r') { options = RTEMS_FILESYSTEM_READ_ONLY; } else if (argv[arg][1] == 'L') { - const rtems_filesystem_table_t* fs; - fs = rtems_filesystem_table_first(); printf ("File systems: "); - while (fs) { - printf ("%s ", fs->type); - fs = rtems_filesystem_table_next(fs); - } + rtems_filesystem_iterate(print_filesystem, NULL); printf ("\n"); return 0; } else if (argv[arg][1] == 'o') { |