2 Bacula® - The Network Backup Solution
4 Copyright (C) 2000-2008 Free Software Foundation Europe e.V.
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 two of the GNU General Public
10 License as published by the Free Software Foundation and included
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.
18 You should have received a copy of the GNU 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
23 Bacula® is a registered trademark of John Walker.
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.
29 * Storage daemon specific defines and includes
37 #define STORAGE_DAEMON 1
39 /* Set to debug mutexes */
40 //#define SD_DEBUG_LOCK
41 const int sd_dbglvl = 300;
46 # ifdef HAVE_SYS_MTIO_H
47 # include <sys/mtio.h>
49 # ifdef HAVE_SYS_TAPE_H
50 # include <sys/tape.h>
58 #include "stored_conf.h"
64 #include <zlib.h> /* compression headers */
66 #define uLongf uint32_t
71 #include "lib/fnmatch.h"
75 #define NAMELEN(dirent) (strlen((dirent)->d_name))
77 #ifndef HAVE_READDIR_R
78 int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result);
82 # include "faketape.h"
85 /* Daemon globals from stored.c */
86 extern STORES *me; /* "Global" daemon resource */
87 extern bool forge_on; /* proceed inspite of I/O errors */
88 extern pthread_mutex_t device_release_mutex;
89 extern pthread_cond_t wait_device_release; /* wait for any device to be released */
91 #endif /* __STORED_H_ */