summaryrefslogtreecommitdiffstats
path: root/xlators/nfs/server/src/nfs.c
diff options
context:
space:
mode:
authorRajesh Amaravathi <rajesh@redhat.com>2012-05-23 14:08:37 +0530
committerAnand Avati <avati@redhat.com>2012-05-28 19:46:52 -0700
commit0418b0861230072f5a7b59fd54536db1b4a20843 (patch)
tree534faee120e795ec77413d5856b732b1bcdf4396 /xlators/nfs/server/src/nfs.c
parent28afac7af6989953e53b35ed7fbb944a45f691a4 (diff)
nfs/nlm: statedump of locks
This change allows statedump of nlm locks giving number of clients, number of locks each client holds and the files on which lock(s) is/are held. Change-Id: I6341c12ec58005ef71b93b316b527e610ff7ee8f BUG: 824804 Signed-off-by: Rajesh Amaravathi <rajesh@redhat.com> Reviewed-on: http://review.gluster.com/3432 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/nfs/server/src/nfs.c')
-rw-r--r--xlators/nfs/server/src/nfs.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/xlators/nfs/server/src/nfs.c b/xlators/nfs/server/src/nfs.c
index 6e9a274d9..6ed361429 100644
--- a/xlators/nfs/server/src/nfs.c
+++ b/xlators/nfs/server/src/nfs.c
@@ -965,6 +965,16 @@ out:
return ret;
}
+extern int32_t
+nlm_priv (xlator_t *this);
+
+int32_t
+nfs_priv (xlator_t *this)
+{
+ return nlm_priv (this);
+}
+
+
struct xlator_cbks cbks = {
.forget = nfs_forget,
};
@@ -972,6 +982,7 @@ struct xlator_cbks cbks = {
struct xlator_fops fops = { };
struct xlator_dumpops dumpops = {
+ .priv = nfs_priv,
.priv_to_dict = nfs_priv_to_dict,
};