mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-04 09:18:36 +03:00
cov: fix typo and reduce stack usage
Buffer on stack was for single LV name plus some short text around. Use of 50* was a typo so use correly 50+.
This commit is contained in:
parent
e1287c3b71
commit
86a3a0c765
@ -6558,7 +6558,7 @@ static int _lv_remove_check_in_use(struct logical_volume *lv, force_t force)
|
|||||||
{
|
{
|
||||||
struct volume_group *vg = lv->vg;
|
struct volume_group *vg = lv->vg;
|
||||||
const char *volume_type = "";
|
const char *volume_type = "";
|
||||||
char buffer[50 * NAME_LEN * 2] = "";
|
char buffer[50 + NAME_LEN * 2] = "";
|
||||||
int active;
|
int active;
|
||||||
int issue_discards =
|
int issue_discards =
|
||||||
(vg->cmd->current_settings.issue_discards &&
|
(vg->cmd->current_settings.issue_discards &&
|
||||||
|
Loading…
Reference in New Issue
Block a user