Skip to contentSkip to conversation

master - lvconvert: add FIXME

PATCH David Teigland 1 participant 1 message Aug 4, 2016

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=d1a25fe597569fd15fd934f639d41d991d767219
Commit:        d1a25fe597569fd15fd934f639d41d991d767219
Parent:        4a15abe865c7087de5505388e9757623da282311
Author:        David Teigland <[email protected]>
AuthorDate:    Thu Aug 4 11:40:27 2016 -0500
Committer:     David Teigland <[email protected]>
CommitterDate: Thu Aug 4 13:01:48 2016 -0500

lvconvert: add FIXME

operations are no longer identified correctly.

---
 tools/lvconvert.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
tools/lvconvert.c +7 -0
index 8ea293d..5731558 100644
@@ -4337,7 +4337,14 @@ static int _convert_striped(struct cmd_context *cmd, struct logical_volume *lv,
  *	 for each arg_is_set(operation)
  *	     _convert_lvtype_operation();
  *
+ * FIXME: this code (identifying/routing each unique operation through
+ * _convert_lvtype_op) was designed to work based on the new type that
+ * the user entered after --type, not the final segment type in lp->type_str.
+ * Sometimes the two differ because tricks are played with lp->type_str.
+ * So, when the use of arg_type_str(type_ARG) here was replaced with
+ * lp->type_str, some commands are no longer identified/routed correctly.
  */
+
 static int _lvconvert(struct cmd_context *cmd, struct logical_volume *lv,
 		      struct lvconvert_params *lp)
 {