glusterd: skip nfs svc reconfigure if nfs xlator is not installed
With 83abcba, nfs svc is not (re)started or stopped if NFS so file is not installed. However the same check was missing in nfs svc reconfigure which was causing all volume set command to fail. Change-Id: Ie87b5dba44ac59e890cbd60f85944f8e685ad52b BUG: 1326219 Signed-off-by: Atin Mukherjee <amukherj@redhat.com> Reviewed-on: https://review.gluster.org/17149 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Niels de Vos <ndevos@redhat.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Jeff Darcy <jeff@pl.atyp.us>
This commit is contained in:
parent
d7e9dcfad2
commit
316e3300cf
@ -156,6 +156,15 @@ glusterd_nfssvc_reconfigure ()
|
||||
priv = this->private;
|
||||
GF_VALIDATE_OR_GOTO (this->name, priv, out);
|
||||
|
||||
/* not an error, or a (very) soft error at best */
|
||||
if (sys_access (XLATORDIR "/nfs/server.so", R_OK) != 0) {
|
||||
gf_msg (THIS->name, GF_LOG_INFO, 0,
|
||||
GD_MSG_GNFS_XLATOR_NOT_INSTALLED,
|
||||
"nfs/server.so xlator is not installed");
|
||||
ret = 0;
|
||||
goto out;
|
||||
}
|
||||
|
||||
cds_list_for_each_entry (volinfo, &priv->volumes, vol_list) {
|
||||
if (GLUSTERD_STATUS_STARTED == volinfo->status) {
|
||||
vol_started = _gf_true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user