mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
thin: lvextend will fail is autoextend is 0%
Since extending by 0% will not increase the size of pool, return failure.
This commit is contained in:
parent
a6f53b5c0d
commit
16060b101b
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.98 -
|
Version 2.02.98 -
|
||||||
=================================
|
=================================
|
||||||
|
Using autoextend percent 0 for thin pool fails 'lvextend --use-policies'.
|
||||||
Introduce blkdeactivate script.
|
Introduce blkdeactivate script.
|
||||||
Implement devices/global_filter (affects lvmetad).
|
Implement devices/global_filter (affects lvmetad).
|
||||||
Make vgscan --cache an alias to pvscan --cache.
|
Make vgscan --cache an alias to pvscan --cache.
|
||||||
|
@ -293,6 +293,8 @@ static int _adjust_policy_params(struct cmd_context *cmd,
|
|||||||
policy_amount =
|
policy_amount =
|
||||||
find_config_tree_int(cmd, "activation/thin_pool_autoextend_percent",
|
find_config_tree_int(cmd, "activation/thin_pool_autoextend_percent",
|
||||||
DEFAULT_THIN_POOL_AUTOEXTEND_PERCENT);
|
DEFAULT_THIN_POOL_AUTOEXTEND_PERCENT);
|
||||||
|
if (!policy_amount && policy_threshold < PERCENT_100)
|
||||||
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
policy_threshold =
|
policy_threshold =
|
||||||
find_config_tree_int(cmd, "activation/snapshot_autoextend_threshold",
|
find_config_tree_int(cmd, "activation/snapshot_autoextend_threshold",
|
||||||
|
Loading…
Reference in New Issue
Block a user