Changeset 13e47e2e in rtems


Ignore:
Timestamp:
Nov 17, 2000, 6:46:03 PM (20 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
1e566bbb
Parents:
4b0d1ab
Message:

2000-11-17 Jennifer Averret <jennifer@…>

  • src/imfs/imfs_eval.c: Always return imaginary node at mount points.
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/libfs/ChangeLog

    r4b0d1ab r13e47e2e  
     12000-11-17      Jennifer Averret <jennifer@OARcorp.com>
     2
     3        * src/imfs/imfs_eval.c: Always return imaginary node at mount points.
     4
    152000-11-09      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    26
  • c/src/exec/libfs/src/imfs/imfs_eval.c

    r4b0d1ab r13e47e2e  
    609609
    610610  /*
    611    *  Only return root node if this is the base file system.
    612    */
    613 
    614   if ((pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access) &&
    615       (pathloc->node_access != rtems_filesystem_root.node_access) ) {
    616     newloc = pathloc->mt_entry->mt_point_node;
    617     *pathloc = newloc;
     611   *  Always return the root node.
     612   *
     613   *  If we are at a node that is a mount point. Set loc to the
     614   *  new fs root node and let let the mounted filesystem set the handlers.
     615   *
     616   *  NOTE: The behavior of stat() on a mount point appears to be questionable.
     617   */
     618
     619  if ( node->type == IMFS_DIRECTORY ) {
     620    if ( node->info.directory.mt_fs != NULL ) {
     621      newloc   = node->info.directory.mt_fs->mt_fs_root;
     622      *pathloc = newloc;
     623      return (*pathloc->ops->evalpath_h)( &pathname[i-len], flags, pathloc );
     624    } else {
     625      result = IMFS_Set_handlers( pathloc );
     626    }
     627  } else {
     628    result = IMFS_Set_handlers( pathloc );
    618629  }
    619 
    620   result = IMFS_Set_handlers( pathloc );
    621630
    622631  /*
     
    629638  return result;
    630639}
    631 
    632 
    633 
    634 
    635 
    636 
    637 
    638 
    639 
  • c/src/libfs/ChangeLog

    r4b0d1ab r13e47e2e  
     12000-11-17      Jennifer Averret <jennifer@OARcorp.com>
     2
     3        * src/imfs/imfs_eval.c: Always return imaginary node at mount points.
     4
    152000-11-09      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    26
  • c/src/libfs/src/imfs/imfs_eval.c

    r4b0d1ab r13e47e2e  
    609609
    610610  /*
    611    *  Only return root node if this is the base file system.
    612    */
    613 
    614   if ((pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access) &&
    615       (pathloc->node_access != rtems_filesystem_root.node_access) ) {
    616     newloc = pathloc->mt_entry->mt_point_node;
    617     *pathloc = newloc;
     611   *  Always return the root node.
     612   *
     613   *  If we are at a node that is a mount point. Set loc to the
     614   *  new fs root node and let let the mounted filesystem set the handlers.
     615   *
     616   *  NOTE: The behavior of stat() on a mount point appears to be questionable.
     617   */
     618
     619  if ( node->type == IMFS_DIRECTORY ) {
     620    if ( node->info.directory.mt_fs != NULL ) {
     621      newloc   = node->info.directory.mt_fs->mt_fs_root;
     622      *pathloc = newloc;
     623      return (*pathloc->ops->evalpath_h)( &pathname[i-len], flags, pathloc );
     624    } else {
     625      result = IMFS_Set_handlers( pathloc );
     626    }
     627  } else {
     628    result = IMFS_Set_handlers( pathloc );
    618629  }
    619 
    620   result = IMFS_Set_handlers( pathloc );
    621630
    622631  /*
     
    629638  return result;
    630639}
    631 
    632 
    633 
    634 
    635 
    636 
    637 
    638 
    639 
  • cpukit/libfs/ChangeLog

    r4b0d1ab r13e47e2e  
     12000-11-17      Jennifer Averret <jennifer@OARcorp.com>
     2
     3        * src/imfs/imfs_eval.c: Always return imaginary node at mount points.
     4
    152000-11-09      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    26
  • cpukit/libfs/src/imfs/imfs_eval.c

    r4b0d1ab r13e47e2e  
    609609
    610610  /*
    611    *  Only return root node if this is the base file system.
    612    */
    613 
    614   if ((pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access) &&
    615       (pathloc->node_access != rtems_filesystem_root.node_access) ) {
    616     newloc = pathloc->mt_entry->mt_point_node;
    617     *pathloc = newloc;
     611   *  Always return the root node.
     612   *
     613   *  If we are at a node that is a mount point. Set loc to the
     614   *  new fs root node and let let the mounted filesystem set the handlers.
     615   *
     616   *  NOTE: The behavior of stat() on a mount point appears to be questionable.
     617   */
     618
     619  if ( node->type == IMFS_DIRECTORY ) {
     620    if ( node->info.directory.mt_fs != NULL ) {
     621      newloc   = node->info.directory.mt_fs->mt_fs_root;
     622      *pathloc = newloc;
     623      return (*pathloc->ops->evalpath_h)( &pathname[i-len], flags, pathloc );
     624    } else {
     625      result = IMFS_Set_handlers( pathloc );
     626    }
     627  } else {
     628    result = IMFS_Set_handlers( pathloc );
    618629  }
    619 
    620   result = IMFS_Set_handlers( pathloc );
    621630
    622631  /*
     
    629638  return result;
    630639}
    631 
    632 
    633 
    634 
    635 
    636 
    637 
    638 
    639 
Note: See TracChangeset for help on using the changeset viewer.