diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-28 22:24:10 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-28 22:24:10 +0000 |
commit | b3c51499ef3e2befc392865934f9df91ebd6b10a (patch) | |
tree | d8a47afb60305fb15d78abb0341533129a354676 /nuttx/include | |
parent | 7cb2546571c7ac881f4bd0c2c066c974e2174741 (diff) | |
download | px4-nuttx-b3c51499ef3e2befc392865934f9df91ebd6b10a.tar.gz px4-nuttx-b3c51499ef3e2befc392865934f9df91ebd6b10a.tar.bz2 px4-nuttx-b3c51499ef3e2befc392865934f9df91ebd6b10a.zip |
More NXFFS logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3538 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/nuttx/dirent.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/nuttx/include/nuttx/dirent.h b/nuttx/include/nuttx/dirent.h index 27835a4b2..82e0a55c3 100644 --- a/nuttx/include/nuttx/dirent.h +++ b/nuttx/include/nuttx/dirent.h @@ -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 */ |