Quote the third argument and pass it to zconf_mount_clients().
Signed-off-by: Yu Jian <yujian@whamcloud.com>
Change-Id: Ia29f2440894a9ec7a38615295ab1cd595d50c66f
Reviewed-on: http://review.whamcloud.com/430
Tested-by: Hudson
Reviewed-by: Chris Gearing <chris@whamcloud.com>
Reviewed-by: Brian J. Murrell <brian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
local num_mntpts=$statahead_NUMMNTPTS
local mntpt_root=$TMP/mntpt/lustre
- mntopts=${MNTOPTSTATAHEAD:-$MOUNTOPT}
+ local mntopts=${MNTOPTSTATAHEAD:-$MOUNTOPT}
echo "Mounting $num_mntpts lustre clients starts on $clients"
trap "cleanup_statahead $clients $mntpt_root $num_mntpts" EXIT ERR
for i in $(seq 0 $num_mntpts); do
- zconf_mount_clients $clients ${mntpt_root}$i $mntopts ||
+ zconf_mount_clients $clients ${mntpt_root}$i "$mntopts" ||
error_exit "Failed to mount lustre on ${mntpt_root}$i on $clients"
done