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