From b7dda6d57b74c361214eb3e3d9e271a1c55b1545 Mon Sep 17 00:00:00 2001 From: Heinz Mauelshagen Date: Thu, 7 Nov 2024 13:08:46 +0100 Subject: [PATCH] raid: remove superfluous double sync_local_dev_names(); log message --- lib/metadata/raid_manip.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/metadata/raid_manip.c b/lib/metadata/raid_manip.c index 78029c742..c68f4620a 100644 --- a/lib/metadata/raid_manip.c +++ b/lib/metadata/raid_manip.c @@ -7396,8 +7396,6 @@ static int _count_or_clear_failed_devices_bits(struct logical_volume *meta_lv, u goto out; } - sync_local_dev_names(meta_lv->vg->cmd); - r = _count_or_clear_failed_devices(meta_lv, cleared, clear); out: if (!deactivate_lv(meta_lv->vg->cmd, meta_lv)) @@ -7422,7 +7420,7 @@ static int _raid_count_or_clear_failed_devices(const struct logical_volume *lv, /* FIXME: pay attention to allowed failed_sublvs as of level! */ failed_sublvs = _lv_get_nr_failed_components(lv); if (clear && failed_sublvs > raid_seg->segtype->parity_devs) { - log_error("Can't clear transiently failed devices on still failed %s.", display_lvname(lv)); + log_error("Won't clear transiently failed devices on still failed %s.", display_lvname(lv)); return 0; }