LVM2 ./WHATS_NEW doc/example.conf lib/config/d ...
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mbroz at sourceware.org 2010-01-06 13:27:07
Modified files:
. : WHATS_NEW doc : example.conf lib/config : defaults.h lib/metadata : mirror.c tools : lvconvert.c
Log message:
Rename mirror_device_fault_policy to mirror_image_fault policy
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1366&r2=1.1367
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/doc/example.conf.diff?cvsroot=lvm2&r1=1.52&r2=1.53
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/config/defaults.h.diff?cvsroot=lvm2&r1=1.56&r2=1.57
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/mirror.c.diff?cvsroot=lvm2&r1=1.102&r2=1.103
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvconvert.c.diff?cvsroot=lvm2&r1=1.100&r2=1.101
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.57 - ==================================== + Rename mirror_device_fault_policy to mirror_image_fault policy. Remove empty PV devices if lvconvert --repair is using defined policies. Use fixed buffer to prevent stack overflow in persistent filter dump. Use snapshot metadata usage to determine if a snapshot is empty.
doc/example.conf +1 -1
@@ -405,7 +405,7 @@ # be allocated for the replacement. mirror_log_fault_policy = "allocate" - mirror_device_fault_policy = "remove" + mirror_image_fault_policy = "remove" }
lib/config/defaults.h +1 -1
@@ -46,7 +46,7 @@#define DEFAULT_MIRRORLOG "disk"#define DEFAULT_MIRROR_LOG_FAULT_POLICY "allocate" -#define DEFAULT_MIRROR_DEV_FAULT_POLICY "remove" +#define DEFAULT_MIRROR_IMAGE_FAULT_POLICY "remove"#define DEFAULT_MIRROR_MAX_IMAGES 8/* limited by kernel DM_KCOPYD_MAX_REGIONS */ #define DEFAULT_DMEVENTD_MIRROR_LIB "libdevmapper-event-lvm2mirror.so"#define DEFAULT_DMEVENTD_MONITOR 1
lib/metadata/mirror.c +7 -3
@@ -783,9 +783,13 @@if (log_policy) policy =find_config_str (NULL ,"activation/mirror_log_fault_policy" ,DEFAULT_MIRROR_LOG_FAULT_POLICY ); -else - policy =find_config_str (NULL ,"activation/mirror_device_fault_policy" , -DEFAULT_MIRROR_DEV_FAULT_POLICY ); +else { + policy =find_config_str (NULL ,"activation/mirror_image_fault_policy" , +NULL ); +if (!policy) + policy =find_config_str (NULL ,"activation/mirror_device_fault_policy" , +DEFAULT_MIRROR_IMAGE_FAULT_POLICY ); + }if (!strcmp (policy,"remove" ))return MIRROR_REMOVE ;
tools/lvconvert.c +3 -0
@@ -475,6 +475,9 @@if (arg_count (cmd, use_policies_ARG)) { leg_policy =find_config_tree_str (cmd, +"activation/mirror_image_fault_policy" ,NULL ); +if (!leg_policy) + leg_policy =find_config_tree_str (cmd,"activation/mirror_device_fault_policy" ,DEFAULT_MIRROR_DEVICE_FAULT_POLICY ); log_policy = find_config_tree_str(cmd,