diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-05-26 19:22:34 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-05-26 19:22:34 +0000 |
commit | a0fcefa90d39c5510c3f62bdbd3f2f128f211d6b (patch) | |
tree | 1deba65ce2f157d8f25da5498676e306742887e8 /nuttx/fs/fs_opendir.c | |
parent | f93e30156c033d77182a052549a5e355a5d0a5a0 (diff) | |
download | px4-nuttx-a0fcefa90d39c5510c3f62bdbd3f2f128f211d6b.tar.gz px4-nuttx-a0fcefa90d39c5510c3f62bdbd3f2f128f211d6b.tar.bz2 px4-nuttx-a0fcefa90d39c5510c3f62bdbd3f2f128f211d6b.zip |
Finish FAT directory operations; add option to disable mountpoints; fix ARM compile errors
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@252 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/fs_opendir.c')
-rw-r--r-- | nuttx/fs/fs_opendir.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/nuttx/fs/fs_opendir.c b/nuttx/fs/fs_opendir.c index 0b5a8969f..6791195a2 100644 --- a/nuttx/fs/fs_opendir.c +++ b/nuttx/fs/fs_opendir.c @@ -197,11 +197,12 @@ FAR DIR *opendir(const char *path) * inode or a file system mountpoint. */ - dir->root = inode; /* Save the inode where we start */ - dir->position = 0; /* This is the position in the read stream */ + dir->fd_root = inode; /* Save the inode where we start */ + dir->fd_position = 0; /* This is the position in the read stream */ /* Is this a not in the psuedo filesystem? */ +#ifndef CONFIG_DISABLE_MOUNTPOUNT if (INODE_IS_MOUNTPT(inode)) { /* The node is a file system mointpoint. Verify that the mountpoint @@ -224,11 +225,12 @@ FAR DIR *opendir(const char *path) } } else +#endif { /* The node is part of the root psuedo file system */ - inode_addref(inode); /* Now we have two references on inode */ - dir->u.psuedo.next = inode; /* This is the next node to use for readdir() */ + inode_addref(inode); /* Now we have two references on inode */ + dir->u.psuedo.fd_next = inode; /* This is the next node to use for readdir() */ } return ((DIR*)dir); |