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

lvconvert: fix return value when zeroing fails

Use correct error return code for fail path.
This commit is contained in:
Zdenek Kabelac 2019-10-14 11:54:49 +02:00
parent bd21736e8b
commit 76a9a86fd3
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.03.06 -
================================
Fix cmd return when zering of cachevol fails.
Extend lvs to show all VDO properties.
Preserve VDO write policy with vdopool.
Increase default vdo bio threads to 4.

View File

@ -5565,7 +5565,7 @@ static int _lvconvert_writecache_attach_single(struct cmd_context *cmd,
if (!_writecache_zero(cmd, lv_fast)) {
log_error("LV %s could not be zeroed.", display_lvname(lv_fast));
return 0;
return ECMD_FAILED;
}
/*