]> sourceware.org Git - lvm2.git/commitdiff
lvconvert: don't show aliases in error output
authorDavid Teigland <teigland@redhat.com>
Fri, 8 Jul 2016 18:29:19 +0000 (13:29 -0500)
committerDavid Teigland <teigland@redhat.com>
Fri, 8 Jul 2016 19:34:36 +0000 (14:34 -0500)
We want to consistently use the standard command form.
The aliases are now mentioned in the man page for reference.

tools/lvconvert.c

index ce858ae1d130a1dce5d10b5d9e57079299d42cd6..0009270f9e688d42b36f958ffb59d2b0744faddf 100644 (file)
@@ -4076,9 +4076,9 @@ static int _convert_thin_pool(struct cmd_context *cmd, struct logical_volume *lv
 
        log_error("Operation not permitted on thin pool LV %s", display_lvname(lv));
        log_error("Operations permitted on a thin pool LV are:\n"
-                 "  --splitcache           (operates on cache sub LV)\n"
-                 "  --uncache              (operates on cache sub LV)\n"
-                 "  --type cache | --cache (operates on data sub LV)\n"
+                 "  --splitcache  (operates on cache sub LV)\n"
+                 "  --uncache     (operates on cache sub LV)\n"
+                 "  --type cache  (operates on data sub LV)\n"
                  "  --repair\n");
        return 0;
 }
@@ -4137,7 +4137,7 @@ static int _convert_cache_pool(struct cmd_context *cmd, struct logical_volume *l
 
        log_error("Operation not permitted on cache pool LV %s", display_lvname(lv));
        log_error("Operations permitted on a cache pool LV are:\n"
-                 "  --splitcache        (operates on cache LV)\n");
+                 "  --splitcache    (operates on cache LV)\n");
        return 0;
 }
 
@@ -4255,9 +4255,9 @@ static int _convert_raid(struct cmd_context *cmd, struct logical_volume *lv,
                  "  --merge\n"
                  "  --repair\n"
                  "  --replace\n"
-                 "  --type snapshot | --snapshot\n"
-                 "  --type thin | --thin\n"
-                 "  --type cache | --cache\n"
+                 "  --type snapshot\n"
+                 "  --type thin\n"
+                 "  --type cache\n"
                  "  --type thin-pool\n"
                  "  --type cache-pool\n"
                  "  --type raid*\n"
@@ -4316,13 +4316,13 @@ static int _convert_striped(struct cmd_context *cmd, struct logical_volume *lv,
        log_error("Operation not permitted on striped or linear LV %s", display_lvname(lv));
        log_error("Operations permitted on a striped or linear LV are:\n"
                  "  --merge\n"
-                 "  --type snapshot | --snapshot\n"
-                 "  --type thin | --thin\n"
-                 "  --type cache | --cache\n"
+                 "  --type snapshot\n"
+                 "  --type thin\n"
+                 "  --type cache\n"
                  "  --type thin-pool\n"
                  "  --type cache-pool\n"
-                 "  --type mirror | --mirrors\n"
-                 "  --type raid* | --mirrors\n");
+                 "  --type mirror\n"
+                 "  --type raid*\n");
        return 0;
 }
 
This page took 0.049227 seconds and 5 git commands to generate.