• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# This is the test script for the inode relocation table.
3#
4# Copyright 1997 by Theodore Ts'o.  This file may be redistributed
5# under the terms of the GNU Public License.
6#
7#
8irel_dump
9irel_put 2 11 3
10irel_put 1 10 2
11irel_put 3 9 1
12irel_add_ref 1 4 128
13irel_add_ref 1 5 64
14#
15# Check to see what happens if we add too many references
16#
17irel_add_ref 1 6 512
18#
19# Try resizing the number of references and retry the add
20#
21irel_put 1 8 3
22irel_add_ref 1 6 512
23#
24irel_add_ref 2 4 64
25#
26# Test boundary cases of irel_put
27#
28irel_put 23 12 1
29irel_put 24 13 1
30#
31# Test other boundary cases....
32#
33irel_get 24
34irel_delete 24
35#
36# Test retrivals
37#
38irel_get 3
39irel_get 1
40#
41# Test the iterator functions
42#
43irel_start_iter
44irel_next
45irel_next
46irel_next
47irel_next
48#
49# Now try the delete function, on existing and non-existent entries
50#
51irel_delete 2
52irel_delete 2
53irel_delete 4
54#
55# Move tests...
56#
57irel_move 1 2
58irel_dump
59irel_delete 4
60irel_move 1 4
61irel_move 2 4
62#
63# Get by orig tests
64#
65irel_dump
66irel_get_by_orig 3
67irel_get_by_orig 1
68irel_get_by_orig 5
69irel_get_by_orig 2
70