summaryrefslogtreecommitdiffstats
path: root/xlators/features/locks/src/common.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/common.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/common.h')
-rw-r--r--xlators/features/locks/src/common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/xlators/features/locks/src/common.h b/xlators/features/locks/src/common.h
index cc53482c4..9f9afc1ca 100644
--- a/xlators/features/locks/src/common.h
+++ b/xlators/features/locks/src/common.h
@@ -75,4 +75,10 @@ void entrylk_trace_block (xlator_t *this, call_frame_t *frame, const char *volum
fd_t *fd, loc_t *loc, const char *basename,
entrylk_cmd cmd, entrylk_type type);
+int32_t
+get_inodelk_count (xlator_t *this, inode_t *inode);
+
+int32_t
+get_entrylk_count (xlator_t *this, inode_t *inode);
+
#endif /* __COMMON_H__ */