Patch from Chris Johns <cjohns@cybertec.com.au> so the directory

read function in the IMFS properly returns the inode number.
This commit is contained in:
Joel Sherrill
2000-06-30 12:36:32 +00:00
parent e5d6705e46
commit 068b64735c
4 changed files with 4 additions and 4 deletions

View File

@@ -114,10 +114,10 @@ int imfs_dir_read(
if( current_entry >= first_entry ) {
/* Move the entry to the return buffer */
tmp_dirent.d_ino = 1;
tmp_dirent.d_off = current_entry;
tmp_dirent.d_reclen = sizeof( struct dirent );
the_jnode = (IMFS_jnode_t *) the_node;
tmp_dirent.d_ino = the_jnode->stat_ino;
tmp_dirent.d_namlen = strlen( the_jnode->name );
strcpy( tmp_dirent.d_name, the_jnode->name );
memcpy(

View File

@@ -114,10 +114,10 @@ int imfs_dir_read(
if( current_entry >= first_entry ) {
/* Move the entry to the return buffer */
tmp_dirent.d_ino = 1;
tmp_dirent.d_off = current_entry;
tmp_dirent.d_reclen = sizeof( struct dirent );
the_jnode = (IMFS_jnode_t *) the_node;
tmp_dirent.d_ino = the_jnode->stat_ino;
tmp_dirent.d_namlen = strlen( the_jnode->name );
strcpy( tmp_dirent.d_name, the_jnode->name );
memcpy(

View File

@@ -114,10 +114,10 @@ int imfs_dir_read(
if( current_entry >= first_entry ) {
/* Move the entry to the return buffer */
tmp_dirent.d_ino = 1;
tmp_dirent.d_off = current_entry;
tmp_dirent.d_reclen = sizeof( struct dirent );
the_jnode = (IMFS_jnode_t *) the_node;
tmp_dirent.d_ino = the_jnode->stat_ino;
tmp_dirent.d_namlen = strlen( the_jnode->name );
strcpy( tmp_dirent.d_name, the_jnode->name );
memcpy(