projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lm3s1968: offload Serial structure from the serial prompt process's stack.
[bertos.git]
/
bertos
/
fs
/
battfs.c
diff --git
a/bertos/fs/battfs.c
b/bertos/fs/battfs.c
index 1ea39c5072e14c45f167cca124308441f2c46812..deef25ccb0d53aeb67e44704e0394840e91557c2 100644
(file)
--- a/
bertos/fs/battfs.c
+++ b/
bertos/fs/battfs.c
@@
-32,7
+32,7
@@
*
* \brief BattFS: a filesystem for embedded platforms (implementation).
*
*
* \brief BattFS: a filesystem for embedded platforms (implementation).
*
- * \version $Id
:
$
+ * \version $Id$
*
* \author Francesco Sacchi <batt@develer.com>
*
*
* \author Francesco Sacchi <batt@develer.com>
*
@@
-522,6
+522,9
@@
bool battfs_fsck(struct BattFsSuper *disk)
bool start = true;
bool start = true;
+ /* Uneeded, the first time will be overwritten but useful to silence
+ * the warning for uninitialized value */
+ FSCHECK(readHdr(disk, 0, &prev_hdr));
for (pgcnt_t page = 0; page < disk->page_count; page++)
{
FSCHECK(readHdr(disk, disk->page_array[page], &hdr));
for (pgcnt_t page = 0; page < disk->page_count; page++)
{
FSCHECK(readHdr(disk, disk->page_array[page], &hdr));
@@
-832,7
+835,7
@@
static size_t battfs_read(struct KFile *fd, void *_buf, size_t size)
return total_read;
}
return total_read;
}
- #if _DEBUG
+ #if
def
_DEBUG
BattFsPageHeader hdr;
readHdr(disk, fdb->start[pg_offset], &hdr);
ASSERT(hdr.inode == fdb->inode);
BattFsPageHeader hdr;
readHdr(disk, fdb->start[pg_offset], &hdr);
ASSERT(hdr.inode == fdb->inode);