[all] Build a single executable

This commit is contained in:
Joe Thornber
2014-08-27 14:01:31 +01:00
parent c1e0799367
commit 6f8b7e2914
48 changed files with 418 additions and 496 deletions

View File

@@ -2,6 +2,7 @@
#include <getopt.h>
#include <libgen.h>
#include "thin-provisioning/commands.h"
#include "human_readable_format.h"
#include "metadata_dumper.h"
#include "metadata.h"
@@ -40,7 +41,7 @@ namespace {
}
}
int main(int argc, char **argv)
int thin_repair_main(int argc, char **argv)
{
int c;
boost::optional<string> input_path, output_path;
@@ -92,3 +93,7 @@ int main(int argc, char **argv)
return repair(*input_path, *output_path);
}
base::command thin_provisioning::thin_repair_cmd("thin_repair", thin_repair_main);
//----------------------------------------------------------------