summaryrefslogtreecommitdiffstats
path: root/tests/progs/test_rel_cmds.ct
blob: 5ed6ae21f47a7636b86baa47d7e6e9bbb3bdb5b9 (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
70
71
72
73
74
75
76
77
78
79
80
81
82
#
# Copyright (C) 1997 Theodore Ts'o.  This file may be redistributed
# under the terms of the GNU Public License.
#
command_table test_cmds;

#
# Block relocation table commands
#

request do_brel_ma_create, "Open a memory array block relocation table",
	brel_ma_create, bma_create;

request do_brel_free, "Free a block relocation table",
	brel_free, bfree;

request do_brel_put, "Add or modify a block relocation entry",
	brel_put, bput;

request do_brel_get, "Get a block relocation entry",
	brel_get, bget;

request do_brel_start_iter, "Start iterating over the block table",
	brel_start_iter, bstart;

request do_brel_next, "Get the next block relocation entry",
	brel_next, bnext;

request do_brel_dump, "Dump the block relocation table",
	brel_dump, bdump;

request do_brel_move, "Move an entry in the block relocation table",
	brel_move, bmove;

request do_brel_delete, "Delete an entry in the block relocation table",
	brel_delete, bdelete, bdel;

#
# Inode relocation table commands
#

request do_irel_ma_create, "Open a memory array inode relocation table",
	irel_ma_create, ima_create;

request do_irel_free, "Free an inode relocation table",
	irel_free, ifree;

request do_irel_put, "Add or modify an inode relocation entry",
	irel_put, iput;

request do_irel_get, "Get an inode relocation entry",
	irel_get, iget;

request do_irel_get_by_orig, 
	"Get an inode relocation entry by its original number",
	irel_get_by_orig, igetorig, igeto;

request do_irel_start_iter, "Start iterating over the inode table",
	irel_start_iter, istart;

request do_irel_next, "Get the next block relocation entry",
	irel_next, inext;

request do_irel_dump, "Dump the inode relocation table",
	irel_dump, idump;

request do_irel_add_ref, "Add a reference to an inode entry",
	irel_add_ref, iaddref, iaddr;

request do_irel_start_iter_ref, "Start iterating over references to an inode",
	irel_start_iter_ref, istartref, istartr;

request do_irel_next_ref, "Get the next reference for an inode entry",
	irel_next_ref, inextref, inextr;

request do_irel_move, "Move an entry in the inode relocation table", 
	irel_move, imove;

request do_irel_delete, "Delete an entry in the inode relocation table",
	irel_delete, idelete, idel;

end;