X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Ffiled%2Ffiled.h;h=735021e16e819d5847e08fc3fb2eddd553a0916f;hb=537d8957f060575d515ff6fef287b281db98aed8;hp=eb2897256a4e7beb1cad4baad72039a7c1c37507;hpb=a838b9c0ff53f7aa017f68c6fb09a3ffb9fe83c7;p=bacula%2Fbacula diff --git a/bacula/src/filed/filed.h b/bacula/src/filed/filed.h index eb2897256a..735021e16e 100644 --- a/bacula/src/filed/filed.h +++ b/bacula/src/filed/filed.h @@ -1,58 +1,72 @@ /* - Bacula® - The Network Backup Solution - - Copyright (C) 2001-2008 Free Software Foundation Europe e.V. - - 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 and included - 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., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. - - Bacula® is a registered trademark of Kern Sibbald. - The licensor of Bacula is the Free Software Foundation Europe - (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich, - Switzerland, email:ftf@fsfeurope.org. + Bacula(R) - The Network Backup Solution + + Copyright (C) 2000-2016 Kern Sibbald + + The original author of Bacula is Kern Sibbald, with contributions + from many others, a complete list can be found in the file AUTHORS. + + You may use this file and others of this release according to the + license defined in the LICENSE file, which includes the Affero General + Public License, v3.0 ("AGPLv3") and some additional permissions and + terms pursuant to its AGPLv3 Section 7. + + This notice must be preserved when any source code is + conveyed and/or propagated. + + Bacula(R) is a registered trademark of Kern Sibbald. */ /* * Bacula File Daemon specific configuration and defines * * Kern Sibbald, Jan MMI * - * Version $Id$ */ +//#define TEST_WORKER +#ifdef TEST_WORKER +#define ERROR_BUFFER_OVERFLOW 1 +#define ERROR_SUCCESS 0 +#endif + +/* acl errors to report per job. */ +#define ACL_MAX_ERROR_PRINT_PER_JOB 25 + +/* xattr errors to report per job. */ +#define XATTR_MAX_ERROR_PRINT_PER_JOB 25 #define FILE_DAEMON 1 -#include "lib/htable.h" -#include "filed_conf.h" -#include "fd_plugins.h" -#include "findlib/find.h" -#include "jcr.h" -#include "protos.h" /* file daemon prototypes */ -#include "lib/runscript.h" -#include "lib/breg.h" +#include "lib/htable.h" +#include "filed_conf.h" +#include "fd_plugins.h" +#include "fd_snapshot.h" +#include "findlib/find.h" +#include "xacl.h" +#include "jcr.h" +#include "protos.h" /* file daemon prototypes */ +#include "lib/runscript.h" +#include "lib/breg.h" #ifdef HAVE_LIBZ -#include /* compression headers */ +#include /* compression headers */ #else #define uLongf uint32_t #endif +#ifdef HAVE_LZO +#include +#include +#endif + +extern CLIENT *me; /* "Global" Client resource */ +extern bool win32decomp; /* Use decomposition of BackupRead data */ +extern bool no_win32_write_errors; /* Ignore certain errors */ + +void terminate_filed(int sig); -extern CLIENT *me; /* "Global" Client resource */ +struct s_cmds { + const char *cmd; + int (*func)(JCR *); + int monitoraccess; /* specify if monitors have access to this function */ +}; -typedef enum { - bsub_exit_fatal = -1, - bsub_exit_nok = 0, - bsub_exit_ok = 1 -} bsub_exit_code; +void allow_os_suspensions(); +void prevent_os_suspensions();