mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvconvert: fix regresion from integrity check
Testing code sliped into commit and cause regression in testing for a raid with integrity.
This commit is contained in:
parent
e548afd175
commit
13225f1371
@ -6393,8 +6393,8 @@ int lvconvert_to_cache_with_cachevol_cmd(struct cmd_context *cmd, int argc, char
|
||||
|
||||
static int _lvconvert_integrity_remove(struct cmd_context *cmd, struct logical_volume *lv)
|
||||
{
|
||||
if (!lv_is_integrity(lv)) {
|
||||
log_error("LV does not have integrity.");
|
||||
if (!lv_is_integrity(lv) && !lv_is_raid(lv)) {
|
||||
log_error("LV %s does not have integrity.", display_lvname(lv));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user