]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/dird/bsr.h
Backport from Bacula Enterprise
[bacula/bacula] / bacula / src / dird / bsr.h
1 /*
2    Bacula(R) - The Network Backup Solution
3
4    Copyright (C) 2000-2015 Kern Sibbald
5    Copyright (C) 2002-2014 Free Software Foundation Europe e.V.
6
7    The original author of Bacula is Kern Sibbald, with contributions
8    from many others, a complete list can be found in the file AUTHORS.
9
10    You may use this file and others of this release according to the
11    license defined in the LICENSE file, which includes the Affero General
12    Public License, v3.0 ("AGPLv3") and some additional permissions and
13    terms pursuant to its AGPLv3 Section 7.
14
15    This notice must be preserved when any source code is 
16    conveyed and/or propagated.
17
18    Bacula(R) is a registered trademark of Kern Sibbald.
19 */
20 /*
21  *
22  *   Bootstrap Record header file
23  *
24  *      BSR (bootstrap record) handling routines split from
25  *        ua_restore.c July MMIII
26  *
27  *     Kern Sibbald, July MMII
28  *
29  */
30
31
32
33 /* FileIndex entry in restore bootstrap record */
34 struct RBSR_FINDEX {
35    RBSR_FINDEX *next;
36    int32_t findex;
37    int32_t findex2;
38 };
39
40 /*
41  * Restore bootstrap record -- not the real one, but useful here
42  *  The restore bsr is a chain of BSR records (linked by next).
43  *  Each BSR represents a single JobId, and within it, it
44  *    contains a linked list of file indexes for that JobId.
45  *    The complete_bsr() routine, will then add all the volumes
46  *    on which the Job is stored to the BSR.
47  */
48 struct RBSR {
49    RBSR *next;                        /* next JobId */
50    JobId_t JobId;                     /* JobId this bsr */
51    uint32_t VolSessionId;
52    uint32_t VolSessionTime;
53    int      VolCount;                 /* Volume parameter count */
54    VOL_PARAMS *VolParams;             /* Volume, start/end file/blocks */
55    RBSR_FINDEX *fi;                   /* File indexes this JobId */
56    char *fileregex;                   /* Only restore files matching regex */
57 };