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

function main ()
{
    echo "start:`date +%T`"
    time dd if=/dev/zero of=$PWD/$OF bs=$BS_SIZE count=$DD_CNT 2>>$LOG_FILE #copies specified amount of data from the input file to the output file


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

}

main "$@";