summaryrefslogtreecommitdiffstats
path: root/dvm/3630/testcase
blob: 978dec8ee8ff11d83a1e5c14c3e4a9bcfc636c75 (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
32
33
34
35
36
#!/bin/bash

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

function add_brick ()
{
    $GLUSTERFSDIR/gluster volume create $global_bug_id $(hostname):$EXPORT_DIR/$global_bug_id/export1 $(hostname):$EXPORT_DIR/$global_bug_id/export2 2>/dev/null 1>/dev/null;

    if [ $? -ne 0 ]; then
        return 1;
    fi

    $GLUSTERFSDIR/gluster volume add-brick $global_bug_id $(hostname):$EXPORT_DIR/$global_bug_id/export3 2>/dev/null 1>/dev/null;

    if [ $? -ne 0 ]; then
        return 1;
    else
        return 0;
    fi
}

function main ()
{
    local ret;

    add_brick;

    ret=$?;

    exit $ret;
}

_init && main "$@"