summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2014-04-10 20:31:39 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2014-04-14 12:52:32 +0200
commit84ff3ae703ec7d2859398f01eee726134c543723 (patch)
treee559738647bb3fce772a139575f4c4b46ce7d76c
parent45f45c9932840c4bc2d55a1d016269b3167e0450 (diff)
downloadlvm2-84ff3ae703ec7d2859398f01eee726134c543723.tar.gz
pvmove: remove locked flag from error pvmove0
When pvmove0 is finished, it replaces temporarily pvmove0 with error segment, however in this case, pvmove0 remains unremovable in case pvmove --abort is interrupted in this moment - since it's not a pvmove anymore and normal lvremove can't be used to remove LOCKED lv.
-rw-r--r--WHATS_NEW1
-rw-r--r--lib/metadata/lv_manip.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/WHATS_NEW b/WHATS_NEW
index 100b1cb45..e7e74edd8 100644
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
Version 2.02.107 -
==================================
+ Remove LOCKED flag for pvmove replaced with error target.
Return invalid command when specifying negative polling interval.
Version 2.02.106 - 10th April 2014
diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c
index 18fa7e623..0d87b709b 100644
--- a/lib/metadata/lv_manip.c
+++ b/lib/metadata/lv_manip.c
@@ -873,7 +873,7 @@ int replace_lv_with_error_segment(struct logical_volume *lv)
* an error segment, we should also clear any flags
* that suggest it is anything other than "error".
*/
- lv->status &= ~(MIRRORED|PVMOVE);
+ lv->status &= ~(MIRRORED|PVMOVE|LOCKED);
/* FIXME: Should we bug if we find a log_lv attached? */