2 * Storage daemon specific defines and includes
7 Copyright (C) 2000-2005 Kern Sibbald
9 This program is free software; you can redistribute it and/or
10 modify it under the terms of the GNU General Public License
11 version 2 as amended with additional clauses defined in the
12 file LICENSE in the main source directory.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 the file LICENSE for additional details.
24 #define STORAGE_DAEMON 1
29 # ifdef HAVE_SYS_MTIO_H
30 # include <sys/mtio.h>
32 # ifdef HAVE_SYS_TAPE_H
33 # include <sys/tape.h>
40 #include "stored_conf.h"
46 #include <zlib.h> /* compression headers */
48 #define uLongf uint32_t
53 #include "lib/fnmatch.h"
57 #define NAMELEN(dirent) (strlen((dirent)->d_name))
59 #ifndef HAVE_READDIR_R
60 int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result);
63 /* Daemon globals from stored.c */
64 extern STORES *me; /* "Global" daemon resource */
65 extern bool forge_on; /* proceed inspite of I/O errors */
66 extern pthread_mutex_t device_release_mutex;
67 extern pthread_cond_t wait_device_release; /* wait for any device to be released */
69 #endif /* __STORED_H_ */