debugging to be 0, and allow the user to set the level of
journal debugging by using the E2FSCK_JBD_DEBUG
environment variable.
2002-11-08 <tytso@snap.thunk.org>
+ * unix.c (PRS), journal.c: Set the default level of journal
+ debugging to be 0, and allow the user to set the level of
+ journal debugging by using the E2FSCK_JBD_DEBUG
+ environment variable.
+
* pass1.c (new_table_block), super.c (check_super_block), swapfs.c
(swap_filesys): Clear EXT2_FLAG_MASTER_SB_ONLY to make
sure the backup superblocks and group descriptors are
#ifdef CONFIG_JBD_DEBUG /* Enabled by configure --enable-jfs-debug */
static int bh_count = 0;
-int journal_enable_debug = 2;
#endif
/*
e2fsck_t e2fsck_global_ctx; /* Try your very best not to use this! */
+#ifdef CONFIG_JBD_DEBUG /* Enabled by configure --enable-jfs-debug */
+int journal_enable_debug = -1;
+#endif
+
static void usage(e2fsck_t ctx)
{
fprintf(stderr,
} else
putenv (PATH_SET);
}
+#ifdef CONFIG_JBD_DEBUG
+ if (getenv("E2FSCK_JBD_DEBUG"))
+ journal_enable_debug = atoi(getenv("E2FSCK_JBD_DEBUG"));
+#endif
return 0;
}