2014-08-27 18:31:31 +05:30
|
|
|
#ifndef THIN_PROVISIONING_COMMANDS_H
|
|
|
|
#define THIN_PROVISIONING_COMMANDS_H
|
|
|
|
|
|
|
|
#include "base/application.h"
|
2016-01-08 18:21:52 +05:30
|
|
|
#include "boost/optional.hpp"
|
2014-08-27 18:31:31 +05:30
|
|
|
|
|
|
|
//----------------------------------------------------------------
|
|
|
|
|
|
|
|
namespace thin_provisioning {
|
2016-01-08 18:21:52 +05:30
|
|
|
class thin_check_cmd : public base::command {
|
|
|
|
public:
|
|
|
|
thin_check_cmd();
|
|
|
|
virtual void usage(std::ostream &out) const;
|
|
|
|
virtual int run(int argc, char **argv);
|
|
|
|
};
|
|
|
|
|
|
|
|
class thin_delta_cmd : public base::command {
|
|
|
|
public:
|
|
|
|
thin_delta_cmd();
|
|
|
|
virtual void usage(std::ostream &out) const;
|
|
|
|
virtual int run(int argc, char **argv);
|
|
|
|
};
|
|
|
|
|
|
|
|
class thin_dump_cmd : public base::command {
|
|
|
|
public:
|
|
|
|
thin_dump_cmd();
|
|
|
|
virtual void usage(std::ostream &out) const;
|
|
|
|
virtual int run(int argc, char **argv);
|
|
|
|
};
|
|
|
|
|
|
|
|
class thin_ls_cmd : public base::command {
|
|
|
|
public:
|
|
|
|
thin_ls_cmd();
|
|
|
|
virtual void usage(std::ostream &out) const;
|
|
|
|
virtual int run(int argc, char **argv);
|
|
|
|
};
|
|
|
|
|
|
|
|
class thin_metadata_size_cmd : public base::command {
|
|
|
|
public:
|
|
|
|
thin_metadata_size_cmd();
|
|
|
|
virtual void usage(std::ostream &out) const;
|
|
|
|
virtual int run(int argc, char **argv);
|
|
|
|
};
|
|
|
|
|
|
|
|
class thin_restore_cmd : public base::command {
|
|
|
|
public:
|
|
|
|
thin_restore_cmd();
|
|
|
|
virtual void usage(std::ostream &out) const;
|
|
|
|
virtual int run(int argc, char **argv);
|
|
|
|
};
|
|
|
|
|
|
|
|
class thin_repair_cmd : public base::command {
|
|
|
|
public:
|
|
|
|
thin_repair_cmd();
|
|
|
|
virtual void usage(std::ostream &out) const;
|
|
|
|
virtual int run(int argc, char **argv);
|
|
|
|
};
|
|
|
|
|
|
|
|
class thin_rmap_cmd : public base::command {
|
|
|
|
public:
|
|
|
|
thin_rmap_cmd();
|
|
|
|
virtual void usage(std::ostream &out) const;
|
|
|
|
virtual int run(int argc, char **argv);
|
|
|
|
};
|
|
|
|
|
2016-03-08 20:57:22 +05:30
|
|
|
class thin_trim_cmd : public base::command {
|
2016-02-27 12:54:14 +05:30
|
|
|
public:
|
2016-03-08 20:57:22 +05:30
|
|
|
thin_trim_cmd();
|
2016-03-08 21:30:31 +05:30
|
|
|
|
2016-02-27 12:54:14 +05:30
|
|
|
virtual void usage(std::ostream &out) const;
|
|
|
|
virtual int run(int argc, char **argv);
|
|
|
|
};
|
|
|
|
|
2021-01-11 12:14:06 +05:30
|
|
|
//------------------------------------------------------
|
2016-03-08 21:30:31 +05:30
|
|
|
|
2021-01-11 12:14:06 +05:30
|
|
|
class thin_generate_damage_cmd : public base::command {
|
|
|
|
public:
|
|
|
|
thin_generate_damage_cmd();
|
2016-02-27 12:54:14 +05:30
|
|
|
virtual void usage(std::ostream &out) const;
|
|
|
|
virtual int run(int argc, char **argv);
|
|
|
|
};
|
|
|
|
|
2021-01-11 12:14:06 +05:30
|
|
|
class thin_generate_metadata_cmd : public base::command {
|
2016-01-08 18:21:52 +05:30
|
|
|
public:
|
2021-01-11 12:14:06 +05:30
|
|
|
thin_generate_metadata_cmd();
|
2016-03-08 21:22:12 +05:30
|
|
|
virtual void usage(std::ostream &out) const;
|
|
|
|
virtual int run(int argc, char **argv);
|
|
|
|
};
|
|
|
|
|
2021-01-11 12:14:06 +05:30
|
|
|
class thin_generate_mappings_cmd : public base::command {
|
2016-01-08 18:21:52 +05:30
|
|
|
public:
|
2021-01-11 12:14:06 +05:30
|
|
|
thin_generate_mappings_cmd();
|
2016-01-08 18:21:52 +05:30
|
|
|
virtual void usage(std::ostream &out) const;
|
|
|
|
virtual int run(int argc, char **argv);
|
|
|
|
};
|
|
|
|
|
2021-01-11 12:14:06 +05:30
|
|
|
class thin_ll_dump_cmd : public base::command {
|
2016-02-24 20:01:51 +05:30
|
|
|
public:
|
2021-01-11 12:14:06 +05:30
|
|
|
thin_ll_dump_cmd();
|
|
|
|
|
2016-02-24 20:01:51 +05:30
|
|
|
virtual void usage(std::ostream &out) const;
|
|
|
|
virtual int run(int argc, char **argv);
|
|
|
|
};
|
|
|
|
|
2021-01-11 12:14:06 +05:30
|
|
|
class thin_ll_restore_cmd : public base::command {
|
2020-07-23 14:41:01 +05:30
|
|
|
public:
|
2021-01-11 12:14:06 +05:30
|
|
|
thin_ll_restore_cmd();
|
|
|
|
|
2020-07-23 14:41:01 +05:30
|
|
|
virtual void usage(std::ostream &out) const;
|
|
|
|
virtual int run(int argc, char **argv);
|
|
|
|
};
|
|
|
|
|
2021-01-11 12:14:06 +05:30
|
|
|
class thin_patch_superblock_cmd : public base::command {
|
2016-02-24 19:11:43 +05:30
|
|
|
public:
|
2021-01-11 12:14:06 +05:30
|
|
|
thin_patch_superblock_cmd();
|
2016-02-24 19:11:43 +05:30
|
|
|
virtual void usage(std::ostream &out) const;
|
|
|
|
virtual int run(int argc, char **argv);
|
|
|
|
};
|
|
|
|
|
2021-01-11 12:14:06 +05:30
|
|
|
class thin_scan_cmd : public base::command {
|
2020-06-10 07:53:41 +05:30
|
|
|
public:
|
2021-01-11 12:14:06 +05:30
|
|
|
thin_scan_cmd();
|
|
|
|
|
2020-06-10 07:53:41 +05:30
|
|
|
virtual void usage(std::ostream &out) const;
|
|
|
|
virtual int run(int argc, char **argv);
|
|
|
|
};
|
|
|
|
|
2021-01-11 12:14:06 +05:30
|
|
|
class thin_show_duplicates_cmd : public base::command {
|
2020-10-19 13:55:10 +05:30
|
|
|
public:
|
2021-01-11 12:14:06 +05:30
|
|
|
thin_show_duplicates_cmd();
|
2020-10-19 13:55:10 +05:30
|
|
|
virtual void usage(std::ostream &out) const;
|
|
|
|
virtual int run(int argc, char **argv);
|
|
|
|
};
|
|
|
|
|
2021-01-11 12:14:06 +05:30
|
|
|
|
2016-02-24 20:54:43 +05:30
|
|
|
class thin_show_metadata_cmd : public base::command {
|
|
|
|
public:
|
|
|
|
thin_show_metadata_cmd();
|
|
|
|
virtual void usage(std::ostream &out) const;
|
|
|
|
virtual int run(int argc, char **argv);
|
|
|
|
};
|
2018-08-28 17:42:20 +05:30
|
|
|
|
|
|
|
class thin_journal_cmd : public base::command {
|
|
|
|
public:
|
|
|
|
thin_journal_cmd();
|
|
|
|
virtual void usage(std::ostream &out) const;
|
|
|
|
virtual int run(int argc, char **argv);
|
|
|
|
};
|
2016-02-24 20:54:43 +05:30
|
|
|
|
2016-01-08 18:21:52 +05:30
|
|
|
void register_thin_commands(base::application &app);
|
2014-08-27 18:31:31 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------
|
|
|
|
|
|
|
|
#endif
|