summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorSachidananda <sac@gluster.com>2011-06-19 11:07:31 +0000
committerAnand Avati <avati@gluster.com>2011-06-19 21:31:33 -0700
commitd4df768b6efff0da2931396b8b9b28c5174e4d7a (patch)
treee0dc82f89ddb6e8a36e9b26754957df8b6d3b80e /xlators
parent58cf35b353f5a9fedfddd6da2f5811c58f1be3cc (diff)
Print error message to report missing mount point.
Signed-off-by: Sachidananda Urs <sac@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> 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
Diffstat (limited to 'xlators')
-rwxr-xr-xxlators/mount/fuse/utils/mount.glusterfs.in3
1 files changed, 3 insertions, 0 deletions
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;
}