2 # Copyright (C) 1997 Theodore Ts'o. This file may be redistributed
3 # under the terms of the GNU Public License.
5 command_table test_cmds;
8 # Block relocation table commands
11 request do_brel_ma_create, "Open a memory array block relocation table",
12 brel_ma_create, bma_create;
14 request do_brel_free, "Free a block relocation table",
17 request do_brel_put, "Add or modify a block relocation entry",
20 request do_brel_get, "Get a block relocation entry",
23 request do_brel_start_iter, "Start iterating over the block table",
24 brel_start_iter, bstart;
26 request do_brel_next, "Get the next block relocation entry",
29 request do_brel_dump, "Dump the block relocation table",
32 request do_brel_move, "Move an entry in the block relocation table",
35 request do_brel_delete, "Delete an entry in the block relocation table",
36 brel_delete, bdelete, bdel;
39 # Inode relocation table commands
42 request do_irel_ma_create, "Open a memory array inode relocation table",
43 irel_ma_create, ima_create;
45 request do_irel_free, "Free an inode relocation table",
48 request do_irel_put, "Add or modify an inode relocation entry",
51 request do_irel_get, "Get an inode relocation entry",
54 request do_irel_get_by_orig,
55 "Get an inode relocation entry by its original number",
56 irel_get_by_orig, igetorig, igeto;
58 request do_irel_start_iter, "Start iterating over the inode table",
59 irel_start_iter, istart;
61 request do_irel_next, "Get the next block relocation entry",
64 request do_irel_dump, "Dump the inode relocation table",
67 request do_irel_add_ref, "Add a reference to an inode entry",
68 irel_add_ref, iaddref, iaddr;
70 request do_irel_start_iter_ref, "Start iterating over references to an inode",
71 irel_start_iter_ref, istartref, istartr;
73 request do_irel_next_ref, "Get the next reference for an inode entry",
74 irel_next_ref, inextref, inextr;
76 request do_irel_move, "Move an entry in the inode relocation table",
79 request do_irel_delete, "Delete an entry in the inode relocation table",
80 irel_delete, idelete, idel;