2 Bacula® - The Network Backup Solution
4 Copyright (C) 2000-2007 Free Software Foundation Europe e.V.
6 The main author of Bacula is Kern Sibbald, with contributions from
7 many others, a complete list can be found in the file AUTHORS.
8 This program is Free Software; you can redistribute it and/or
9 modify it under the terms of version two of the GNU General Public
10 License as published by the Free Software Foundation and included
13 This program is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23 Bacula® is a registered trademark of John Walker.
24 The licensor of Bacula is the Free Software Foundation Europe
25 (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
26 Switzerland, email:ftf@fsfeurope.org.
29 * Includes specific to the Director
31 * Kern Sibbald, December MM
36 #include "lib/runscript.h"
38 #include "dird_conf.h"
40 #define DIRECTOR_DAEMON 1
42 #include "cats/cats.h"
49 /* Globals that dird.c exports */
50 extern DIRRES *director; /* Director resource */
51 extern int FDConnectTimeout;
52 extern int SDConnectTimeout;
54 /* Used in ua_prune.c and ua_purge.c */
60 #define MAX_DEL_LIST_LEN 2000000
63 JobId_t *JobId; /* array of JobIds */
64 char *PurgedFiles; /* Array of PurgedFile flags */
65 int num_ids; /* ids stored */
66 int max_ids; /* size of array */
67 int num_del; /* number deleted */
68 int tot_ids; /* total to process */
71 /* Flags for find_next_volume_for_append() */
73 fnv_create_vol = true,
74 fnv_no_create_vol = false,