mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
suppress warning if old value found for now
This commit is contained in:
parent
1ce760cb73
commit
ecf4eb2273
@ -267,6 +267,12 @@ static int _process_config(struct cmd_context *cmd)
|
|||||||
cmd->stripe_filler = find_config_tree_str(cmd,
|
cmd->stripe_filler = find_config_tree_str(cmd,
|
||||||
"activation/missing_stripe_filler",
|
"activation/missing_stripe_filler",
|
||||||
DEFAULT_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 (strcmp(cmd->stripe_filler, "error")) {
|
||||||
if (stat(cmd->stripe_filler, &st)) {
|
if (stat(cmd->stripe_filler, &st)) {
|
||||||
log_warn("WARNING: activation/missing_stripe_filler = \"%s\" "
|
log_warn("WARNING: activation/missing_stripe_filler = \"%s\" "
|
||||||
|
Loading…
Reference in New Issue
Block a user