diff options
Diffstat (limited to 'regression_helpers')
-rw-r--r-- | regression_helpers | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/regression_helpers b/regression_helpers index 6cad82f..3873c86 100644 --- a/regression_helpers +++ b/regression_helpers @@ -80,7 +80,12 @@ start_glusterd () mount_glusterfs () { - local volname=$1; + if [ $# -lt 1 ]; then + echo "Volume name missing. Please provide gluster volume name to 'mount_glusterfs'" + exit 1 + else + local volname=$1; + fi $GLUSTERFSDIR/glusterfs --volfile-server=$(hostname) --volfile-id=$volname $FUSE_MOUNT; sleep 5; @@ -88,7 +93,12 @@ mount_glusterfs () mount_glusterfs_with_acl () { - local volname=$1; + if [ $# -lt 1 ]; then + echo "Volume name missing. Please provide gluster volume name to 'mount_glusterfs_with_acl'" + exit 1 + else + local volname=$1; + fi $GLUSTERFSDIR/glusterfs --acl --volfile-server=$(hostname) --volfile-id=$volname $FUSE_MOUNT; sleep 5; @@ -97,10 +107,16 @@ mount_glusterfs_with_acl () mount_nfs () { - local volname=$1; + if [ $# -lt 1 ]; then + echo "Volume name missing. Please provide gluster volume name to 'mount_nfs'" + exit 1 + else + local volname=$1; + fi + opts="-t nfs -o nolock,vers=3"; + mount $opts $(hostname):$volname $NFS_MOUNT; sleep 5; - mount $(hostname):$volname $NFS_MOUNT; } run_testcase () |