Use correct inode address.
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 5 Dec 2007 22:37:54 +0000 (22:37 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 5 Dec 2007 22:37:54 +0000 (22:37 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1028 38d2e660-2303-0410-9eaa-f027e97ec537

fs/battfs.c

index d4ee72335d9a5d75968060a84333f66775d97641..e02e14a45ea72000581f705e9f2973261f3793e3 100644 (file)
@@ -142,7 +142,7 @@ bool battfs_init(struct BattFsSuper *disk)
                rotating_init(&cks);
                rotating_update(&hdr, sizeof(BattFsPageHeader) - sizeof(rotating_t), &cks);
                if (cks == hdr.fcs)
-                       filelen_table[page]++;
+                       filelen_table[hdr.inode]++;
                else
                {
                        #warning Finish me!