1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-04-01 18:50:41 +03:00

Fix lvconvert to not poll mirror if no conversion in progress.

This commit is contained in:
Milan Broz 2009-06-15 12:08:59 +00:00
parent 38ddfe7be5
commit 9242380c2f
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.48 -
===============================
Fix lvconvert to not poll mirror if no conversion in progress.
Fix memory leaks in toolcontext error path.
Re-instate partial activation support in clustered mode. (2.02.40)
Allow metadata correction even when PVs are missing.

View File

@ -523,7 +523,8 @@ static int _lvconvert_mirrors(struct cmd_context *cmd, struct logical_volume *lv
if (!arg_count(cmd, mirrors_ARG) && !arg_count(cmd, mirrorlog_ARG) &&
!arg_count(cmd, corelog_ARG) && !arg_count(cmd, regionsize_ARG) &&
!repair) {
lp->need_polling = 1;
if (find_temporary_mirror(lv) || (lv->status & CONVERTING))
lp->need_polling = 1;
return 1;
}