mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
pool: use predefined name for metadata LV
While create new LV for pool volume, use name from 'pool_metadata%d' naming sequence. This LV is later on renamed to pool_t/cmeta, but if there is any error in the middle, we may evenutally leave some 'volume', With this name it can be slightly more obvious how it got there, but also when we handle _pmspare name - we get slightly more predictible name used there for it. However for a standard usage this commit shall no visible impact as the name is used temporarily just for cleaning LV.
This commit is contained in:
parent
6ca97e6e62
commit
8698f9dce6
@ -628,6 +628,7 @@ struct logical_volume *alloc_pool_metadata(struct logical_volume *pool_lv,
|
||||
.temporary = 1,
|
||||
.zero = 1,
|
||||
.is_metadata = 1,
|
||||
.lv_name = "pool_metadata%d",
|
||||
};
|
||||
|
||||
if (!(lvc.segtype = get_segtype_from_string(pool_lv->vg->cmd, SEG_TYPE_NAME_STRIPED)))
|
||||
|
Loading…
Reference in New Issue
Block a user