summaryrefslogtreecommitdiffstats
path: root/dvm/3557/testcase
blob: 423e71da44597d5090244d96e54a4f0e9321aa52 (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 glustershd_no_gfid ()
{
    $GLUSTERFSDIR/gluster volume create --mode=script $global_bug_id replica 2 $(hostname):$EXPORT_DIR/$global_bug_id/export1 $(hostname):$EXPORT_DIR/$global_bug_id/export2 &>/dev/null;

    touch $EXPORT_DIR/$global_bug_id/export1/{1..10};

    $GLUSTERFSDIR/gluster volume start $global_bug_id &>/dev/null;

    ps aux | grep glusterfs | grep glustershd &>/dev/null;

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

    $GLUSTERFSDIR/gluster volume heal $global_bug_id &>/dev/null;

    ps aux | grep glusterfs | grep glustershd &>/dev/null;

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

_init ; glustershd_no_gfid