From 654e8f531070b1b531fb3ff80a48a0302b2f6756 Mon Sep 17 00:00:00 2001
From: fanyong <fanyong>
Date: Sat, 15 Nov 2008 15:33:22 +0000
Subject: [PATCH] Branch b_head_quota b=13058 i=nikita.danilov i=johann
 i=robert.read

Debug patch for quota on HEAD.
---
 libcfs/include/libcfs/libcfs_debug.h | 2 +-
 libcfs/libcfs/debug.c                | 2 ++
 lnet/utils/debug.c                   | 2 +-
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/libcfs/include/libcfs/libcfs_debug.h b/libcfs/include/libcfs/libcfs_debug.h
index 379bc9c4f8..8487c39ad9 100644
--- a/libcfs/include/libcfs/libcfs_debug.h
+++ b/libcfs/include/libcfs/libcfs_debug.h
@@ -103,7 +103,7 @@ struct ptldebug_header {
 #define S_ECHO        0x00008000
 #define S_LDLM        0x00010000
 #define S_LOV         0x00020000
-/* unused */
+#define S_LQUOTA      0x00040000
 /* unused */
 /* unused */
 /* unused */
diff --git a/libcfs/libcfs/debug.c b/libcfs/libcfs/debug.c
index dd40428822..07287595a5 100644
--- a/libcfs/libcfs/debug.c
+++ b/libcfs/libcfs/debug.c
@@ -162,6 +162,8 @@ libcfs_debug_subsys2str(int subsys)
                 return "ldlm";
         case S_LOV:
                 return "lov";
+        case S_LQUOTA:
+                return "lquota";
         case S_LMV:
                 return "lmv";
         case S_SEC:
diff --git a/lnet/utils/debug.c b/lnet/utils/debug.c
index 2b85a04a4f..801ba95d21 100644
--- a/lnet/utils/debug.c
+++ b/lnet/utils/debug.c
@@ -61,7 +61,7 @@ static const char *libcfs_debug_subsystems[] =
          "ost", "class", "log", "llite",
          "rpc", "mgmt", "lnet", "lnd",
          "pinger", "filter", "", "echo",
-         "ldlm", "lov", "", "",
+         "ldlm", "lov", "lquota", "",
          "", "", "", "lmv",
          "", "sec", "gss", "", 
          "mgc", "mgs", "fid", "fld", NULL};
-- 
GitLab