forked from Imagelibrary/rtems
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:
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user