[Ocfs2-test-devel] [PATCH 1/9] single_run: Add single_run-WIP
Sunil Mushran
sunil.mushran at oracle.com
Tue Sep 8 17:52:37 PDT 2009
tristan.ye wrote:
>> +get_bits()
>> +{
>> + if [ "$#" -lt "1" ]; then
>> + ${ECHO} "Error in get_bits()"
>> + exit 1
>> + fi
>> +
>> + val=$1
>> +
>> + for i in `${SEQ} 1 31`
>> + do
>> + if [ $[2 ** $i] -eq ${val} ]; then
>> + return $i
>> + fi
>> + done
>> +
> ${ECHO} "${1} is not the power of 2 or too big to get its
> bits"
Not sure I understand.
>
>> +
>> + cd ${logdir}
>> + ${WGET} ${dwnld_path}/${kernel_tarball_check}
>
> can redirect the sterror and stdout to logfile here.
Done.
More information about the Ocfs2-test-devel
mailing list