xfs
[Top] [All Lists]

[PATCH, mainline-only] allow enabling CONFIG_XFS_DEBUG

To: xfs@xxxxxxxxxxx
Subject: [PATCH, mainline-only] allow enabling CONFIG_XFS_DEBUG
From: Christoph Hellwig <hch@xxxxxx>
Date: Fri, 8 Feb 2008 07:14:02 +0100
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.3.28i
Back when I first submitted XFS for mainline inclusion we made the
decision that the debug code is far to extensive to be accidentally
enabled by users in mainline.  But then again it's often quite useful
to track problems down and hacking the makefile all the time is rather
annoying.  Given all the debug options with even more overhead like
lockdep or DEBUG_PAGE_ALLOC users (or rather developers) should know
by now what they're doing.


Signed-off-by: Christoph Hellwig <hch@xxxxxx>

Index: linux-2.6/fs/xfs/Kconfig
===================================================================
--- linux-2.6.orig/fs/xfs/Kconfig       2008-02-08 07:08:09.000000000 +0100
+++ linux-2.6/fs/xfs/Kconfig    2008-02-08 07:08:38.000000000 +0100
@@ -76,3 +76,16 @@ config XFS_RT
          See the xfs man page in section 5 for additional information.
 
          If unsure, say N.
+
+config XFS_DEBUG
+       bool "XFS Debugging support (EXPERIMENTAL)"
+       depends on XFS_FS && EXPERIMENTAL
+       help
+         Say Y here to get an XFS build with many debugging features,
+         including ASSERT checks, function wrappers around macros,
+         and extra sanity-checking functions in various code paths.
+
+         Note that the resulting code will be HUGE and SLOW, and probably
+         not useful unless you are debugging a particular problem.
+
+         Say N unless you are an XFS developer, or you play one on TV.


<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH, mainline-only] allow enabling CONFIG_XFS_DEBUG, Christoph Hellwig <=