2 Bacula(R) - The Network Backup Solution
4 Copyright (C) 2000-2015 Kern Sibbald
5 Copyright (C) 2000-2014 Free Software Foundation Europe e.V.
7 The original author of Bacula is Kern Sibbald, with contributions
8 from many others, a complete list can be found in the file AUTHORS.
10 You may use this file and others of this release according to the
11 license defined in the LICENSE file, which includes the Affero General
12 Public License, v3.0 ("AGPLv3") and some additional permissions and
13 terms pursuant to its AGPLv3 Section 7.
15 This notice must be preserved when any source code is
16 conveyed and/or propagated.
18 Bacula(R) is a registered trademark of Kern Sibbald.
21 * Storage daemon specific defines and includes
28 #define STORAGE_DAEMON 1
30 /* Set to debug Lock() and Unlock() only */
31 #define DEV_DEBUG_LOCK
34 * Set to define all SD locks except Lock()
35 * currently this does not work. More locks
40 const int sd_dbglvl = 300;
42 const int sd_dbglvl = 300;
48 # ifdef HAVE_SYS_MTIO_H
49 # include <sys/mtio.h>
51 # ifdef HAVE_SYS_TAPE_H
52 # include <sys/tape.h>
54 /* Needed for Mac 10.6 (Snow Leopard) */
55 # include "lib/bmtio.h"
65 #include "stored_conf.h"
72 #include <zlib.h> /* compression headers */
74 #define uLongf uint32_t
79 #include "lib/fnmatch.h"
83 #define NAMELEN(dirent) (strlen((dirent)->d_name))
85 #ifndef HAVE_READDIR_R
86 int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result);
91 #include "vtape_dev.h"
92 #include "sd_plugins.h"
94 /* Daemon globals from stored.c */
95 extern STORES *me; /* "Global" daemon resource */
96 extern bool forge_on; /* proceed inspite of I/O errors */
97 extern pthread_mutex_t device_release_mutex;
98 extern pthread_cond_t wait_device_release; /* wait for any device to be released */
100 #endif /* __STORED_H_ */