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

function main()
{

    echo "start:`date +%T`"
    time fileop -f $FILEOP_CNT -t  2>>$LOG_FILE 1>>$LOG_FILE


#in this example it creates 2 directories.In each directory 2 subdirectories are created and in each subdirectory 2 files are created.

    if [ $? -ne 0 ]; then
        echo "end:`date +%T`"
        return 11;
    else
        echo "end:`date +%T`"
        return 0;
    fi

}

main "$@";