[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <03eea80e0188d9cab423cf517659280afd04d7b2.1470745951.git.salah.triki@gmail.com>
Date: Tue, 9 Aug 2016 13:32:55 +0100
From: Salah Triki <salah.triki@...il.com>
To: akpm@...ux-foundation.org, viro@...iv.linux.org.uk,
luisbg@....samsung.com
Cc: linux-kernel@...r.kernel.org, salah.triki@...il.com
Subject: [PATCH 2/3] fs: befs: check flags field to validate the superblock state
flags field records the superblock state, so check if it is equal to
BEFS_DIRTY.
Signed-off-by: Salah Triki <salah.triki@...il.com>
---
fs/befs/super.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/befs/super.c b/fs/befs/super.c
index 5ab75e8..79be409 100644
--- a/fs/befs/super.c
+++ b/fs/befs/super.c
@@ -103,7 +103,7 @@ befs_check_sb(struct super_block *sb)
return BEFS_ERR;
}
- if (befs_sb->log_start != befs_sb->log_end) {
+ if (befs_sb->log_start != befs_sb->log_end || befs_sb->flags == BEFS_DIRTY) {
befs_error(sb, "Filesystem not clean! There are blocks in the "
"journal. You must boot into BeOS and mount this volume "
"to make it clean.");
--
1.9.1
Powered by blists - more mailing lists