mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-04 09:18:36 +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];
|
char dname[NAME_LEN];
|
||||||
int historical;
|
int historical;
|
||||||
|
|
||||||
if (vg_max_lv_reached(vg))
|
|
||||||
stack;
|
|
||||||
|
|
||||||
if (strstr(name, "%d") &&
|
if (strstr(name, "%d") &&
|
||||||
!(name = generate_lv_name(vg, name, dname, sizeof(dname)))) {
|
!(name = generate_lv_name(vg, name, dname, sizeof(dname)))) {
|
||||||
log_error("Failed to generate unique name for the new "
|
log_error("Failed to generate unique name for the new "
|
||||||
|
Loading…
Reference in New Issue
Block a user