]> sourceware.org Git - lvm2.git/commitdiff
lv_manip: remove duplicate check for max lv
authorZdenek Kabelac <zkabelac@redhat.com>
Thu, 24 Oct 2024 14:11:51 +0000 (16:11 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Thu, 24 Oct 2024 15:37:30 +0000 (17:37 +0200)
This check is always performed with call to link_lv_to_vg().

lib/metadata/lv_manip.c

index ebc2239fcadeaf041ffaf16143c43ecc4abc7c74..8e3944871f332962c4a8aa21455064ad5afb15a6 100644 (file)
@@ -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 "
This page took 0.04162 seconds and 5 git commands to generate.