Ignore:
Timestamp:
Jul 1, 2010, 2:10:54 PM (10 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.10
Children:
615d8cc
Parents:
f33be44
Message:

2010-06-07 Sebastian Huber <sebastian.huber@…>

  • 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@…>

  • 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/
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libmisc/shell/main_mount.c

    rf33be44 r00bf6744  
    2828#include "internal.h"
    2929
     30static bool print_filesystem(const rtems_filesystem_table_t *entry, void *arg)
     31{
     32  printf("%s ", entry->type);
     33
     34  return true;
     35}
     36
    3037int rtems_shell_main_mount(
    3138  int   argc,
     
    5663        options = RTEMS_FILESYSTEM_READ_ONLY;
    5764      } else if (argv[arg][1] == 'L') {
    58         const rtems_filesystem_table_t* fs;
    59         fs = rtems_filesystem_table_first();
    6065        printf ("File systems: ");
    61         while (fs) {
    62           printf ("%s ", fs->type);
    63           fs = rtems_filesystem_table_next(fs);
    64         }
     66        rtems_filesystem_iterate(print_filesystem, NULL);
    6567        printf ("\n");
    6668        return 0;
Note: See TracChangeset for help on using the changeset viewer.