summaryrefslogtreecommitdiffstats
path: root/xlators/features/locks/src/locks.h
diff options
context:
space:
mode:
authorPavan Sondur <pavan@gluster.com>2009-10-29 09:31:42 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-10-29 12:02:54 -0700
commitd45e6b9a17a2a40a06d6cffbac97e6568223f143 (patch)
tree01e2b1ebf93ed41d12fee0897bdb4a0f01c26ff6 /xlators/features/locks/src/locks.h
parentb9e3c902bf6eed825ebd6323a5905d64a3153269 (diff)
Implement lookup in posix locks to return lock counts in a dict value.
Signed-off-by: Pavan Vilas Sondur <pavan@gluster.com> 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 'xlators/features/locks/src/locks.h')
-rw-r--r--xlators/features/locks/src/locks.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/xlators/features/locks/src/locks.h b/xlators/features/locks/src/locks.h
index f649dd609..98fa1b3aa 100644
--- a/xlators/features/locks/src/locks.h
+++ b/xlators/features/locks/src/locks.h
@@ -111,5 +111,10 @@ typedef struct {
gf_boolean_t trace; /* trace lock requests in and out */
} posix_locks_private_t;
+typedef struct {
+ gf_boolean_t entrylk_count_req;
+ gf_boolean_t inodelk_count_req;
+ gf_boolean_t posixlk_count_req;
+} pl_local_t;
#endif /* __POSIX_LOCKS_H__ */