From 331ef6e1a86bfc0a93f8a9dec6ad35c417873849 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Tue, 2 Dec 2014 10:54:53 +0100 Subject: nfs: make it possible to disable nfs.mount-rmtab When there are many NFS-clients doing very often mount/unmount actions, the updating of the 'rmtab' can become a bottleneck and cause delays. In these situations, the output of 'showmount' may be less important than the responsiveness of the (un)mounting. By setting 'nfs.mount-rmtab' to the value "/-", the cache file is not updated anymore, and the entries are only kept in memory. BUG: 1169317 Change-Id: I40c4d8d754932f86fb2b1b2588843390464c773d Reported-by: Cyril Peponnet Signed-off-by: Niels de Vos Reviewed-on: http://review.gluster.org/9223 Tested-by: Gluster Build System Reviewed-by: soumya k Reviewed-by: jiffin tony Thottan Reviewed-by: Kaleb KEITHLEY --- libglusterfs/src/store.c | 2 +- libglusterfs/src/store.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'libglusterfs/src') diff --git a/libglusterfs/src/store.c b/libglusterfs/src/store.c index 7d9eca54d52..351741f4297 100644 --- a/libglusterfs/src/store.c +++ b/libglusterfs/src/store.c @@ -374,7 +374,7 @@ out: } int32_t -gf_store_handle_new (char *path, gf_store_handle_t **handle) +gf_store_handle_new (const char *path, gf_store_handle_t **handle) { int32_t ret = -1; gf_store_handle_t *shandle = NULL; diff --git a/libglusterfs/src/store.h b/libglusterfs/src/store.h index 1ffd97c526f..6b7c98a3547 100644 --- a/libglusterfs/src/store.h +++ b/libglusterfs/src/store.h @@ -74,7 +74,7 @@ int32_t gf_store_save_value (int fd, char *key, char *value); int32_t -gf_store_handle_new (char *path, gf_store_handle_t **handle); +gf_store_handle_new (const char *path, gf_store_handle_t **handle); int gf_store_handle_retrieve (char *path, gf_store_handle_t **handle); -- cgit