summaryrefslogtreecommitdiffstats
path: root/dvm/2154/testcase
blob: a3f87300591c854ed95ac553cea3526b99d27d46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

source $cwd/regression_helpers

$GLUSTERFSDIR/gluster volume create $global_bug_id $(hostname):$EXPORT_DIR/$global_bug_id/export1 2>/dev/null 1>/dev/null

TOP_DIR=$(dirname $GLUSTERFSDIR);

ls -l /etc/glusterd/.cmd_log_history 2>/dev/null 1>/dev/null;
if [ $? -eq 0 ]; then
   ret=22;
else
        ls -l $TOP_DIR/var/log/glusterfs/.cmd_log_history 2>/dev/null 1>/dev/null;
        if [ $? -eq 0 ]; then
           ret=0;
        else
           ret=22;
        fi
fi

exit $ret;