Whamcloud - gitweb
e2fsck: use specific CRC and corruption errors in journal recovery
[tools/e2fsprogs.git] / e2fsck / jfs_user.h
index be81f43..f46bb1e 100644 (file)
@@ -181,6 +181,13 @@ extern e2fsck_t e2fsck_global_ctx;  /* Try your very best not to use this! */
 
 #endif /* DEBUGFS */
 
+#ifndef EFSBADCRC
+#define EFSBADCRC      EBADMSG         /* Bad CRC detected */
+#endif
+#ifndef EFSCORRUPTED
+#define EFSCORRUPTED   EUCLEAN         /* Filesystem is corrupted */
+#endif
+
 /* recovery.c */
 extern int     journal_recover    (journal_t *journal);
 extern int     journal_skip_recovery (journal_t *);