2 Bacula(R) - The Network Backup Solution
4 Copyright (C) 2000-2017 Kern Sibbald
6 The original author of Bacula is Kern Sibbald, with contributions
7 from many others, a complete list can be found in the file AUTHORS.
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.
14 This notice must be preserved when any source code is
15 conveyed and/or propagated.
17 Bacula(R) is a registered trademark of Kern Sibbald.
20 * Storage daemon specific defines and includes
27 #define STORAGE_DAEMON 1
29 /* Set to debug Lock() and Unlock() only */
30 #define DEV_DEBUG_LOCK
33 * Set to define all SD locks except Lock()
34 * currently this does not work. More locks
39 const int sd_dbglvl = 300;
41 const int sd_dbglvl = 300;
44 #undef SD_DEDUP_SUPPORT
49 # ifdef HAVE_SYS_MTIO_H
50 # include <sys/mtio.h>
52 # ifdef HAVE_SYS_TAPE_H
53 # include <sys/tape.h>
55 /* Needed for Mac 10.6 (Snow Leopard) */
56 # include "lib/bmtio.h"
64 #include "stored_conf.h"
71 #include <zlib.h> /* compression headers */
73 #define uLongf uint32_t
78 #include "lib/fnmatch.h"
82 #define NAMELEN(dirent) (strlen((dirent)->d_name))
84 #ifndef HAVE_READDIR_R
85 int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result);
92 #include "vtape_dev.h"
93 #include "cloud_dev.h"
94 #include "aligned_dev.h"
95 #include "sd_plugins.h"
97 /* Daemon globals from stored.c */
98 extern STORES *me; /* "Global" daemon resource */
99 extern bool forge_on; /* proceed inspite of I/O errors */
100 extern pthread_mutex_t device_release_mutex;
101 extern pthread_cond_t wait_device_release; /* wait for any device to be released */
103 #endif /* __STORED_H_ */