From e5b12b305f4b365b6433a3d4bc5f95de489ae88e Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 28 Oct 2011 20:29:32 +0000 Subject: [PATCH] Thin support for lvrename Rename pool's metadata lv _tmeta together with pool and _tdata. --- lib/metadata/lv_manip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c index 8667cfd47..c3f0b8f1d 100644 --- a/lib/metadata/lv_manip.c +++ b/lib/metadata/lv_manip.c @@ -2745,6 +2745,8 @@ int for_each_sub_lv(struct cmd_context *cmd, struct logical_volume *lv, dm_list_iterate_items(seg, &lv->segments) { if (seg->log_lv && !fn(cmd, seg->log_lv, data)) return_0; + if (seg->pool_metadata_lv && !fn(cmd, seg->pool_metadata_lv, data)) + return_0; for (s = 0; s < seg->area_count; s++) { if (seg_type(seg, s) != AREA_LV) continue;