From: Zdenek Kabelac Date: Thu, 24 Oct 2024 14:11:51 +0000 (+0200) Subject: lv_manip: remove duplicate check for max lv X-Git-Tag: v2_03_28~61 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=dee8bc9ae4f5579dfd8472771e4c8d2bcb05db33;p=lvm2.git lv_manip: remove duplicate check for max lv This check is always performed with call to link_lv_to_vg(). --- 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 "