]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/filed/protos.h
Don't copy xattr and acl streams.
[bacula/bacula] / bacula / src / filed / protos.h
1 /*
2    Bacula® - The Network Backup Solution
3
4    Copyright (C) 2000-2010 Free Software Foundation Europe e.V.
5
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 three of the GNU Affero General Public
10    License as published by the Free Software Foundation and included
11    in the file LICENSE.
12
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.
17
18    You should have received a copy of the GNU Affero 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
21    02110-1301, USA.
22
23    Bacula® is a registered trademark of Kern Sibbald.
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.
27 */
28 /*
29  * Written by Kern Sibbald, MM 
30  *
31  */
32
33 extern bool blast_data_to_storage_daemon(JCR *jcr, char *addr);
34 extern void do_verify_volume(JCR *jcr);
35 extern void do_restore(JCR *jcr);
36 extern int authenticate_director(JCR *jcr);
37 extern int authenticate_storagedaemon(JCR *jcr);
38 extern int make_estimate(JCR *jcr);
39
40 /* From verify.c */
41 int digest_file(JCR *jcr, FF_PKT *ff_pkt, DIGEST *digest);
42 void do_verify(JCR *jcr);
43
44 /* From heartbeat.c */
45 void start_heartbeat_monitor(JCR *jcr);
46 void stop_heartbeat_monitor(JCR *jcr);
47 void start_dir_heartbeat(JCR *jcr);
48 void stop_dir_heartbeat(JCR *jcr);
49
50 /* From acl.c */
51 bacl_exit_code build_acl_streams(JCR *jcr, FF_PKT *ff_pkt);
52 bacl_exit_code parse_acl_streams(JCR *jcr, int stream, char *content, uint32_t content_length);
53
54 /* from accurate.c */
55 bool accurate_finish(JCR *jcr);
56 bool accurate_check_file(JCR *jcr, FF_PKT *ff_pkt);
57 bool accurate_mark_file_as_seen(JCR *jcr, char *fname);
58 void accurate_free(JCR *jcr);
59
60 /* from backup.c */
61 bool encode_and_send_attributes(JCR *jcr, FF_PKT *ff_pkt, int &data_stream);
62 void strip_path(FF_PKT *ff_pkt);
63 void unstrip_path(FF_PKT *ff_pkt);
64
65 /* from xattr.c */
66 bxattr_exit_code build_xattr_streams(JCR *jcr, FF_PKT *ff_pkt);
67 bxattr_exit_code parse_xattr_streams(JCR *jcr, int stream, char *content, uint32_t content_length);
68
69 /* from job.c */
70 findINCEXE *new_exclude(JCR *jcr);
71 findINCEXE *new_preinclude(JCR *jcr);
72 void set_incexe(JCR *jcr, findINCEXE *incexe);
73 void new_options(JCR *jcr, findINCEXE *incexe);
74 void add_file_to_fileset(JCR *jcr, const char *fname, bool is_file); 
75 int add_options_to_fileset(JCR *jcr, const char *item);
76 int add_wild_to_fileset(JCR *jcr, const char *item, int type);
77 int add_regex_to_fileset(JCR *jcr, const char *item, int type);
78 findINCEXE *new_include(JCR *jcr);