2 Bacula® - The Network Backup Solution
4 Copyright (C) 2000-2014 Free Software Foundation Europe e.V.
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.
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 Bacula® is a registered trademark of Kern Sibbald.
17 * Storage daemon specific defines and includes
24 #define STORAGE_DAEMON 1
26 /* Set to debug Lock() and Unlock() only */
27 #define DEV_DEBUG_LOCK
30 * Set to define all SD locks except Lock()
31 * currently this does not work. More locks
36 const int sd_dbglvl = 300;
38 const int sd_dbglvl = 300;
44 # ifdef HAVE_SYS_MTIO_H
45 # include <sys/mtio.h>
47 # ifdef HAVE_SYS_TAPE_H
48 # include <sys/tape.h>
50 /* Needed for Mac 10.6 (Snow Leopard) */
51 # include "lib/bmtio.h"
61 #include "stored_conf.h"
68 #include <zlib.h> /* compression headers */
70 #define uLongf uint32_t
75 #include "lib/fnmatch.h"
79 #define NAMELEN(dirent) (strlen((dirent)->d_name))
81 #ifndef HAVE_READDIR_R
82 int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result);
87 #include "vtape_dev.h"
88 #include "sd_plugins.h"
90 /* Daemon globals from stored.c */
91 extern STORES *me; /* "Global" daemon resource */
92 extern bool forge_on; /* proceed inspite of I/O errors */
93 extern pthread_mutex_t device_release_mutex;
94 extern pthread_cond_t wait_device_release; /* wait for any device to be released */
96 #endif /* __STORED_H_ */