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:
parent
fccc6ea295
commit
98f2e3d974
@ -1,5 +1,6 @@
|
||||
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.
|
||||
Disallow snapshots of mirror segment type.
|
||||
Fix bug in cmirror that caused incorrect status info to print on some nodes.
|
||||
|
@ -2814,13 +2814,6 @@ int for_each_sub_lv(struct cmd_context *cmd, struct logical_volume *lv,
|
||||
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 (!fn(cmd, seg->metadata_lv, data))
|
||||
return_0;
|
||||
|
Loading…
Reference in New Issue
Block a user