summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--WHATS_NEW1
-rw-r--r--tools/lvmcmdline.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/WHATS_NEW b/WHATS_NEW
index 02d74854..1e1ca1a6 100644
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
Version 2.02.89 -
==================================
+ Fix command line option decoding.
Reset LV status when unlinking LV from VG.
Fix overly strict extent-count divisibility requirements for striped mirrors.
Fix rounding direction in lvresize when reducing volume size.
diff --git a/tools/lvmcmdline.c b/tools/lvmcmdline.c
index a8e46b18..1dab59d5 100644
--- a/tools/lvmcmdline.c
+++ b/tools/lvmcmdline.c
@@ -641,7 +641,7 @@ static void _add_getopt_arg(int arg, char **ptr, struct option **o)
if (a->short_arg)
(*o)->val = a->short_arg;
else
- (*o)->val = arg;
+ (*o)->val = arg + 128;
(*o)++;
}
#endif
@@ -662,7 +662,7 @@ static int _find_arg(struct command *com, int opt)
* the_args.
*/
if ((a->short_arg && (opt == a->short_arg)) ||
- (!a->short_arg && (opt == arg)))
+ (!a->short_arg && (opt == (arg + 128))))
return arg;
}