From b764710eaafaa0a04068ba27f73a2ead3a9cb8ba Mon Sep 17 00:00:00 2001 From: tianzy Date: Fri, 25 Jul 2008 09:33:39 +0000 Subject: [PATCH] Branch b1_6 add quota statistics and sort out quota lproc code. b=15058 i=johann i=andrew.perepechko --- lnet/include/libcfs/libcfs.h | 2 +- lnet/libcfs/debug.c | 2 ++ lnet/utils/debug.c | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lnet/include/libcfs/libcfs.h b/lnet/include/libcfs/libcfs.h index 57a7a8d..4ebd531 100644 --- a/lnet/include/libcfs/libcfs.h +++ b/lnet/include/libcfs/libcfs.h @@ -185,7 +185,7 @@ extern unsigned int libcfs_panic_on_lbug; #define S_ECHO 0x00008000 #define S_LDLM 0x00010000 #define S_LOV 0x00020000 -/* unused */ +#define S_LQUOTA 0x00040000 /* unused */ /* unused */ /* unused */ diff --git a/lnet/libcfs/debug.c b/lnet/libcfs/debug.c index f1279cd..96a30c2 100644 --- a/lnet/libcfs/debug.c +++ b/lnet/libcfs/debug.c @@ -166,6 +166,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 7533bfd..d8b6b58 100644 --- a/lnet/utils/debug.c +++ b/lnet/utils/debug.c @@ -85,7 +85,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}; -- 1.8.3.1