Skip to contentSkip to conversation

master - lvcreate: Drop warning messages for number of raid stripes.

PATCH Alasdair Kergon 1 participant 1 message Aug 19, 2016

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=e192fde6878a0e32316125b2e4c9813f4a95bede
Commit:        e192fde6878a0e32316125b2e4c9813f4a95bede
Parent:        ea0f604e704dc8418d962e20529fd1bcddf06bb7
Author:        Alasdair G Kergon <[email protected]>
AuthorDate:    Fri Aug 19 14:53:33 2016 +0100
Committer:     Alasdair G Kergon <[email protected]>
CommitterDate: Fri Aug 19 14:53:33 2016 +0100

lvcreate: Drop warning messages for number of raid stripes.

It's now just setting a default, not adjusting the user's parameter.

---
 tools/lvcreate.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
tools/lvcreate.c +3 -4
index d3a64af..33664c5 100644
@@ -470,8 +470,7 @@ static int _read_raid_params(struct cmd_context *cmd,
 					return 0;
 				}
 
-				log_warn("Adjusting stripes to the minimum of 2 for %s.",
-					 lp->segtype->name);
+				log_verbose("Using 2 stripes for %s.", lp->segtype->name);
 				lp->stripes = 2;
 			}
 
@@ -497,7 +496,7 @@ static int _read_raid_params(struct cmd_context *cmd,
 			return 0;
 		}
 
-		log_warn("Adjusting stripes to the minimum of 3 for %s.", lp->segtype->name);
+		log_verbose("Using 3 stripes for %s.", lp->segtype->name);
 		lp->stripes = 3;
 	} else if (lp->stripes < 2) {
 		if (lp->stripes_supplied) {
@@ -505,7 +504,7 @@ static int _read_raid_params(struct cmd_context *cmd,
 			return 0;
 		}
 
-		log_warn("Adjusting stripes to the minimum of 2 for %s.", lp->segtype->name);
+		log_verbose("Using 2 stripes for %s.", lp->segtype->name);
 		lp->stripes = 2;
 	}