summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-06-30 12:36:32 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-06-30 12:36:32 +0000
commit068b64735c904a065049e0ca311674955313ac09 (patch)
treef623139c00105ce9eb93e08850142cbabd568787 /c
parentPatch from Chris Johns <cjohns@cybertec.com.au> to add support for (diff)
downloadrtems-068b64735c904a065049e0ca311674955313ac09.tar.bz2
Patch from Chris Johns <cjohns@cybertec.com.au> so the directory
read function in the IMFS properly returns the inode number.
Diffstat (limited to '')
-rw-r--r--c/src/exec/libfs/src/imfs/imfs_directory.c2
-rw-r--r--c/src/lib/libc/imfs_directory.c2
-rw-r--r--c/src/libfs/src/imfs/imfs_directory.c2
-rw-r--r--cpukit/libfs/src/imfs/imfs_directory.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/c/src/exec/libfs/src/imfs/imfs_directory.c b/c/src/exec/libfs/src/imfs/imfs_directory.c
index 38280c565c..4f5ef031fb 100644
--- a/c/src/exec/libfs/src/imfs/imfs_directory.c
+++ b/c/src/exec/libfs/src/imfs/imfs_directory.c
@@ -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(
diff --git a/c/src/lib/libc/imfs_directory.c b/c/src/lib/libc/imfs_directory.c
index 38280c565c..4f5ef031fb 100644
--- a/c/src/lib/libc/imfs_directory.c
+++ b/c/src/lib/libc/imfs_directory.c
@@ -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(
diff --git a/c/src/libfs/src/imfs/imfs_directory.c b/c/src/libfs/src/imfs/imfs_directory.c
index 38280c565c..4f5ef031fb 100644
--- a/c/src/libfs/src/imfs/imfs_directory.c
+++ b/c/src/libfs/src/imfs/imfs_directory.c
@@ -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(
diff --git a/cpukit/libfs/src/imfs/imfs_directory.c b/cpukit/libfs/src/imfs/imfs_directory.c
index 38280c565c..4f5ef031fb 100644
--- a/cpukit/libfs/src/imfs/imfs_directory.c
+++ b/cpukit/libfs/src/imfs/imfs_directory.c
@@ -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(