]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/filed/filed.h
Fix plugin bug with multiple simultaneous jobs
[bacula/bacula] / bacula / src / filed / filed.h
1 /*
2    Bacula® - The Network Backup Solution
3
4    Copyright (C) 2001-2010 Free Software Foundation Europe e.V.
5
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 three of the GNU Affero General Public
10    License as published by the Free Software Foundation and included
11    in the file LICENSE.
12
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.
17
18    You should have received a copy of the GNU Affero 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
21    02110-1301, USA.
22
23    Bacula® is a registered trademark of Kern Sibbald.
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.
27 */
28 /*
29  * Bacula File Daemon specific configuration and defines
30  *
31  *     Kern Sibbald, Jan MMI
32  *
33  */
34
35 /*
36  * Number of acl errors to report per job.
37  */
38 #define ACL_REPORT_ERR_MAX_PER_JOB      25
39
40 /*
41  * Number of xattr errors to report per job.
42  */
43 #define XATTR_REPORT_ERR_MAX_PER_JOB    25
44
45 /*
46  * Return codes from acl subroutines.
47  */
48 typedef enum {
49    bacl_exit_fatal = -1,
50    bacl_exit_error = 0,
51    bacl_exit_ok = 1
52 } bacl_exit_code;
53
54 /*
55  * Return codes from xattr subroutines.
56  */
57 typedef enum {
58    bxattr_exit_fatal = -1,
59    bxattr_exit_error = 0,
60    bxattr_exit_ok = 1
61 } bxattr_exit_code;
62
63 #define FILE_DAEMON 1
64 #include "lib/htable.h"
65 #include "filed_conf.h"
66 #include "fd_plugins.h"
67 #include "findlib/find.h"
68 #include "acl.h"
69 #include "xattr.h"
70 #include "jcr.h"
71 #include "protos.h"                   /* file daemon prototypes */
72 #include "lib/runscript.h"
73 #include "lib/breg.h"
74 #ifdef HAVE_LIBZ
75 #include <zlib.h>                     /* compression headers */
76 #else
77 #define uLongf uint32_t
78 #endif
79 #ifdef HAVE_LZO
80 #include <lzo/lzoconf.h>
81 #include <lzo/lzo1x.h>
82 #endif
83
84 extern CLIENT *me;                    /* "Global" Client resource */
85
86 void terminate_filed(int sig);
87