]> sourceware.org Git - lvm2.git/commitdiff
thin: rename thin_pool_chunk_size_calculation -> ..size_policy and rename "default...
authorPeter Rajnoha <prajnoha@redhat.com>
Fri, 4 Oct 2013 10:30:33 +0000 (12:30 +0200)
committerPeter Rajnoha <prajnoha@redhat.com>
Fri, 4 Oct 2013 10:30:33 +0000 (12:30 +0200)
Just to be consistent with existing naming we use.

conf/example.conf.in
lib/config/config_settings.h
lib/config/defaults.h
lib/metadata/metadata-exported.h
lib/metadata/thin_manip.c

index f06b705ada80a3026fcbd10668dbdf0bff4c6145..e0f8be870a96d996316df5a5e8dda2b030a82acc 100644 (file)
@@ -252,9 +252,9 @@ allocation {
     # be placed on different PVs from the pool data.
     thin_pool_metadata_require_separate_pvs = 0
 
-    # Specify chunk size calculation method for thin pool volumes.
+    # Specify chunk size calculation policy for thin pool volumes.
     # Possible options are:
-    # "default"        - if thin_pool_chunk_size is defined, use it.
+    # "generic"        - if thin_pool_chunk_size is defined, use it.
     #                    Otherwise, calcucate the chunk size based on
     #                    estimation and device hints exposed in sysfs:
     #                    the minimum_io_size. The chunk size is always
@@ -265,7 +265,7 @@ allocation {
     #                   performance based on device hints exposed in
     #                   sysfs: the optimal_io_size. The chunk size is
     #                   always at least 512KiB.
-    # thin_pool_chunk_size_calculation = "default"
+    # thin_pool_chunk_size_policy = "generic"
 
     # Specify the minimal chunk size (in KB) for thin pool volumes.
     # Use of the larger chunk size may improve perfomance for plain
index f7c133092f4ec10fc8c3b6027cf8a61bb710f239..c93592000f36d9709c2584162cf873b8137c050c 100644 (file)
@@ -107,7 +107,7 @@ cfg(allocation_mirror_logs_require_separate_pvs_CFG, "mirror_logs_require_separa
 cfg(allocation_thin_pool_metadata_require_separate_pvs_CFG, "thin_pool_metadata_require_separate_pvs", allocation_CFG_SECTION, 0, CFG_TYPE_BOOL, DEFAULT_THIN_POOL_METADATA_REQUIRE_SEPARATE_PVS, vsn(2, 2, 89), NULL)
 cfg(allocation_thin_pool_zero_CFG, "thin_pool_zero", allocation_CFG_SECTION, CFG_PROFILABLE, CFG_TYPE_BOOL, DEFAULT_THIN_POOL_ZERO, vsn(2, 2, 99), NULL)
 cfg(allocation_thin_pool_discards_CFG, "thin_pool_discards", allocation_CFG_SECTION, CFG_PROFILABLE, CFG_TYPE_STRING, DEFAULT_THIN_POOL_DISCARDS, vsn(2, 2, 99), NULL)
-cfg(allocation_thin_pool_chunk_size_calculation_CFG, "thin_pool_chunk_size_calculation", allocation_CFG_SECTION, CFG_PROFILABLE, CFG_TYPE_STRING, DEFAULT_THIN_POOL_CHUNK_SIZE_CALCULATION, vsn(2, 2, 101), NULL)
+cfg(allocation_thin_pool_chunk_size_policy_CFG, "thin_pool_chunk_size_policy", allocation_CFG_SECTION, CFG_PROFILABLE, CFG_TYPE_STRING, DEFAULT_THIN_POOL_CHUNK_SIZE_POLICY, vsn(2, 2, 101), NULL)
 cfg(allocation_thin_pool_chunk_size_CFG, "thin_pool_chunk_size", allocation_CFG_SECTION, CFG_PROFILABLE, CFG_TYPE_INT, 0, vsn(2, 2, 99), NULL)
 
 
index cd3b5f910be91aa4e6836f9e4ff93f44374be3b6..fc2d4dc4113d4de06f782803abb884fecd25f2c8 100644 (file)
@@ -71,7 +71,7 @@
 #define DEFAULT_THIN_POOL_MAX_METADATA_SIZE (16 * 1024 * 1024)  /* KB */
 #define DEFAULT_THIN_POOL_MIN_METADATA_SIZE 2048  /* KB */
 #define DEFAULT_THIN_POOL_OPTIMAL_SIZE     (128 * 1024 * 1024) /* KB */
-#define DEFAULT_THIN_POOL_CHUNK_SIZE_CALCULATION "default"
+#define DEFAULT_THIN_POOL_CHUNK_SIZE_POLICY "generic"
 #define DEFAULT_THIN_POOL_CHUNK_SIZE       64    /* KB */
 #define DEFAULT_THIN_POOL_CHUNK_SIZE_PERFORMANCE 512 /* KB */
 #define DEFAULT_THIN_POOL_DISCARDS "passdown"
index 71fe393e9689b26dbb1cd0814a02b1b5b20d06cd..971f67755e19cc37b42cc39e19c83039978a73d1 100644 (file)
@@ -726,7 +726,7 @@ struct lvcreate_params {
        int activation_skip; /* activation skip flags */
        activation_change_t activate; /* non-snapshot, non-mirror */
        thin_discards_t discards;     /* thin */
-#define THIN_CHUNK_SIZE_CALC_METHOD_DEFAULT 0x01
+#define THIN_CHUNK_SIZE_CALC_METHOD_GENERIC 0x01
 #define THIN_CHUNK_SIZE_CALC_METHOD_PERFORMANCE 0x02
        int thin_chunk_size_calc_method;
 
index c71b9716b5d1b070d7b480db6e72e2e7a9cb9075..f85696ca9633d25b55fd7ff5aec0fd1b5cecfa62 100644 (file)
@@ -573,8 +573,8 @@ static int _get_pool_chunk_size_calc(const char *str,
                                     int *chunk_size_calc_method,
                                     uint32_t *chunk_size)
 {
-       if (!strcasecmp(str, "default")) {
-               *chunk_size_calc_method = THIN_CHUNK_SIZE_CALC_METHOD_DEFAULT;
+       if (!strcasecmp(str, "generic")) {
+               *chunk_size_calc_method = THIN_CHUNK_SIZE_CALC_METHOD_GENERIC;
                *chunk_size = DEFAULT_THIN_POOL_CHUNK_SIZE * 2;
        }
        else if (!strcasecmp(str, "performance")) {
@@ -598,7 +598,7 @@ int update_profilable_pool_params(struct cmd_context *cmd, struct profile *profi
 
        if (!(passed_args & PASS_ARG_CHUNK_SIZE)) {
                if (!(*chunk_size = find_config_tree_int(cmd, allocation_thin_pool_chunk_size_CFG, profile) * 2)) {
-                       str = find_config_tree_str(cmd, allocation_thin_pool_chunk_size_calculation_CFG, profile);
+                       str = find_config_tree_str(cmd, allocation_thin_pool_chunk_size_policy_CFG, profile);
                        if (!_get_pool_chunk_size_calc(str, chunk_size_calc_method, chunk_size))
                                return_0;
                }
This page took 0.044057 seconds and 5 git commands to generate.