From 409cd61e2e3db02a726f22c759f2725cf1dfa506 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 8 Jun 2009 07:57:30 +0200 Subject: [PATCH] Don't busy-loop if pre-create hook returns non-zero. Sleep at least one minute before retrying. --- dss.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.2