summaryrefslogtreecommitdiffstats
path: root/xlators/mount/fuse/utils
diff options
context:
space:
mode:
authorHarshavardhana Ranganath <harsha@gluster.com>2009-08-11 13:21:11 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-09-23 06:27:17 -0700
commit7df1671b5af320f2c5aaeadfccda2e64d2ff404e (patch)
treedb2a4b847f7b2a69aeba62cdb72e5f3a3a7c8444 /xlators/mount/fuse/utils
parent044679501c13024950751cbebe8fd47cc73e8bf9 (diff)
mount.glusterfs had a problem understanding when "volfile" was given as one of the mount arguments.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 204 (mount.glusterfs mounts to incorrect mount point) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=204
Diffstat (limited to 'xlators/mount/fuse/utils')
-rwxr-xr-xxlators/mount/fuse/utils/mount.glusterfs.in11
1 files changed, 6 insertions, 5 deletions
diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in
index 19418191a3b..6f9aaaa6991 100755
--- a/xlators/mount/fuse/utils/mount.glusterfs.in
+++ b/xlators/mount/fuse/utils/mount.glusterfs.in
@@ -207,11 +207,12 @@ main ()
exit 0;
}
- mount_provided=$(echo "$@" | cut -f2 -d'/');
-
- [ -n "$mount_provided" ] && {
- mount_point="/$mount_provided";
- }
+ mount_point=""
+ for arg in "$@"; do
+ [ -d "$arg" ] && {
+ mount_point=$arg
+ }
+ done
[ -z "$mount_point" ] && {
usage;