2016-01-08 12:51:52 +00:00
|
|
|
#include "thin-provisioning/commands.h"
|
|
|
|
|
|
|
|
using namespace base;
|
|
|
|
using namespace thin_provisioning;
|
|
|
|
|
|
|
|
//----------------------------------------------------------------
|
|
|
|
|
|
|
|
void
|
|
|
|
thin_provisioning::register_thin_commands(base::application &app)
|
|
|
|
{
|
|
|
|
app.add_cmd(command::ptr(new thin_check_cmd()));
|
|
|
|
app.add_cmd(command::ptr(new thin_delta_cmd()));
|
|
|
|
app.add_cmd(command::ptr(new thin_dump_cmd()));
|
2016-01-12 15:02:19 +00:00
|
|
|
app.add_cmd(command::ptr(new thin_ls_cmd()));
|
2016-01-08 12:51:52 +00:00
|
|
|
app.add_cmd(command::ptr(new thin_metadata_size_cmd()));
|
|
|
|
app.add_cmd(command::ptr(new thin_restore_cmd()));
|
|
|
|
app.add_cmd(command::ptr(new thin_repair_cmd()));
|
|
|
|
app.add_cmd(command::ptr(new thin_rmap_cmd()));
|
2017-09-18 16:10:56 +01:00
|
|
|
app.add_cmd(command::ptr(new thin_trim_cmd()));
|
2016-02-24 13:41:43 +00:00
|
|
|
|
2016-02-24 14:31:51 +00:00
|
|
|
#ifdef DEV_TOOLS
|
2016-03-08 15:52:12 +00:00
|
|
|
app.add_cmd(command::ptr(new thin_ll_dump_cmd()));
|
|
|
|
app.add_cmd(command::ptr(new thin_ll_restore_cmd()));
|
2016-02-27 15:24:14 +08:00
|
|
|
app.add_cmd(command::ptr(new thin_scan_cmd()));
|
2020-07-23 17:11:01 +08:00
|
|
|
app.add_cmd(command::ptr(new thin_generate_damage_cmd()));
|
2016-02-24 13:41:43 +00:00
|
|
|
app.add_cmd(command::ptr(new thin_generate_metadata_cmd()));
|
2020-06-10 10:23:41 +08:00
|
|
|
app.add_cmd(command::ptr(new thin_generate_mappings_cmd()));
|
2020-10-19 16:25:10 +08:00
|
|
|
app.add_cmd(command::ptr(new thin_patch_superblock_cmd()));
|
2016-02-24 14:31:51 +00:00
|
|
|
app.add_cmd(command::ptr(new thin_show_duplicates_cmd()));
|
2016-02-24 15:24:43 +00:00
|
|
|
app.add_cmd(command::ptr(new thin_show_metadata_cmd()));
|
2018-09-24 14:51:46 +01:00
|
|
|
app.add_cmd(command::ptr(new thin_journal_cmd()));
|
2016-02-24 13:41:43 +00:00
|
|
|
#endif
|
2016-01-08 12:51:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------
|