]> sourceware.org Git - lvm2.git/commitdiff
suppress warning if old value found for now
authorAlasdair Kergon <agk@redhat.com>
Fri, 19 Sep 2008 18:26:41 +0000 (18:26 +0000)
committerAlasdair Kergon <agk@redhat.com>
Fri, 19 Sep 2008 18:26:41 +0000 (18:26 +0000)
lib/commands/toolcontext.c

index 8f89fee3673dbd21c90b64d96583ef8d9763b1b0..f9f9ae15df6c8c064aff312f2d4b81975a98fbb9 100644 (file)
@@ -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\" "
This page took 0.040516 seconds and 5 git commands to generate.