More NXFFS logic

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3538 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2011-04-28 22:24:10 +00:00
parent 73308cef13
commit 90aaaebeae
7 changed files with 440 additions and 7 deletions
+14
View File
@@ -105,6 +105,17 @@ struct fs_binfsdir_s
unsigned int fb_index; /* Index to the next named entry point */
};
#endif
#ifdef CONFIG_FS_NXFFS
/* NXFFS is the tiny NuttX wear-leveling FLASH file system. The state value is
* the offset in FLASH memory to the next inode entry.
*/
struct fs_nxffsdir_s
{
off_t nx_offset; /* Offset to the next inode */
};
#endif
#endif /* CONFIG_DISABLE_MOUNTPOINT */
struct fs_dirent_s
@@ -153,7 +164,10 @@ struct fs_dirent_s
#ifdef CONFIG_APPS_BINDIR
struct fs_binfsdir_s binfs;
#endif
#ifdef CONFIG_FS_NXFFS
struct fs_nxffsdir_s nxffs;
#endif
#endif /* !CONFIG_DISABLE_MOUNTPOINT */
} u;
/* In any event, this the actual struct dirent that is returned by readdir */