]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/filed/filed.h
Backport from BEE
[bacula/bacula] / bacula / src / filed / filed.h
1 /*
2    Bacula® - The Network Backup Solution
3
4    Copyright (C) 2001-2014 Free Software Foundation Europe e.V.
5
6    The main author of Bacula is Kern Sibbald, with contributions from many
7    others, a complete list can be found in the file AUTHORS.
8
9    You may use this file and others of this release according to the
10    license defined in the LICENSE file, which includes the Affero General
11    Public License, v3.0 ("AGPLv3") and some additional permissions and
12    terms pursuant to its AGPLv3 Section 7.
13
14    Bacula® is a registered trademark of Kern Sibbald.
15 */
16 /*
17  * Bacula File Daemon specific configuration and defines
18  *
19  *     Kern Sibbald, Jan MMI
20  *
21  */
22
23 /*
24  * Number of acl errors to report per job.
25  */
26 #define ACL_REPORT_ERR_MAX_PER_JOB      25
27
28 /*
29  * Number of xattr errors to report per job.
30  */
31 #define XATTR_REPORT_ERR_MAX_PER_JOB    25
32
33 /*
34  * Return codes from acl subroutines.
35  */
36 typedef enum {
37    bacl_exit_fatal = -1,
38    bacl_exit_error = 0,
39    bacl_exit_ok = 1
40 } bacl_exit_code;
41
42 /*
43  * Return codes from xattr subroutines.
44  */
45 typedef enum {
46    bxattr_exit_fatal = -1,
47    bxattr_exit_error = 0,
48    bxattr_exit_ok = 1
49 } bxattr_exit_code;
50
51 #define FILE_DAEMON 1
52 #include "lib/htable.h"
53 #include "filed_conf.h"
54 #include "fd_plugins.h"
55 #include "findlib/find.h"
56 #include "acl.h"
57 #include "xattr.h"
58 #include "jcr.h"
59 #include "protos.h"                   /* file daemon prototypes */
60 #include "lib/runscript.h"
61 #include "lib/breg.h"
62 #ifdef HAVE_LIBZ
63 #include <zlib.h>                     /* compression headers */
64 #else
65 #define uLongf uint32_t
66 #endif
67 #ifdef HAVE_LZO
68 #include <lzo/lzoconf.h>
69 #include <lzo/lzo1x.h>
70 #endif
71
72 extern CLIENT *me;                    /* "Global" Client resource */
73 extern bool win32decomp;              /* Use decomposition of BackupRead data */
74 extern bool no_win32_write_errors;    /* Ignore certain errors */
75
76 void terminate_filed(int sig);
77
78 struct s_cmds {
79    const char *cmd;
80    int (*func)(JCR *);
81    int monitoraccess; /* specify if monitors have access to this function */
82 };
83
84 void allow_os_suspensions();
85 void prevent_os_suspensions();