summaryrefslogtreecommitdiff
path: root/lib/config
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2021-06-28 17:53:08 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2021-06-28 20:41:07 +0200
commit2c6a2b6e86b57aeb96e93618193426ee129b00a6 (patch)
tree9b3a9b2474d14288df1d260153cbf19bbcc39526 /lib/config
parent5fcbc3bd7d3473f14e556508fff1b381431c59f0 (diff)
downloadlvm2-2c6a2b6e86b57aeb96e93618193426ee129b00a6.tar.gz
vdo: support vdo_pool_header_size
Add profilable configurable setting for vdo pool header size, that is used as 'extra' empty space at the front and end of vdo-pool device to avoid having a disk in the system the may have same data is real vdo LV. For some conversion cases however we may need to allow using '0' header size. TODO: in this case we may eventually avoid adding 'linear' mapping layer in future - but this requires further modification over lvm code base.
Diffstat (limited to 'lib/config')
-rw-r--r--lib/config/config_settings.h3
-rw-r--r--lib/config/defaults.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/config/config_settings.h b/lib/config/config_settings.h
index fe14a1eb2..d66a9a3a7 100644
--- a/lib/config/config_settings.h
+++ b/lib/config/config_settings.h
@@ -816,6 +816,9 @@ cfg(allocation_vdo_max_discard_CFG, "vdo_max_discard", allocation_CFG_SECTION, C
"increased latency for the individual discard requests.\n"
"The default and minimum is 1. The maximum is UINT_MAX / 4096.\n")
+cfg(allocation_vdo_pool_header_size_CFG, "vdo_pool_header_size", allocation_CFG_SECTION, CFG_PROFILABLE | CFG_PROFILABLE_METADATA | CFG_DEFAULT_COMMENTED, CFG_TYPE_INT, DEFAULT_VDO_POOL_HEADER_SIZE_KB, vsn(2, 3, 12), NULL, 0, NULL,
+ "Specified the emptry header size in KiB at the front and end of vdo pool device.\n")
+
cfg(log_report_command_log_CFG, "report_command_log", log_CFG_SECTION, CFG_PROFILABLE | CFG_DEFAULT_COMMENTED | CFG_DISALLOW_INTERACTIVE, CFG_TYPE_BOOL, DEFAULT_COMMAND_LOG_REPORT, vsn(2, 2, 158), NULL, 0, NULL,
"Enable or disable LVM log reporting.\n"
"If enabled, LVM will collect a log of operations, messages,\n"
diff --git a/lib/config/defaults.h b/lib/config/defaults.h
index 2870dee12..d5e5b3b1a 100644
--- a/lib/config/defaults.h
+++ b/lib/config/defaults.h
@@ -181,8 +181,7 @@
* VDO pool will reverve some sectors in the front and the back of pool device to avoid
* seeing same device twice in the system.
*/
-#define DEFAULT_VDO_POOL_HEADER_SIZE (1024) // 512KiB
-
+#define DEFAULT_VDO_POOL_HEADER_SIZE_KB (512)
#define DEFAULT_FSADM_PATH FSADM_PATH