diff options
author | Salah Triki <salah.triki@gmail.com> | 2016-08-09 14:46:04 +0100 |
---|---|---|
committer | Luis de Bethencourt <luisbg@osg.samsung.com> | 2016-10-08 10:01:27 +0100 |
commit | 6ea4558f9b373b588162e5d3523bc65fcf669b06 (patch) | |
tree | 18fe35d58b8a866a664feda907db2e107bb1ef4c /fs/befs/befs.h | |
parent | bb75e66627b28816f472183d5dce0784d5edb87f (diff) | |
download | op-kernel-dev-6ea4558f9b373b588162e5d3523bc65fcf669b06.zip op-kernel-dev-6ea4558f9b373b588162e5d3523bc65fcf669b06.tar.gz |
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 <salah.triki@gmail.com>
Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
Diffstat (limited to 'fs/befs/befs.h')
-rw-r--r-- | fs/befs/befs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/befs/befs.h b/fs/befs/befs.h index a8ca7fc..af8ea96 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; |