From 8698f9dce6efaafa7dbbc1663ad12bcd2fd395d7 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 17 Aug 2023 19:59:36 +0200 Subject: [PATCH] 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. --- lib/metadata/pool_manip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/metadata/pool_manip.c b/lib/metadata/pool_manip.c index ba44553fb..66591476a 100644 --- a/lib/metadata/pool_manip.c +++ b/lib/metadata/pool_manip.c @@ -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)))