summaryrefslogtreecommitdiffstats
path: root/dvm/2095/testcase
blob: a6f2eac7d9cdb41479d99b023a1bb2b4765c1d7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash

function _init ()
{
    source $cwd/regression_helpers;
}

function create_rdma_volume ()
{
    $GLUSTERFSDIR/gluster volume create $global_bug_id transport rdma $(hostname):$EXPORT_DIR/$global_bug_id/export 2>/dev/null 1>/dev/null
    ret=$?;
    return $ret;
}

function main ()
{
    create_rdma_volume;
    op_ret=$?;

    if [ $op_ret -ne  0 ]; then
        exit 22;
    fi

    grep "option transport-type rdma" /etc/glusterd/vols/$global_bug_id/"$global_bug_id"-fuse.vol 2>/dev/null 1>/dev/null;

    op_ret=$?;

    exit $op_ret;
}

_init && main "$@"