2 // Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved.
4 // This test will use the following files:
6 ctf stf ls_to_copy ctest.c
7 fcntl open_test truncate rd wf
9 set_region set_return_on_destroy
10 --------------------------------------------
11 // These setup commands are run before the daemon starts.
12 // They reset the file structure of the test directory
18 $1/stf $1 $real_dir/l??
19 cp $1/ctest.c $real_dir
20 chown $lname $real_dir/l??
21 chown $lname $real_dir/ctest.c
22 $1/set_return_on_destroy $real_dir test
23 --------------------------------------------
24 @@ Aborted events testing (1 of 7):
25 @@ Read ls0 successfully.
27 $1/open_test $2/ls0 o_rdwr
30 --------------------------------------------
31 @@ Aborted events testing (2 of 7):
32 @@ Set the daemon to halt events with DM_RESP_ABORT
36 $1/send_msg unfriendly_17
39 msg_str[0] unfriendly_17
40 --------------------------------------------
41 @@ Aborted events testing (3 of 7):
42 @@ Try to read ls0. this should fail with EEXIST.
44 $1/open_test $2/ls0 o_rdwr
48 --------------------------------------------
49 @@ Aborted events testing (4 of 7):
50 @@ Try to read ls1. This should fail with EEXIST.
52 $1/open_test $2/ls1 o_rdwr o_trunc
56 --------------------------------------------
57 @@ Aborted events testing (5 of 7):
58 @@ Reset the daemon to respond with DM_RESP_CONTINUE.
65 --------------------------------------------
66 @@ Aborted events testing (6 of 7):
67 @@ Again, try to read ls0. This should succeed.
69 $1/open_test $2/ls0 o_rdwr
72 --------------------------------------------
73 @@ Aborted events testing (7 of 7):
74 @@ Again, try to read ls1. This time,
77 $1/open_test $2/ls1 o_rdwr o_trunc
81 --------------------------------------------
85 $1/send_msg dmapi-test-foo-abc123
88 msg_str[0] dmapi-test-foo-abc123
89 --------------------------------------------
90 @@ Test of invisible i/o (1 of 2): write
93 $1/write_invis -o 64 -l 16 $2/ls0
95 --------------------------------------------
96 @@ Test of invisible i/o (2 of 2): read
99 $1/read_invis -o 64 -l 16 $2/ls0
101 --------------------------------------------
102 @@ Test of direct i/o (1 of 2): write
104 $1/wf -l 327680 -b 32768 -d $2/ls9
116 --------------------------------------------
117 @@ Test of direct i/o (2 of 2): read
119 $1/rd -b 32768 -d $2/ls9