vitastor-disk prepare: implement first form of the command

This commit is contained in:
Vitaliy Filippov
2022-08-09 01:29:29 +03:00
parent ae99ee6266
commit 4c9aaa8a86
7 changed files with 357 additions and 49 deletions
+2
View File
@@ -8,6 +8,8 @@
std::string base64_encode(const std::string &in);
std::string base64_decode(const std::string &in);
uint64_t parse_size(std::string size_str);
std::string strtolower(const std::string & in);
std::string trim(const std::string & in);
uint64_t stoull_full(const std::string & str, int base = 0);
std::string format_size(uint64_t size, bool nobytes = false);
void print_help(const char *help_text, std::string exe_name, std::string cmd, bool all);