diff --git a/WHATS_NEW b/WHATS_NEW index 80a198a03..bced21952 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,6 +1,6 @@ Version 2.02.133 - ====================================== - Enforce flush for suspend only when volume size is reduced. + For thins use flush for suspend only when volume size is reduced. Enable code which detects the need of flush during suspend. Ensure --use-policy will resize volume to fit below threshold. Correct percentage evaluation when checking thin-pool over threshold. diff --git a/lib/activate/dev_manager.c b/lib/activate/dev_manager.c index dc6d2fd29..964eef5af 100644 --- a/lib/activate/dev_manager.c +++ b/lib/activate/dev_manager.c @@ -3299,6 +3299,13 @@ static int _tree_action(struct dev_manager *dm, const struct logical_volume *lv, if ((dm_tree_node_size_changed(root) < 0)) dm->flush_required = 1; + /* Currently keep the code require flush for any + * non 'thin pool/volume, mirror' or with any size change */ + if (!lv_is_thin_volume(lv) && + !lv_is_thin_pool(lv) && + (!lv_is_mirror(lv) || dm_tree_node_size_changed(root))) + dm->flush_required = 1; + if (action == ACTIVATE) { if (!dm_tree_activate_children(root, dlid, DLID_SIZE)) goto_out;