1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Fix create mirror with name longer than 22 chars.

This commit is contained in:
Milan Broz 2007-01-05 15:53:40 +00:00
parent 0ce83a83f0
commit aa8a4d96bd
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.18 -
====================================
Fix create mirror with name longer than 22 chars.
Fix some activate.c prototypes when compiled without devmapper.
Fix dmeventd mirror to cope if monitored device disappears.

View File

@ -1493,7 +1493,7 @@ struct logical_volume *lv_create_empty(struct format_instance *fi,
struct cmd_context *cmd = vg->cmd;
struct lv_list *ll = NULL;
struct logical_volume *lv;
char dname[32];
char dname[NAME_LEN];
if (vg->max_lv && (vg->max_lv == vg->lv_count)) {
log_error("Maximum number of logical volumes (%u) reached "