summaryrefslogtreecommitdiffstats
path: root/xlators/nfs/server/src/nfs.h
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2012-02-14 14:48:43 +0530
committerAnand Avati <avati@redhat.com>2012-02-14 02:58:15 -0800
commitcd3ad588f206a902027e6045e15c55380f33998d (patch)
tree84b3e56c9b801b953b495483bce221a6fb25ad87 /xlators/nfs/server/src/nfs.h
parentfa580e9299e09562c395bd464f3a1cf8a1116d6e (diff)
nfs/server: Add counters for hard resolutionv3.2.6qa3
Change-Id: Id7b26731b750b63d645222dde18cd9fe4ed54018 BUG: 785314 Signed-off-by: Vijay Bellur <vijay@gluster.com> Reviewed-on: http://review.gluster.com/2745 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/nfs/server/src/nfs.h')
-rw-r--r--xlators/nfs/server/src/nfs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/xlators/nfs/server/src/nfs.h b/xlators/nfs/server/src/nfs.h
index ed91b79bb42..a015cb6cac5 100644
--- a/xlators/nfs/server/src/nfs.h
+++ b/xlators/nfs/server/src/nfs.h
@@ -58,6 +58,12 @@ struct nfs_initer_list {
rpcsvc_program_t *program;
};
+typedef struct nfs_hard_res_stats {
+ int64_t ino_cnt;
+ int64_t entry_cnt;
+ int64_t intvl_ino_cnt;
+ int64_t intvl_entry_cnt;
+} nfs_hard_res_stats_t;
struct nfs_state {
rpcsvc_t *rpcsvc;
@@ -74,6 +80,8 @@ struct nfs_state {
int dynamicvolumes;
int enable_ino32;
unsigned int override_portnum;
+ gf_lock_t lock;
+ nfs_hard_res_stats_t res_stat;
};
#define gf_nfs_dvm_on(nfsstt) (((struct nfs_state *)nfsstt)->dynamicvolumes == GF_NFS_DVM_ON)