summaryrefslogtreecommitdiffstats
path: root/libglusterfs
diff options
context:
space:
mode:
authorPavan Sondur <pavan@gluster.com>2009-10-28 12:27:54 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-10-28 23:00:43 -0700
commitb3b4fc4afb7d206d0a481f3234bf83c768f02aa2 (patch)
tree4e2b94a3395c19cd296c0092e6da3ff9ab9de5c6 /libglusterfs
parent53ff4f0299cf14c6c413d3e49991a6f05f9cda19 (diff)
Implement lookup in locks to return lock count in a dict value.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 306 (Enhance locks to aid debugging) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=306
Diffstat (limited to 'libglusterfs')
-rw-r--r--libglusterfs/src/glusterfs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libglusterfs/src/glusterfs.h b/libglusterfs/src/glusterfs.h
index 9fbbff750ef..f4d587ada4f 100644
--- a/libglusterfs/src/glusterfs.h
+++ b/libglusterfs/src/glusterfs.h
@@ -67,6 +67,9 @@
#define ZR_FILE_CONTENT_STRLEN 15
#define GLUSTERFS_OPEN_FD_COUNT "glusterfs.open-fd-count"
+#define GLUSTERFS_INODELK_COUNT "glusterfs.inodelk-count"
+#define GLUSTERFS_ENTRYLK_COUNT "glusterfs.entrylk-count"
+#define GLUSTERFS_POSIXLK_COUNT "glusterfs.posixlk-count"
#define ZR_FILE_CONTENT_REQUEST(key) (!strncmp(key, ZR_FILE_CONTENT_STR, \
ZR_FILE_CONTENT_STRLEN))