]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: lustre: add debugging ability for LFSCK
authorFan Yong <fan.yong@intel.com>
Wed, 23 Dec 2015 17:32:10 +0000 (12:32 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 22:16:48 +0000 (14:16 -0800)
Add the ability to debug LFSCK to libcfs. This is
broken out of patch http://review.whamcloud.com/6321.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-2914
Reviewed-on: http://review.whamcloud.com/6321
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/include/linux/libcfs/libcfs_debug.h
drivers/staging/lustre/lustre/libcfs/debug.c

index a1787bb43483b113632a7daa833cc5dd6a9b93df..98430e7108c17699563ef5bf7a70748ba0dadd2b 100644 (file)
@@ -106,7 +106,7 @@ struct ptldebug_header {
 #define S_LOV          0x00020000
 #define S_LQUOTA       0x00040000
 #define S_OSD          0x00080000
-/* unused */
+#define S_LFSCK                0x00100000
 /* unused */
 /* unused */
 #define S_LMV          0x00800000 /* b_new_cmd */
index 0b38dad135465eaff467bc03d166fc7dfa7c961d..6274558421a87fe0666cfa3138ae31e3e42c76a0 100644 (file)
@@ -271,6 +271,8 @@ libcfs_debug_subsys2str(int subsys)
                return "lquota";
        case S_OSD:
                return "osd";
+       case S_LFSCK:
+               return "lfsck";
        case S_LMV:
                return "lmv";
        case S_SEC: