summaryrefslogtreecommitdiff
path: root/include/fat.h
diff options
context:
space:
mode:
authorAKASHI Takahiro <takahiro.akashi@linaro.org>2018-09-11 15:58:58 +0900
committerAlexander Graf <agraf@suse.de>2018-09-23 21:55:29 +0200
commitf23101f9513064efa716a132b114b2c2748b7823 (patch)
tree1e697caeeec9755a86e1894c3cb4f5cf3a49e536 /include/fat.h
parent14d103bb272ef6aa31cd89f3ec9620ff4bd7ed42 (diff)
fs: fat: extend get_fs_info() for write use
get_fs_info() was introduced in major re-work of read operation by Rob. We want to reuse this function in write operation by extending it with additional members in fsdata structure. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/fat.h')
-rw-r--r--include/fat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/fat.h b/include/fat.h
index 09e1423685..a236451add 100644
--- a/include/fat.h
+++ b/include/fat.h
@@ -173,6 +173,8 @@ typedef struct {
int fatbufnum; /* Used by get_fatent, init to -1 */
int rootdir_size; /* Size of root dir for non-FAT32 */
__u32 root_cluster; /* First cluster of root dir for FAT32 */
+ u32 total_sect; /* Number of sectors */
+ int fats; /* Number of FATs */
} fsdata;
static inline u32 clust_to_sect(fsdata *fsdata, u32 clust)