diff options
author | Rajesh Amaravathi <rajesh@redhat.com> | 2012-05-23 14:08:37 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2012-07-16 02:24:54 -0700 |
commit | c0a5348af37c634cc61fa72251e029a3a0301eca (patch) | |
tree | cc96a004d7be9db41892f5d3d31940c184d91604 /xlators/nfs/server/src/nfs.c | |
parent | 1e1a162fa7ea5b6275a0212273ca96b4de410c00 (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/3492
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Pranith Kumar Karampuri <pranithk@gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/nfs/server/src/nfs.c')
-rw-r--r-- | xlators/nfs/server/src/nfs.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/xlators/nfs/server/src/nfs.c b/xlators/nfs/server/src/nfs.c index 6e9a274d980..6ed3614296f 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, }; |