Changeset 068b6473 in rtems


Ignore:
Timestamp:
Jun 30, 2000, 12:36:32 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
e8fd633
Parents:
e5d6705e
Message:

Patch from Chris Johns <cjohns@…> so the directory
read function in the IMFS properly returns the inode number.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/libfs/src/imfs/imfs_directory.c

    re5d6705e r068b6473  
    115115      if( current_entry >= first_entry ) {
    116116         /* Move the entry to the return buffer */
    117          tmp_dirent.d_ino = 1;
    118117         tmp_dirent.d_off = current_entry;
    119118         tmp_dirent.d_reclen = sizeof( struct dirent );
    120119         the_jnode = (IMFS_jnode_t *) the_node;
     120         tmp_dirent.d_ino = the_jnode->stat_ino;
    121121         tmp_dirent.d_namlen = strlen( the_jnode->name );
    122122         strcpy( tmp_dirent.d_name, the_jnode->name );
  • c/src/lib/libc/imfs_directory.c

    re5d6705e r068b6473  
    115115      if( current_entry >= first_entry ) {
    116116         /* Move the entry to the return buffer */
    117          tmp_dirent.d_ino = 1;
    118117         tmp_dirent.d_off = current_entry;
    119118         tmp_dirent.d_reclen = sizeof( struct dirent );
    120119         the_jnode = (IMFS_jnode_t *) the_node;
     120         tmp_dirent.d_ino = the_jnode->stat_ino;
    121121         tmp_dirent.d_namlen = strlen( the_jnode->name );
    122122         strcpy( tmp_dirent.d_name, the_jnode->name );
  • c/src/libfs/src/imfs/imfs_directory.c

    re5d6705e r068b6473  
    115115      if( current_entry >= first_entry ) {
    116116         /* Move the entry to the return buffer */
    117          tmp_dirent.d_ino = 1;
    118117         tmp_dirent.d_off = current_entry;
    119118         tmp_dirent.d_reclen = sizeof( struct dirent );
    120119         the_jnode = (IMFS_jnode_t *) the_node;
     120         tmp_dirent.d_ino = the_jnode->stat_ino;
    121121         tmp_dirent.d_namlen = strlen( the_jnode->name );
    122122         strcpy( tmp_dirent.d_name, the_jnode->name );
  • cpukit/libfs/src/imfs/imfs_directory.c

    re5d6705e r068b6473  
    115115      if( current_entry >= first_entry ) {
    116116         /* Move the entry to the return buffer */
    117          tmp_dirent.d_ino = 1;
    118117         tmp_dirent.d_off = current_entry;
    119118         tmp_dirent.d_reclen = sizeof( struct dirent );
    120119         the_jnode = (IMFS_jnode_t *) the_node;
     120         tmp_dirent.d_ino = the_jnode->stat_ino;
    121121         tmp_dirent.d_namlen = strlen( the_jnode->name );
    122122         strcpy( tmp_dirent.d_name, the_jnode->name );
Note: See TracChangeset for help on using the changeset viewer.