1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

Fix regression in for_each_sub_lv

pool_lv is not a sub lv in terms for this function.
It has caused problem with renaming thin_volume, where it has tried to
rename pool LV as well.
This commit is contained in:
Zdenek Kabelac 2012-05-09 12:12:21 +00:00
parent a93ad77e02
commit b54dc45c90
2 changed files with 1 additions and 7 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.96 - Version 2.02.96 -
================================ ================================
Fix lvrename for thin volumes (regression in for_each_sub_lv() 2.02.89).
Fix up-convert when mirror activation is controled by volume_list and tags. Fix up-convert when mirror activation is controled by volume_list and tags.
Disallow snapshots of mirror segment type. Disallow snapshots of mirror segment type.
Fix bug in cmirror that caused incorrect status info to print on some nodes. Fix bug in cmirror that caused incorrect status info to print on some nodes.

View File

@ -2814,13 +2814,6 @@ int for_each_sub_lv(struct cmd_context *cmd, struct logical_volume *lv,
return_0; return_0;
} }
if (seg->pool_lv) {
if (!fn(cmd, seg->pool_lv, data))
return_0;
if (!for_each_sub_lv(cmd, seg->pool_lv, fn, data))
return_0;
}
if (seg->metadata_lv) { if (seg->metadata_lv) {
if (!fn(cmd, seg->metadata_lv, data)) if (!fn(cmd, seg->metadata_lv, data))
return_0; return_0;