glusterfs/tests/nfs.rc
Pranith Kumar K 0a77eb1e45 tests: s/timeout/EXPECT_WITHIN/
Also fixed nfs.rc so that regression build works on my fedora VM

Change-Id: Ife36343bf1a590430e24065b9bcdf5bed3ae546d
BUG: 1092850
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Reviewed-on: http://review.gluster.org/7837
Reviewed-by: Krishnan Parthasarathi <kparthas@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
2014-05-21 19:53:46 -07:00

28 lines
649 B
Bash

#!/bin/bash
# Due to portmap registration NFS takes some time to
# export all volumes. Therefore tests should start only
# after exports are visible by showmount command. This
# routine will check if showmount shows the exports or not
#
function is_nfs_export_available ()
{
local vol=$1
if [ "$vol" == "" ]; then
vol=$V0
fi
exp=$(showmount -e localhost 2> /dev/null | grep $vol | wc -l)
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
}