summaryrefslogtreecommitdiff
path: root/lib/mirror
diff options
context:
space:
mode:
authorJonathan Brassow <jbrassow@redhat.com>2013-02-20 14:40:17 -0600
committerJonathan Brassow <jbrassow@redhat.com>2013-02-20 14:40:17 -0600
commit0e4ffd9d3b9cc8bf88662e3a0d023602360c6993 (patch)
treeca00b97b6fa3288b2b78bf2d7751deb788187cd4 /lib/mirror
parenta7d6a612b800ac53ded216842d0386f41e504c4e (diff)
downloadlvm2-0e4ffd9d3b9cc8bf88662e3a0d023602360c6993.tar.gz
clean-up: Rename lvm.conf setting 'mirror_region_size' to 'raid_region_size'
We have been using 'mirror_region_size' in lvm.conf as the default region size for RAID logical volumes as well as mirror logical volumes. Since, "raid" is more inclusive and representative than "mirror", I have changed the name of this setting. We must still check for the old setting and warn the user if we are overriding it with the new setting if both happen to be present.
Diffstat (limited to 'lib/mirror')
-rw-r--r--lib/mirror/mirrored.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/mirror/mirrored.c b/lib/mirror/mirrored.c
index 23a637104..58afab323 100644
--- a/lib/mirror/mirrored.c
+++ b/lib/mirror/mirrored.c
@@ -162,10 +162,7 @@ static struct mirror_state *_mirrored_init_target(struct dm_pool *mem,
return NULL;
}
- mirr_state->default_region_size = 2 *
- find_config_tree_int(cmd,
- "activation/mirror_region_size",
- DEFAULT_MIRROR_REGION_SIZE);
+ mirr_state->default_region_size = get_default_region_size(cmd);
return mirr_state;
}