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

File: [Development] / xfs-cmds / xfstests / dmapi / src / suite2 / data / standard_nfs.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 
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
--------------------------------------------
@@ Standard i/o tests (1 of 26):  open
@@
$1/open_test $2/ls0 o_rdwr
event_count 1
event[0] read
--------------------------------------------
@@ Standard i/o tests (2 of 26):  open/trunc
@@
$1/open_test $2/ls1 o_rdwr o_trunc
event_count 2
event[0] truncate
event[1] attribute
--------------------------------------------
@@ Standard i/o tests (3 of 26):  open/trunc/create
@@
$1/open_test $2/ls2 o_rdwr o_trunc o_creat
event_count 1
event[0] truncate
--------------------------------------------
@@ Standard i/o tests (4 of 26):  open/create
@@
$1/open_test $2/ls3 o_rdwr o_creat
event_count 1
event[0] read
--------------------------------------------
@@ Standard i/o tests (5 of 26):  new file
@@
$1/open_test $2/LS3 o_rdwr o_creat
event_count 2
event[0] create
event[1] postcreate
--------------------------------------------
@@ Standard i/o tests (6 of 26):  append #1
@@
echo j >> $2/ls4
event_count 2
event[0] read
event[1] write
file_handle[0] store_in ls4temp
--------------------------------------------
@@ Standard i/o tests (7 of 26):  append #2
@@
echo j >> $2/ls4
event_count 1
event[0] write
file_handle[0] matches ls4temp
--------------------------------------------
@@ Standard i/o tests (8 of 26):  remove
@@
/bin/rm $2/ls4
event_count 3
event[0] remove
event[1] destroy
event[2] postremove
name[1] test
contents[1] 123456789abcdefghijklmnopqrstuvwxyz
--------------------------------------------
@@ Standard i/o tests (9 of 26):  link
@@
ln $2/ls5 $2/LS5
event_count 2
event[0] link
event[1] postlink
--------------------------------------------
@@ Standard i/o tests (10 of 26):  deleting link
@@
/bin/rm $2/LS5
event_count 2
event[0] remove
event[1] postremove
--------------------------------------------
@@ Standard i/o tests (11 of 26):  return_on_destroy #1
@@
run_without_test
$1/set_return_on_destroy $real_dir
--------------------------------------------
@@ Standard i/o tests (12 of 26):  return_on_destroy #2
@@
/bin/rm $2/ls5
event_count 3
event[0] remove
event[1] destroy
event[2] postremove
name[1] <NONE>
contents[1] <NONE>
--------------------------------------------
@@ Standard i/o tests (13 of 26)
@@
$1/fcntl f_freesp -o 99999 -l 199999 $2/ls6
event_count 2
event[0] truncate
event[1] attribute
--------------------------------------------
@@ Standard i/o tests (14 of 26)
@@
$1/fcntl f_freesp -o 1000 -l 10000 $2/ls6
event_count 2
event[0] truncate
event[1] attribute
--------------------------------------------
@@ Standard i/o tests (15 of 26) truncate #1
@@
$1/truncate $2/ls7 99999
event_count 2
event[0] truncate
event[1] attribute
--------------------------------------------
@@ Standard i/o tests (16 of 26) truncate #2
@@
$1/truncate $2/ls7 1000
event_count 2
event[0] truncate
event[1] attribute
--------------------------------------------
@@ Standard i/o tests (17 of 26) execute
@@
$2/ls8 -l $real_dir
event_count 4
event[0] read
event[1] read
event[2] read
event[3] read
--------------------------------------------
@@ Standard i/o tests (18 of 26) symlink
@@
ln -s $2/junk $2/symlink
event_count 2
event[0] symlink
event[1] postsymlink
--------------------------------------------
@@ Standard i/o tests (19 of 26) deleting symlink
@@
/bin/rm $2/symlink
event_count 3
event[0] remove
event[1] destroy
event[2] postremove
--------------------------------------------
@@ Standard i/o tests (20 of 26) mkdir
@@
mkdir $2/unlikely-named-test-dir
event_count 2
event[0] create
event[1] postcreate
--------------------------------------------
@@ Standard i/o tests (21 of 26) rmdir
@@
rmdir $2/unlikely-named-test-dir
event_count 3
event[0] remove
event[1] destroy
event[2] postremove
--------------------------------------------
@@ Standard i/o tests (22 of 26) rename
@@
mv $2/ls8 $2/LS8
event_count 2
event[0] rename
event[1] postrename
--------------------------------------------
@@ Standard i/o tests (23 of 26) copy (new)
@@
cp $2/ls9 $2/LS9
event_count 8
event[0] create
event[1] postcreate
event[2] attribute
event[3] read
event[4] read
event[5] read
event[6] read
event[7] attribute
--------------------------------------------
@@ Standard i/o tests (24 of 26) copy (onto old)
@@
cp $2/LS9 $2/ls9
event_count 5
event[0] truncate
event[1] write
event[2] write
event[3] write
event[4] write
--------------------------------------------
@@ Standard i/o tests (25 of 26) memory-mapped i/o
@@
// Note to self: don't check event_count
//
cc -o $2/ll0 $2/ctest.c
event[0] truncate
event[1] attribute
event[2] write
--------------------------------------------
@@ Standard i/o tests (26 of 26) executing
@@
$2/ll0
event_count 0