X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fstored%2Fstored.h;h=0c458244cf21a0cc79a4b1f1366bf9ec191b0bcb;hb=a839f0af80ae757becd93b472d39cad6955b6351;hp=a74db4da166d406804aeb3aff2a17733824c1e26;hpb=b9f3f7b83102ae1ef9a018d248cf91c42727433b;p=bacula%2Fbacula diff --git a/bacula/src/stored/stored.h b/bacula/src/stored/stored.h index a74db4da16..0c458244cf 100644 --- a/bacula/src/stored/stored.h +++ b/bacula/src/stored/stored.h @@ -4,24 +4,32 @@ * Version $Id$ */ /* - Copyright (C) 2000-2003 Kern Sibbald and John Walker + Bacula® - The Network Backup Solution - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License as - published by the Free Software Foundation; either version 2 of - the License, or (at your option) any later version. + Copyright (C) 2000-2006 Free Software Foundation Europe e.V. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of + The main author of Bacula is Kern Sibbald, with contributions from + many others, a complete list can be found in the file AUTHORS. + This program is Free Software; you can redistribute it and/or + modify it under the terms of version two of the GNU General Public + License as published by the Free Software Foundation plus additions + that are listed in the file LICENSE. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - You should have received a copy of the GNU General Public - License along with this program; if not, write to the Free - Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, - MA 02111-1307, USA. + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. - */ + Bacula® is a registered trademark of John Walker. + The licensor of Bacula is the Free Software Foundation Europe + (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich, + Switzerland, email:ftf@fsfeurope.org. +*/ #ifndef __STORED_H_ #define __STORED_H_ @@ -30,9 +38,14 @@ #ifdef HAVE_MTIO_H #include -#endif -#ifdef HAVE_SYS_MTIO_H -#include +#else +# ifdef HAVE_SYS_MTIO_H +# include +# else +# ifdef HAVE_SYS_TAPE_H +# include +# endif +# endif #endif #include "block.h" #include "record.h" @@ -40,20 +53,30 @@ #include "stored_conf.h" #include "bsr.h" #include "jcr.h" +#include "reserve.h" #include "protos.h" #ifdef HAVE_LIBZ #include /* compression headers */ #else #define uLongf uint32_t #endif +#ifdef HAVE_FNMATCH +#include +#else +#include "lib/fnmatch.h" +#endif +#ifdef HAVE_DIRENT_H +#include +#define NAMELEN(dirent) (strlen((dirent)->d_name)) +#endif +#ifndef HAVE_READDIR_R +int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result); +#endif -extern char errmsg[]; /* general error message */ - +/* Daemon globals from stored.c */ extern STORES *me; /* "Global" daemon resource */ - -#ifdef debug_tracing -extern int _rewind_dev(char *file, int line, DEVICE *dev); -#define rewind_dev(d) _rewind_dev(__FILE__, __LINE__, (d)) -#endif +extern bool forge_on; /* proceed inspite of I/O errors */ +extern pthread_mutex_t device_release_mutex; +extern pthread_cond_t wait_device_release; /* wait for any device to be released */ #endif /* __STORED_H_ */