1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

lvconvert: fix error path test

lvremove_single toollib function returns
ECMD_FAILED or ECMD_PROCESSED.
This commit is contained in:
Zdenek Kabelac 2016-03-14 23:19:22 +01:00
parent a39563c0b0
commit 7daba90fa3
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.147 -
==================================
Fix test for lvremove failure in lvconvert --uncache (2.02.146).
Version 2.02.146 - 11th March 2016
==================================

View File

@ -2043,7 +2043,7 @@ static int _lvconvert_uncache(struct cmd_context *cmd,
}
}
if (!lvremove_single(cmd, remove_lv, NULL))
if (lvremove_single(cmd, remove_lv, NULL) != ECMD_PROCESSED)
return_0;
if (remove_lv != lv)