summaryrefslogtreecommitdiffstats
path: root/sanity/system_light/scripts/fs_mark/fs_mark.sh
blob: 12df22f1020b3c56b6117ce6e6c518a01acb5c9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

function main ()
{

    echo "start: `date +%T`"

    for i in `seq 0 6`
    do
        time fs_mark -d . -D $SUBDIR_COUNT -t $THR_COUNT -S $i 2>>$LOG_FILE 1>>$LOG_FILE
        if [ $? -ne 0 ]; then
            echo "end:`date +%T`";
            return 11;
        fi
    done

    echo "end:`date +%T`";
    return 0;
}

main "$@";