From d4df768b6efff0da2931396b8b9b28c5174e4d7a Mon Sep 17 00:00:00 2001 From: Sachidananda Date: Sun, 19 Jun 2011 11:07:31 +0000 Subject: Print error message to report missing mount point. Signed-off-by: Sachidananda Urs Signed-off-by: Anand Avati BUG: 3053 (No proper error is shown when the mount point is not present) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3053 --- xlators/mount/fuse/utils/mount.glusterfs.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xlators/mount') diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in index c805a7cd5a6..e429eca1633 100755 --- a/xlators/mount/fuse/utils/mount.glusterfs.in +++ b/xlators/mount/fuse/utils/mount.glusterfs.in @@ -224,7 +224,10 @@ main () } done + # No need to do a ! -d test, it is taken care while initializing the + # variable mount_point [ -z "$mount_point" ] && { + echo "ERROR: Mount point does not exist." usage; exit 0; } -- cgit