From: Andre Noll Date: Mon, 8 Jun 2009 05:57:30 +0000 (+0200) Subject: Don't busy-loop if pre-create hook returns non-zero. X-Git-Tag: v0.1.3~4 X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=commitdiff_plain;h=409cd61e2e3db02a726f22c759f2725cf1dfa506 Don't busy-loop if pre-create hook returns non-zero. Sleep at least one minute before retrying. --- diff --git a/dss.c b/dss.c index b9afbc4..d2afc10 100644 --- a/dss.c +++ b/dss.c @@ -718,6 +718,8 @@ static int handle_pre_create_hook_exit(int status) DSS_NOTICE_LOG("deferring snapshot creation...\n"); warn_count = 60; /* warn only once per hour */ } + gettimeofday(&next_snapshot_time, NULL); + next_snapshot_time.tv_sec += 60; snapshot_creation_status = HS_READY; ret = 0; goto out;