From ecf4eb22731a91cf7b244ea0130e219781da47cb Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Fri, 19 Sep 2008 18:26:41 +0000 Subject: [PATCH] suppress warning if old value found for now --- lib/commands/toolcontext.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/commands/toolcontext.c b/lib/commands/toolcontext.c index 8f89fee36..f9f9ae15d 100644 --- a/lib/commands/toolcontext.c +++ b/lib/commands/toolcontext.c @@ -267,6 +267,12 @@ static int _process_config(struct cmd_context *cmd) cmd->stripe_filler = find_config_tree_str(cmd, "activation/missing_stripe_filler", DEFAULT_STRIPE_FILLER); + + /* FIXME Missing error code checks from the stats, not log_warn?, notify if setting overridden, delay message/check till it is actually used (eg consider if lvm shell - file could appear later after this check)? */ + if (!strcmp(cmd->stripe_filler, "/dev/ioerror") && + stat(cmd->stripe_filler, &st)) + cmd->stripe_filler = "error"; + if (strcmp(cmd->stripe_filler, "error")) { if (stat(cmd->stripe_filler, &st)) { log_warn("WARNING: activation/missing_stripe_filler = \"%s\" "