projects
/
bertos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb6f3e7
)
Pastos.
author
batt
<batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 14 Dec 2007 08:07:04 +0000
(08:07 +0000)
committer
batt
<batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 14 Dec 2007 08:07:04 +0000
(08:07 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1037
38d2e660
-2303-0410-9eaa-
f027e97ec537
fs/battfs.c
patch
|
blob
|
history
diff --git
a/fs/battfs.c
b/fs/battfs.c
index 0a01ee3c9b40e81d6c19c563d99224c74b2026dd..8d02d94f5fcbfacf38ef9fafdaa17e64107c442a 100644
(file)
--- a/
fs/battfs.c
+++ b/
fs/battfs.c
@@
-319,7
+319,7
@@
bool battfs_init(struct BattFsSuper *disk)
{
BattFsPageHeader hdr_old;
- if (!battfs_readHeader(disk,
page
, &hdr_old))
+ if (!battfs_readHeader(disk,
disk->page_array[array_pos]
, &hdr_old))
return false;
#ifdef _DEBUG
@@
-359,7
+359,7
@@
bool battfs_init(struct BattFsSuper *disk)
disk->page_array[array_pos] = new_page;
/* Add free space */
- disk->free_bytes
-= disk->page_size - sizeof(BattFsPageHeader) -
old_fill;
+ disk->free_bytes
+=
old_fill;
/* Shift all array one position to the left, overwriting duplicate page */
array_pos -= hdr.pgoff;