1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

lv_manip: remove duplicate check for max lv

This check is always performed with call to link_lv_to_vg().
This commit is contained in:
Zdenek Kabelac 2024-10-24 16:11:51 +02:00
parent d62170d646
commit dee8bc9ae4

View 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 "