following change causes mount point to be incorrect. This is seen when fstab/automount file indicates to read client conf file from a local directory. @@ -175,10 +188,24 @@ function main () -e 's/[,]*volume-id=[^,]*//' \ -e 's/[,]*log-server=[^,]*//' \ -e 's/[,]*log-server-port=[^,]*//'); - # following line is product of love towards sed - # $2=$(echo "$@" | sed -n 's/[^ ]* \([^ ]*\).*/\1/p'); - - mount_point="$2"; + + # + [ -n "$helper" ] && { + cmd_line=$(echo "$cmd_line --$helper"); + exec $cmd_line; + exit 0; + } + + mount_provided=$(echo "$@" | cut -f2 -d'/'); + + [ -n "$mount_provided" ] && { + mount_point="/$mount_provided"; + } + + [ -z "$mount_point" ] && { + usage; + exit 0; + }
PATCH: http://patches.gluster.com/patch/1011 in master (mount.glusterfs had a problem understanding when "volfile" was given as one of the mount arguments.)
:-) done too..