From 08041c321229bdfb2cbe1b638fb4fabb0b9da013 Mon Sep 17 00:00:00 2001 From: Kaushal M Date: Mon, 12 Sep 2011 15:14:26 +0530 Subject: protocol/client : prevent client from reconnecting when server authentication fails This prevents the client from trying to reconnect on server authentication failure. Reconnecting on authentcation failure causes hung mounts on unauthorised clients. This patch fixes this problem. Also, mount.glusterfs script unmounts mount-point on mount failure to prevent hung mounts. Change-Id: I5615074d27948077bad491a38cecae1b7f5159fb BUG: 765240 Signed-off-by: Kaushal M Reviewed-on: http://review.gluster.com/398 Tested-by: Gluster Build System Reviewed-by: Amar Tumballi --- xlators/mount/fuse/utils/mount.glusterfs.in | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/mount/fuse/utils') diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in index daf8ba92b..40bf48150 100755 --- a/xlators/mount/fuse/utils/mount.glusterfs.in +++ b/xlators/mount/fuse/utils/mount.glusterfs.in @@ -162,6 +162,7 @@ start_glusterfs () if [ $err -eq "1" ]; then echo "Mount failed. Please check the log file for more details." + umount $mount_point > /dev/null 2>&1; exit 1; fi } -- cgit