summaryrefslogtreecommitdiffstats
path: root/sanity/system_light/scripts/fs_mark.sh
blob: 53404c519223f0c6994b5556bfb97d48d2b52ac4 (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 1 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 "$@";