Remove cache of current header.
[bertos.git] / bertos / fs / battfs.h
index f53bb9164d82a396f279c36564e75a94c60c7763..d3088847a4a3b3b26c7bcdbae6beee67e0632e1f 100644 (file)
@@ -203,8 +203,8 @@ typedef struct BattFsSuper
         * the entire disk in memory.
         */
        pgcnt_t *page_array;
-       pgcnt_t curr_page;
-       bool cache_dirty;
+       pgcnt_t curr_page;  ///< Current page loaded in disk buffer.
+       bool cache_dirty;   ///< True if current cache is dirty (nneds to be flushed).
 
        /**
         * Lowest address, in page array, for free pages.
@@ -243,6 +243,7 @@ typedef struct BattFs
        BattFsSuper *disk;  ///< Disk context
        filemode_t mode;    ///< File open mode
        pgcnt_t *start;     ///< Pointer to page_array file start position.
+       pgcnt_t max_off;    ///< Max page offset allocated for the file.
 } BattFs;
 
 /**