1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

dev_manager: no flush for extension

Recognize the target only 'extends' and do not enforce
'flush' in this case.  Only the size reduction
still requires flush (so disables usage of no_flush flag).

If some other targets do require flush before suspend,
they have to explicitly ask for it.
This commit is contained in:
Zdenek Kabelac 2015-10-25 20:41:19 +01:00
parent 844b009584
commit f898cf7539
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.133 - Version 2.02.133 -
====================================== ======================================
Enforce flush for suspend only when volume size is reduced.
Enable code which detects the need of flush during suspend. Enable code which detects the need of flush during suspend.
Ensure --use-policy will resize volume to fit below threshold. Ensure --use-policy will resize volume to fit below threshold.
Correct percentage evaluation when checking thin-pool over threshold. Correct percentage evaluation when checking thin-pool over threshold.

View File

@ -3296,7 +3296,7 @@ static int _tree_action(struct dev_manager *dm, const struct logical_volume *lv,
if (!dm_tree_preload_children(root, dlid, DLID_SIZE)) if (!dm_tree_preload_children(root, dlid, DLID_SIZE))
goto_out; goto_out;
if (dm_tree_node_size_changed(root)) if ((dm_tree_node_size_changed(root) < 0))
dm->flush_required = 1; dm->flush_required = 1;
if (action == ACTIVATE) { if (action == ACTIVATE) {