summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/store.c
diff options
context:
space:
mode:
authorNiels de Vos <ndevos@redhat.com>2014-12-02 10:54:53 +0100
committerNiels de Vos <ndevos@redhat.com>2015-04-26 01:40:22 -0700
commit331ef6e1a86bfc0a93f8a9dec6ad35c417873849 (patch)
tree647bf493dda38e59a8e268b537b707e65dc45d8d /libglusterfs/src/store.c
parenta675ab96b917fc48fc3d7ca035590ebd7cf102bd (diff)
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 <cyril@peponnet.fr> Signed-off-by: Niels de Vos <ndevos@redhat.com> Reviewed-on: http://review.gluster.org/9223 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: soumya k <skoduri@redhat.com> Reviewed-by: jiffin tony Thottan <jthottan@redhat.com> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Diffstat (limited to 'libglusterfs/src/store.c')
-rw-r--r--libglusterfs/src/store.c2
1 files changed, 1 insertions, 1 deletions
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;