Ignore:
Timestamp:
Jul 1, 2010, 3:18:06 PM (10 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.10
Children:
df719841
Parents:
c114654
Message:

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

  • libcsupport/include/rtems/libio_.h: Removed rtems_filesystem_mount_table_control.
  • libcsupport/include/rtems/libio.h, libcsupport/src/mount-mgr.c, libcsupport/src/mount.c libcsupport/src/statvfs.c, libcsupport/src/unmount.c, libmisc/shell/main_mount.c: Documentation. Removed rtems_filesystem_mounts_first() and rtems_filesystem_mounts_next(). Added rtems_filesystem_mount_iterate(). Changed return type of rtems_filesystem_iterate(). Removed rtems_filesystem_nodes_equal().

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

  • libfs/src/nfsclient/src/nfs.c, libfs/src/nfsclient/src/nfs.c, libfs/src/nfsclient/src/librtemsNfs.h: Renamed rtems_nfsfs_initialize() in rtems_nfs_initialize().
  • sapi/include/confdefs.h: Reflect changes above. Renamed *_miniIMFS in *_MINIIMFS. Renamed *_NFSFS in *_NFS.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/src/mount-mgr.c

    rc114654 r955a34b5  
    3838} filesystem_node;
    3939
    40 RTEMS_CHAIN_DEFINE_EMPTY(filesystem_chain);
     40static RTEMS_CHAIN_DEFINE_EMPTY(filesystem_chain);
    4141
    42 void
    43 rtems_filesystem_iterate(
     42bool rtems_filesystem_iterate(
    4443  rtems_per_filesystem_routine routine,
    4544  void *routine_arg
     
    4847  const rtems_filesystem_table_t *table_entry = &rtems_filesystem_table [0];
    4948  rtems_chain_node *node = NULL;
     49  bool stop = false;
    5050
    51   while ( table_entry->type ) {
    52     if ( !(*routine)( table_entry, routine_arg ) ) {
    53       break;
    54     }
    55 
     51  while ( table_entry->type && !stop ) {
     52    stop = (*routine)( table_entry, routine_arg );
    5653    ++table_entry;
    5754  }
    5855
    59   rtems_libio_lock();
    60   for (
    61     node = rtems_chain_first( &filesystem_chain );
    62     !rtems_chain_is_tail( &filesystem_chain, node );
    63     node = rtems_chain_next( node )
    64   ) {
    65     const filesystem_node *fsn = (filesystem_node *) node;
     56  if ( !stop ) {
     57    rtems_libio_lock();
     58    for (
     59      node = rtems_chain_first( &filesystem_chain );
     60      !rtems_chain_is_tail( &filesystem_chain, node ) && !stop;
     61      node = rtems_chain_next( node )
     62    ) {
     63      const filesystem_node *fsn = (filesystem_node *) node;
    6664
    67     if ( !(*routine)( &fsn->entry, routine_arg ) ) {
    68       break;
     65      stop = (*routine)( &fsn->entry, routine_arg );
    6966    }
     67    rtems_libio_unlock();
    7068  }
    71   rtems_libio_unlock();
     69
     70  return stop;
    7271}
    7372
     
    8281
    8382  if ( strcmp( entry->type, fa->type ) != 0 ) {
    84     return true;
     83    return false;
    8584  } else {
    8685    fa->mount_h = entry->mount_h;
Note: See TracChangeset for help on using the changeset viewer.