From a4f84d786b596387aa0d659fb5cc8a933c95c01b Mon Sep 17 00:00:00 2001 From: Kaleb S KEITHLEY Date: Tue, 15 Mar 2016 06:16:31 -0400 Subject: glusterd: default value of nfs.disable, change from false to true Next step in eventual deprecation of glusterfs nfs server in favor of ganesha.nfsd. Also replace several open-coded strings with constant. Change-Id: If52f5e880191a14fd38e69b70a32b0300dd93a50 BUG: 1092414 Signed-off-by: Kaleb S KEITHLEY Reviewed-on: http://review.gluster.org/13738 NetBSD-regression: NetBSD Build System Smoke: Gluster Build System CentOS-regression: Gluster Build System Reviewed-by: Atin Mukherjee Tested-by: Atin Mukherjee Reviewed-by: Niels de Vos --- tests/basic/mount-nfs-auth.t | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'tests/basic/mount-nfs-auth.t') diff --git a/tests/basic/mount-nfs-auth.t b/tests/basic/mount-nfs-auth.t index 6ecac5b469a..9df5cb45c3b 100755 --- a/tests/basic/mount-nfs-auth.t +++ b/tests/basic/mount-nfs-auth.t @@ -132,9 +132,16 @@ function stat_nfs () { # Restarts the NFS server function restart_nfs () { - # disabling nfs acces for a volume requires a restart - $CLI volume set patchy nfs.disable true - $CLI volume reset patchy nfs.disable + local NFS_PID=$(cat ${GLUSTERD_WORKDIR}/nfs/run/nfs.pid) + + # kill the NFS-server if it is running + while ps -q ${NFS_PID} 2>&1 > /dev/null; do + kill ${NFS_PID} + sleep 0.5 + done + + # start-force starts the NFS-server again + $CLI vol start patchy force } setup_cluster -- cgit