diff options
author | Sachidananda <sac@gluster.com> | 2011-06-19 11:07:31 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-06-19 21:31:33 -0700 |
commit | d4df768b6efff0da2931396b8b9b28c5174e4d7a (patch) | |
tree | e0dc82f89ddb6e8a36e9b26754957df8b6d3b80e /xlators/mount/fuse/utils | |
parent | 58cf35b353f5a9fedfddd6da2f5811c58f1be3cc (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/mount/fuse/utils')
-rwxr-xr-x | xlators/mount/fuse/utils/mount.glusterfs.in | 3 |
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; } |