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);
|
|
|
|
};
|
|
|
|
|
|
|
|
class thin_trim_cmd : public base::command {
|
|
|
|
public:
|
|
|
|
thin_trim_cmd();
|
|
|
|
virtual void usage(std::ostream &out) const;
|
|
|
|
virtual int run(int argc, char **argv);
|
|
|
|
};
|
|
|
|
|
|
|
|
void register_thin_commands(base::application &app);
|
2014-08-27 18:31:31 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------
|
|
|
|
|
|
|
|
#endif
|