summaryrefslogtreecommitdiffstats
path: root/tools/polldaemon.h
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2010-01-22 21:59:42 +0000
committerMike Snitzer <snitzer@redhat.com>2010-01-22 21:59:42 +0000
commit43d99aab6c5fcc81c6d9a5dbf5a13046bd48e740 (patch)
tree503bb3704e8900f091e47febc94cc724927356f5 /tools/polldaemon.h
parent794b3b1605a715bc6a79d350c03603e1b86f12c6 (diff)
downloadlvm2-43d99aab6c5fcc81c6d9a5dbf5a13046bd48e740.tar.gz
lvm2-43d99aab6c5fcc81c6d9a5dbf5a13046bd48e740.tar.xz
lvm2-43d99aab6c5fcc81c6d9a5dbf5a13046bd48e740.zip
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.
Diffstat (limited to 'tools/polldaemon.h')
-rw-r--r--tools/polldaemon.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/polldaemon.h b/tools/polldaemon.h
index f8afbbe0..8ebbb256 100644
--- a/tools/polldaemon.h
+++ b/tools/polldaemon.h
@@ -53,6 +53,7 @@ struct poll_functions {
struct daemon_parms {
unsigned interval;
+ unsigned wait_before_testing;
unsigned aborting;
unsigned background;
unsigned outstanding_count;