diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2012-05-09 12:12:21 +0000 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2012-05-09 12:12:21 +0000 |
commit | b54dc45c9096c53940ab01acd97b652fc11740ce (patch) | |
tree | a81643cfab0a186bdaac906a8184e169d64a9b1a | |
parent | a93ad77e029da72534bac96ff2854755eb65c074 (diff) | |
download | lvm2-b54dc45c9096c53940ab01acd97b652fc11740ce.tar.gz |
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.
-rw-r--r-- | WHATS_NEW | 1 | ||||
-rw-r--r-- | lib/metadata/lv_manip.c | 7 |
2 files changed, 1 insertions, 7 deletions
@@ -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. diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c index 7150fa443..f8765a67a 100644 --- a/lib/metadata/lv_manip.c +++ b/lib/metadata/lv_manip.c @@ -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; |