diff options
author | Harshavardhana Ranganath <harsha@gluster.com> | 2009-08-11 13:21:11 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-09-23 06:27:17 -0700 |
commit | 7df1671b5af320f2c5aaeadfccda2e64d2ff404e (patch) | |
tree | db2a4b847f7b2a69aeba62cdb72e5f3a3a7c8444 /xlators/mount | |
parent | 044679501c13024950751cbebe8fd47cc73e8bf9 (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')
-rwxr-xr-x | xlators/mount/fuse/utils/mount.glusterfs.in | 11 |
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; |