ROMFS fixes discovered during testing

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@908 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2008-09-11 21:51:41 +00:00
parent 98a5e744bc
commit 76420d3dc0
4 changed files with 64 additions and 17 deletions
+2 -2
View File
@@ -153,8 +153,7 @@ struct romfs_file_s
{
struct romfs_file_s *rf_next; /* Retained in a singly linked list */
boolean rf_open; /* TRUE: The file is (still) open */
uint32 rf_diroffset; /* Offset to the parent directory entry */
uint32 rf_startoffset; /* Offset to the start of the file */
uint32 rf_startoffset; /* Offset to the start of the file data */
uint32 rf_size; /* Size of the file in bytes */
uint32 rf_cachesector; /* Current sector in the rf_buffer */
ubyte *rf_buffer; /* File sector buffer */
@@ -213,6 +212,7 @@ EXTERN int romfs_parsedirentry(struct romfs_mountpt_s *rm,
uint32 *pinfo, uint32 *psize);
EXTERN int romfs_parsefilename(struct romfs_mountpt_s *rm, uint32 offset,
char *pname);
EXTERN uint32 romfs_datastart(struct romfs_mountpt_s *rm, uint32 offset);
#undef EXTERN
#if defined(__cplusplus)