From dee8bc9ae4f5579dfd8472771e4c8d2bcb05db33 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 24 Oct 2024 16:11:51 +0200 Subject: [PATCH] lv_manip: remove duplicate check for max lv This check is always performed with call to link_lv_to_vg(). --- lib/metadata/lv_manip.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c index ebc2239fc..8e3944871 100644 --- a/lib/metadata/lv_manip.c +++ b/lib/metadata/lv_manip.c @@ -7309,9 +7309,6 @@ struct logical_volume *lv_create_empty(const char *name, char dname[NAME_LEN]; int historical; - if (vg_max_lv_reached(vg)) - stack; - if (strstr(name, "%d") && !(name = generate_lv_name(vg, name, dname, sizeof(dname)))) { log_error("Failed to generate unique name for the new " -- 2.43.5