mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
thin: detect online metadata resize support
This commit is contained in:
parent
01ef97fcbb
commit
55a3859632
@ -1,5 +1,6 @@
|
||||
Version 2.02.99 -
|
||||
===================================
|
||||
Add detection for thin pool metadata resize kernel support.
|
||||
Report lvs volume type 'e' with higher priority.
|
||||
Report lvs volume type 'o' also for external origin volumes.
|
||||
Report lvs target type 't' only for thin pools and thin volumes.
|
||||
|
@ -51,6 +51,7 @@ enum {
|
||||
THIN_FEATURE_HELD_ROOT = (1 << 2),
|
||||
THIN_FEATURE_BLOCK_SIZE = (1 << 3),
|
||||
THIN_FEATURE_DISCARDS_NON_POWER_2 = (1 << 4),
|
||||
THIN_FEATURE_METADATA_RESIZE = (1 << 5),
|
||||
};
|
||||
|
||||
void set_activation(int activation);
|
||||
|
@ -562,6 +562,7 @@ static int _thin_target_present(struct cmd_context *cmd,
|
||||
{ 1, 1, THIN_FEATURE_EXTERNAL_ORIGIN, "external_origin" },
|
||||
{ 1, 4, THIN_FEATURE_BLOCK_SIZE, "block_size" },
|
||||
{ 1, 5, THIN_FEATURE_DISCARDS_NON_POWER_2, "discards_non_power_2" },
|
||||
{ 1, 8, THIN_FEATURE_METADATA_RESIZE, "metadata_resize" },
|
||||
};
|
||||
|
||||
static const char _lvmconf[] = "global/thin_disabled_features";
|
||||
|
Loading…
Reference in New Issue
Block a user