diff options
| -rw-r--r-- | fs/befs/super.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/befs/super.c b/fs/befs/super.c index dc13df8de3e8..c36745d2b45f 100644 --- a/fs/befs/super.c +++ b/fs/befs/super.c | |||
| @@ -103,6 +103,13 @@ befs_check_sb(struct super_block *sb) | |||
| 103 | return BEFS_ERR; | 103 | return BEFS_ERR; |
| 104 | } | 104 | } |
| 105 | 105 | ||
| 106 | |||
| 107 | /* ag_shift also encodes the same information as blocks_per_ag in a | ||
| 108 | * different way, non-fatal consistency check | ||
| 109 | */ | ||
| 110 | if ((1 << befs_sb->ag_shift) != befs_sb->blocks_per_ag) | ||
| 111 | befs_error(sb, "ag_shift disagrees with blocks_per_ag."); | ||
| 112 | |||
| 106 | if (befs_sb->log_start != befs_sb->log_end || befs_sb->flags == BEFS_DIRTY) { | 113 | if (befs_sb->log_start != befs_sb->log_end || befs_sb->flags == BEFS_DIRTY) { |
| 107 | befs_error(sb, "Filesystem not clean! There are blocks in the " | 114 | befs_error(sb, "Filesystem not clean! There are blocks in the " |
| 108 | "journal. You must boot into BeOS and mount this volume " | 115 | "journal. You must boot into BeOS and mount this volume " |
