mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-25 21:57:45 +03:00
vdo: size reduction requires VDO to be active
To be able to send discard to reduced areas - the VDO LV needs to be active.
This commit is contained in:
parent
f1ad4b0679
commit
bd6709cec6
@ -4663,6 +4663,11 @@ static int _request_confirmation(const struct logical_volume *lv,
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
} else if (lv_is_vdo(lv) && !info.exists) {
|
||||
log_error("Logical volume %s must be activated "
|
||||
"before reducing device size.",
|
||||
display_lvname(lv));
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!info.exists)
|
||||
|
Loading…
x
Reference in New Issue
Block a user