From 05a5ffe97222ca7c49828f0d762a47e85411ab61 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Thu, 15 May 2014 14:40:16 +0530 Subject: tests: Wait for nfs export to be available Change-Id: I59a5e0cb78f2b670761a65272b8ab1d7bdb3668a BUG: 1092850 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/7773 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- tests/nfs.rc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'tests/nfs.rc') diff --git a/tests/nfs.rc b/tests/nfs.rc index f3abee84280..ed80c1b426b 100644 --- a/tests/nfs.rc +++ b/tests/nfs.rc @@ -8,7 +8,7 @@ # function is_nfs_export_available () { - vol=$1 + local vol=$1 if [ "$vol" == "" ]; then vol=$V0 @@ -18,4 +18,11 @@ function is_nfs_export_available () echo "$exp" } - +function mount_nfs () +{ + local e=$1 + local m=$2 + local opt=$3 + if [ ! -z "$opt" ]; then opt=",$opt"; fi + mount -t nfs -o soft,intr,vers=3"$opt" $e $m +} -- cgit