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:
parent
bd21736e8b
commit
76a9a86fd3
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user