Put badblocks.out in a tmpfs to save space in USB drive storage
This commit is contained in:
parent
eb0647afd3
commit
7d97faacad
3 changed files with 7 additions and 7 deletions
|
@ -12,12 +12,12 @@ WAIT=25
|
|||
echo -n "Waiting $WAIT seconds for tests to start"
|
||||
while [[ $WAIT -gt 0 ]] ; do
|
||||
sleep 1
|
||||
WAIT=$(( WAIT -1 ))
|
||||
if [[ $(( WAIT % 5 )) == 0 ]] ; then
|
||||
echo -n $WAIT
|
||||
else
|
||||
echo -n '.'
|
||||
fi
|
||||
WAIT=$(( WAIT -1 ))
|
||||
done
|
||||
echo
|
||||
#exec < /dev/tty3 > /dev/tty3
|
||||
|
|
|
@ -12,7 +12,7 @@ while [[ $RUNNING == 0 ]] ; do
|
|||
fi
|
||||
done
|
||||
sleep 5
|
||||
tail -Fq $OUTPUT_DIR/disk/*.out &
|
||||
tail -Fq run/*.badblocks.out &
|
||||
|
||||
TAIL_PID=`jobs -p %+`
|
||||
|
||||
|
|
|
@ -82,7 +82,7 @@ if [[ -z $ERROR ]] ; then
|
|||
badblocks -b $BLK_SIZE -c $CONCU -e 1 -t $TPATTERN \
|
||||
-o $OUTPUT_DIR/disk/$SERIAL.badblocks \
|
||||
-svw /dev/$DISK $LST_BLCK \
|
||||
2> $OUTPUT_DIR/disk/$SERIAL.badblocks.out &
|
||||
2> /run/$SERIAL.badblocks.out &
|
||||
TEST_PID=`jobs -p %+`
|
||||
echo $TEST_PID > /run/$SERIAL.badblocks.pid
|
||||
while [[ -d /proc/$TEST_PID ]] ; do
|
||||
|
@ -139,10 +139,10 @@ if [[ -f $OUTPUT_DIR/disk/$SERIAL.badblocks ]] ; then
|
|||
ln -sf $OUTPUT_DIR/disk/$SERIAL.badblocks \
|
||||
$OUTPUT_DIR/disk/$DISK.badblocks
|
||||
fi
|
||||
if [[ -f $OUTPUT_DIR/disk/$SERIAL.badblocks.out ]] ; then
|
||||
ln -sf $OUTPUT_DIR/disk/$SERIAL.badblocks.out \
|
||||
$OUTPUT_DIR/disk/$DISK.badblocks.out
|
||||
fi
|
||||
#if [[ -f $OUTPUT_DIR/disk/$SERIAL.badblocks.out ]] ; then
|
||||
# ln -sf $OUTPUT_DIR/disk/$SERIAL.badblocks.out \
|
||||
# $OUTPUT_DIR/disk/$DISK.badblocks.out
|
||||
#fi
|
||||
#ln -sf $OUTPUT_DIR/disk/$SERIAL.badblocks.ret \
|
||||
# $OUTPUT_DIR/disk/$DISK.badblocks.ret
|
||||
ln -sf $OUTPUT_DIR/disk/$SERIAL.badblocks.result \
|
||||
|
|
Loading…
Reference in a new issue