summaryrefslogtreecommitdiffstats
path: root/xlators/nfs/server
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2010-11-26 00:45:50 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-12-03 10:03:30 -0800
commitae6e73f4d2a9fba6ccef42d49d70d8bbd7cba84a (patch)
tree860778dab84889365f38f1d14935c557a7a79308 /xlators/nfs/server
parent773c9688bc8d3190eab3797190bd06d7acf275aa (diff)
nfs: Start nfs process even if portmap registration fails
It helps to have the process be listed in ps ax|grep output so that user can get the path to the log from the listed command line and check what the problem is. Signed-off-by: Shehjar Tikoo <shehjart@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 2093 (volumes cannot start when one node in a replicated setup is down) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2093
Diffstat (limited to 'xlators/nfs/server')
-rw-r--r--xlators/nfs/server/src/nfs.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/xlators/nfs/server/src/nfs.c b/xlators/nfs/server/src/nfs.c
index 001df8eeb..3291858ef 100644
--- a/xlators/nfs/server/src/nfs.c
+++ b/xlators/nfs/server/src/nfs.c
@@ -641,15 +641,18 @@ init (xlator_t *this) {
ret = nfs_init_versions (nfs, this);
if (ret == -1) {
- gf_log (GF_NFS, GF_LOG_CRITICAL, "Failed to initialize "
+ gf_log (GF_NFS, GF_LOG_ERROR, "Failed to initialize "
"protocols");
+ /* Do not return an error on this. If we dont return
+ * an error, the process keeps running and it helps
+ * to point out where the log is by doing ps ax|grep gluster.
+ */
+ ret = 0;
goto err;
}
- ret = 0;
+ gf_log (GF_NFS, GF_LOG_INFO, "NFS service started");
err:
- if (ret == 0)
- gf_log (GF_NFS, GF_LOG_INFO, "NFS service started");
return ret;
}