From 6ea4558f9b373b588162e5d3523bc65fcf669b06 Mon Sep 17 00:00:00 2001 From: Salah Triki Date: Tue, 9 Aug 2016 14:46:04 +0100 Subject: befs: add flags field to validate superblock state For validating superblock state, add flags field to befs_sb_info, read the state from the disk and check if it is equal to BEFS_DIRTY. Signed-off-by: Salah Triki Signed-off-by: Luis de Bethencourt --- fs/befs/befs.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'fs/befs/befs.h') diff --git a/fs/befs/befs.h b/fs/befs/befs.h index a8ca7fcf0795..af8ea961e88f 100644 --- a/fs/befs/befs.h +++ b/fs/befs/befs.h @@ -43,6 +43,9 @@ struct befs_sb_info { u32 ag_shift; u32 num_ags; + /* State of the superblock */ + u32 flags; + /* jornal log entry */ befs_block_run log_blocks; befs_off_t log_start; -- cgit v1.2.1