X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Ffs%2Fbattfs.h;h=d3088847a4a3b3b26c7bcdbae6beee67e0632e1f;hb=661b0df2a780f14694463915ae6103e58a69cd12;hp=f53bb9164d82a396f279c36564e75a94c60c7763;hpb=b6879dd52657a5cfb5b4f54a0b5c6280b3904a94;p=bertos.git diff --git a/bertos/fs/battfs.h b/bertos/fs/battfs.h index f53bb916..d3088847 100644 --- a/bertos/fs/battfs.h +++ b/bertos/fs/battfs.h @@ -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; /**