X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Ffiled%2Ffiled.h;h=f6c785f59695bd9c15422480433bc9f42de0f622;hb=72863eb7569fa014b05e8f98aac32d773825b51c;hp=eb2897256a4e7beb1cad4baad72039a7c1c37507;hpb=51a10b73cb544fda80b57e23cb285c7157d185f3;p=bacula%2Fbacula diff --git a/bacula/src/filed/filed.h b/bacula/src/filed/filed.h index eb2897256a..f6c785f596 100644 --- a/bacula/src/filed/filed.h +++ b/bacula/src/filed/filed.h @@ -1,12 +1,12 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2001-2008 Free Software Foundation Europe e.V. + Copyright (C) 2001-2010 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 + modify it under the terms of version three of the GNU Affero General Public License as published by the Free Software Foundation and included in the file LICENSE. @@ -15,7 +15,7 @@ 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 + You should have received a copy of the GNU Affero 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. @@ -30,15 +30,43 @@ * * Kern Sibbald, Jan MMI * - * Version $Id$ */ +/* + * Number of acl errors to report per job. + */ +#define ACL_REPORT_ERR_MAX_PER_JOB 25 + +/* + * Number of xattr errors to report per job. + */ +#define XATTR_REPORT_ERR_MAX_PER_JOB 25 + +/* + * Return codes from acl subroutines. + */ +typedef enum { + bacl_exit_fatal = -1, + bacl_exit_error = 0, + bacl_exit_ok = 1 +} bacl_exit_code; + +/* + * Return codes from xattr subroutines. + */ +typedef enum { + bxattr_exit_fatal = -1, + bxattr_exit_error = 0, + bxattr_exit_ok = 1 +} bxattr_exit_code; #define FILE_DAEMON 1 #include "lib/htable.h" #include "filed_conf.h" #include "fd_plugins.h" #include "findlib/find.h" +#include "acl.h" +#include "xattr.h" #include "jcr.h" #include "protos.h" /* file daemon prototypes */ #include "lib/runscript.h" @@ -51,8 +79,5 @@ extern CLIENT *me; /* "Global" Client resource */ -typedef enum { - bsub_exit_fatal = -1, - bsub_exit_nok = 0, - bsub_exit_ok = 1 -} bsub_exit_code; +void terminate_filed(int sig); +