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:
parent
d62170d646
commit
dee8bc9ae4
@ -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 "
|
||||
|
Loading…
Reference in New Issue
Block a user