From 261d57652a878858da60c06f31add2d38b7d6135 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 14 Dec 2011 20:16:28 +0100 Subject: [PATCH] Fix bug #3322 don't poll when operator is labeling tapes --- bacula/src/stored/wait.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bacula/src/stored/wait.c b/bacula/src/stored/wait.c index 6b4e9eb891..0a7a3d1bf1 100644 --- a/bacula/src/stored/wait.c +++ b/bacula/src/stored/wait.c @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2000-2009 Free Software Foundation Europe e.V. + Copyright (C) 2000-2011 Free Software Foundation Europe e.V. The main author of Bacula is Kern Sibbald, with contributions from many others, a complete list can be found in the file AUTHORS. @@ -33,7 +33,6 @@ * * Kern Sibbald, March 2005 * - * Version $Id$ */ @@ -136,6 +135,13 @@ int wait_for_sysop(DCR *dcr) break; } + /* + * Continue waiting if operator is labeling volumes + */ + if (dev->blocked() == BST_WRITING_LABEL) { + continue; + } + if (dev->rem_wait_sec <= 0) { /* on exceeding wait time return */ Dmsg0(dbglvl, "Exceed wait time.\n"); stat = W_TIMEOUT; -- 2.39.5