119c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o# 219c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o# Copyright (C) 1997 Theodore Ts'o. This file may be redistributed 319c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o# under the terms of the GNU Public License. 419c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o# 519c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'ocommand_table test_cmds; 619c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o 719c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o# 819c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o# Block relocation table commands 919c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o# 1019c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o 1119c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'orequest do_brel_ma_create, "Open a memory array block relocation table", 1219c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o brel_ma_create, bma_create; 1319c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o 1419c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'orequest do_brel_free, "Free a block relocation table", 1519c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o brel_free, bfree; 1619c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o 1719c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'orequest do_brel_put, "Add or modify a block relocation entry", 1819c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o brel_put, bput; 1919c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o 2019c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'orequest do_brel_get, "Get a block relocation entry", 2119c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o brel_get, bget; 2219c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o 2319c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'orequest do_brel_start_iter, "Start iterating over the block table", 2419c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o brel_start_iter, bstart; 2519c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o 2619c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'orequest do_brel_next, "Get the next block relocation entry", 2719c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o brel_next, bnext; 2819c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o 2919c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'orequest do_brel_dump, "Dump the block relocation table", 3019c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o brel_dump, bdump; 3119c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o 3219c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'orequest do_brel_move, "Move an entry in the block relocation table", 3319c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o brel_move, bmove; 3419c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o 3519c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'orequest do_brel_delete, "Delete an entry in the block relocation table", 3619c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o brel_delete, bdelete, bdel; 3719c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o 3819c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o# 3919c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o# Inode relocation table commands 4019c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o# 4119c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o 4219c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'orequest do_irel_ma_create, "Open a memory array inode relocation table", 4319c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o irel_ma_create, ima_create; 4419c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o 4519c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'orequest do_irel_free, "Free an inode relocation table", 4619c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o irel_free, ifree; 4719c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o 4819c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'orequest do_irel_put, "Add or modify an inode relocation entry", 4919c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o irel_put, iput; 5019c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o 5119c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'orequest do_irel_get, "Get an inode relocation entry", 5219c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o irel_get, iget; 5319c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o 5419c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'orequest do_irel_get_by_orig, 5519c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o "Get an inode relocation entry by its original number", 5619c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o irel_get_by_orig, igetorig, igeto; 5719c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o 5819c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'orequest do_irel_start_iter, "Start iterating over the inode table", 5919c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o irel_start_iter, istart; 6019c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o 6119c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'orequest do_irel_next, "Get the next block relocation entry", 6219c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o irel_next, inext; 6319c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o 6419c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'orequest do_irel_dump, "Dump the inode relocation table", 6519c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o irel_dump, idump; 6619c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o 6719c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'orequest do_irel_add_ref, "Add a reference to an inode entry", 6819c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o irel_add_ref, iaddref, iaddr; 6919c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o 7019c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'orequest do_irel_start_iter_ref, "Start iterating over references to an inode", 7119c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o irel_start_iter_ref, istartref, istartr; 7219c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o 7319c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'orequest do_irel_next_ref, "Get the next reference for an inode entry", 7419c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o irel_next_ref, inextref, inextr; 7519c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o 7619c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'orequest do_irel_move, "Move an entry in the inode relocation table", 7719c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o irel_move, imove; 7819c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o 7919c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'orequest do_irel_delete, "Delete an entry in the inode relocation table", 8019c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o irel_delete, idelete, idel; 8119c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o 8219c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'oend; 83