Whamcloud - gitweb
LU-836 ldiskfs: require ldiskfs filesystem has journal
[fs/lustre-release.git] / lustre / lvfs / fsfilt_ext3.c
index 209f433..454bd3e 100644 (file)
@@ -1450,6 +1450,12 @@ static int fsfilt_ext3_setup(struct super_block *sb)
         sbi->dx_unlock = fsfilt_ext3_dx_unlock;
 #endif
 #endif
+        if (!EXT3_HAS_COMPAT_FEATURE(sb,
+                                EXT3_FEATURE_COMPAT_HAS_JOURNAL)) {
+                CERROR("ext3 mounted without journal\n");
+                return -EINVAL;
+        }
+
 #ifdef S_PDIROPS
         CWARN("Enabling PDIROPS\n");
         set_opt(sbi->s_mount_opt, PDIROPS);