LVM2 ./WHATS_NEW test/t-mirror-names.sh tools/ ...
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: snitzer at sourceware.org 2010-01-22 21:59:43
Modified files:
. : WHATS_NEW test : t-mirror-names.sh tools : polldaemon.c polldaemon.h
Log message:
Default to checking LV's progress before waiting in _wait_for_single_lv.
Support "wait before testing" using '+' in pvmove and lvconvert interval. Doing so overrides the new default of sleeping after checking the LV's progress.
Sleeping before checking progress can lead to extraneous polldaemons being left running. These polldaemons would have otherwise exited had they checked before sleeping. Checking progress before sleeping helps workaround the subtly unreliable nature of "finished" state checking in _percent_run.
Update test/t-mirror-names.sh to use '+' when providing its lvconvert interval.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1405&r2=1.1406
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-mirror-names.sh.diff?cvsroot=lvm2&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/polldaemon.c.diff?cvsroot=lvm2&r1=1.31&r2=1.32
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/polldaemon.h.diff?cvsroot=lvm2&r1=1.10&r2=1.11
WHATS_NEW +2 -0
@@ -1,5 +1,7 @@ Version 2.02.60 =================================== + Support "wait before testing" using '+' in pvmove and lvconvert interval. + Default to checking LV's progress before waiting in _wait_for_single_lv. Fix syntax error in cmirror init script. Eliminate extra ioctls just to check open_count in _add_new_lv_to_dtree. Disable not thread-safe memory debugging if dmeventd is configured.
test/t-mirror-names.sh +1 -1
@@ -122,7 +122,7 @@ #COMM "converting mirror names is ${lv1}_mimagetmp_2" lvcreate -l2 -m1 -n $lv1 $vg -lvconvert -m+1 -i1000 -b $vg/$lv1 +lvconvert -m+1 -i+1000 -b $vg/$lv1 convlv=$(lv_convert_lv_ "$vg/$lv1") test "$convlv" = "$lv1"_mimagetmp_2 lv_devices_ $vg/$lv1 "$convlv" "$lv1"_mimage_2
tools/polldaemon.c +35 -9
79 lines not on this page · raw message
tools/polldaemon.h +1 -0
@@ -53,6 +53,7 @@struct daemon_parms {unsigned interval; +unsigned wait_before_testing;unsigned aborting;unsigned background;unsigned outstanding_count;