[BACK]Return to smallq.dat CVS log [TXT][DIR] Up to [Development] / xfs-cmds / xfstests / dmapi / src / suite2 / data

File: [Development] / xfs-cmds / xfstests / dmapi / src / suite2 / data / smallq.dat (download)

Revision 1.5, Wed Nov 9 02:50:19 2005 UTC (11 years, 11 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -29 lines

Update copyright annotations and license boilerplates to correspond with SGI Legals preferences.
Merge of master-melb:xfs-cmds:24329a by kenmcd.

//
// Copyright (c) 2000-2001 Silicon Graphics, Inc.  All Rights Reserved.
//
// This test will use the following files:
//
ctf stf ls_to_copy ctest.c
fcntl open_test truncate rd wf mmap_cp
read_invis write_invis
set_region set_return_on_destroy 
--------------------------------------------
// These setup commands are run before the daemon starts.
// They reset the file structure of the test directory
// to a known state.
//
rm $real_dir/???
$1/ctf $1 $real_dir
$1/stf $1 $real_dir/l??
rm $real_dir/ctest.c
cp $1/ctest.c $real_dir
chown $lname $real_dir/l??
chown $lname $real_dir/ctest.c
$1/set_return_on_destroy $real_dir test
print 
print "Please resize your DMAPI event queue to hold about 2 to 10 events."
--------------------------------------------
@@ Slow i/o test:  Do 10 open_tests
@@
run_without_test
$1/open_test $2/ls0 o_rdwr &
$1/open_test $2/ls0 o_rdwr &
$1/open_test $2/ls0 o_rdwr &
$1/open_test $2/ls0 o_rdwr &
$1/open_test $2/ls0 o_rdwr &
$1/open_test $2/ls0 o_rdwr &
$1/open_test $2/ls0 o_rdwr &
$1/open_test $2/ls0 o_rdwr &
$1/open_test $2/ls0 o_rdwr &
$1/open_test $2/ls0 o_rdwr &
--------------------------------------------
@@ Slow i/o test:  Append ten bytes to ls1
@@
run_without_test
echo J >> $2/ls1 &
echo a >> $2/ls1 &
echo y >> $2/ls1 &
echo w >> $2/ls1 &
echo a >> $2/ls1 &
echo s >> $2/ls1 &
echo h >> $2/ls1 &
echo e >> $2/ls1 &
echo r >> $2/ls1 &
echo e >> $2/ls1 &
--------------------------------------------
@@ Slow i/o test:  Do one more, then stand back and wait!
@@ 
$1/open_test $2/ls0 o_rdwr 
event_count 21
event[0] read
event[1] read
event[2] read
event[3] read
event[4] read
event[5] read
event[6] read
event[7] read
event[8] read
event[9] read
event[10] write
event[11] write
event[12] write
event[13] write
event[14] write
event[15] write
event[16] write
event[17] write
event[18] write
event[19] write
event[20] read