xfs: test fallocate ops when rt extent size is and isn't a power of 2
[xfstests-dev.git] / dmapi / src / suite2 / data / pending.dat
1 //
2 // Copyright (c) 2000-2001 Silicon Graphics, Inc.  All Rights Reserved.
3 //
4 // This test will use the following files:
5 //
6 ctf stf ls_to_copy set_region
7 --------------------------------------------
8 // These setup commands are run before the daemon starts.
9 // They reset the file structure of the test directory
10 // to a known state.
11 //
12 rm $real_dir/???
13 $1/ctf $1 $real_dir
14 $1/stf $1 $real_dir/l??
15 chown $lname $real_dir/l??
16 --------------------------------------------
17 @@ Pending test (1 of 5):
18 @@
19 // Run "pending" for the next 3 events,
20 // so that a non-blocking open_test
21 // will see EAGAIN three times before
22 // it can finish.
23 //
24 run_as_root
25 $1/send_msg pending_3
26 event_count 1
27 event[0] user
28 msg_str[0] pending_3
29 --------------------------------------------
30 @@ Pending test (2 of 5):
31 @@    (should fail)
32 @@
33 $1/open_test $2/ls1 o_rdwr o_nonblock
34 event_count 1
35 event[0] pending
36 tries_left[0] 2
37 failure
38 --------------------------------------------
39 @@ Pending test (3 of 5):
40 @@    (should fail)
41 @@
42 $1/open_test $2/ls1 o_rdwr o_ndelay
43 event_count 1
44 event[0] pending
45 tries_left[0] 1
46 failure
47 --------------------------------------------
48 @@ Pending test (4 of 5):
49 @@    (should fail)
50 @@
51 $1/open_test $2/ls1 o_rdwr o_nonblock o_ndelay
52 event_count 1
53 event[0] pending
54 tries_left[0] 0
55 failure
56 --------------------------------------------
57 @@ Pending test (5 of 5):
58 @@    (should succeed)
59 @@
60 $1/open_test $2/ls1 o_rdwr o_nonblock
61 event_count 1
62 event[0] read