]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/stored/bsr.h
Fix for reused thread ids by FreeBSD + qfill command
[bacula/bacula] / bacula / src / stored / bsr.h
1 /*
2  * BootStrap record definition -- for restoring files.
3  *
4  *    Kern Sibbald, June 2002
5  *
6  *   Version $Id$
7  *
8  */
9 /*
10    Copyright (C) 2000-2003 Kern Sibbald and John Walker
11
12    This program is free software; you can redistribute it and/or
13    modify it under the terms of the GNU General Public License as
14    published by the Free Software Foundation; either version 2 of
15    the License, or (at your option) any later version.
16
17    This program is distributed in the hope that it will be useful,
18    but WITHOUT ANY WARRANTY; without even the implied warranty of
19    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20    General Public License for more details.
21
22    You should have received a copy of the GNU General Public
23    License along with this program; if not, write to the Free
24    Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
25    MA 02111-1307, USA.
26
27  */
28
29
30 #ifndef __BSR_H
31 #define __BSR_H 1
32
33 /*
34  * List of Volume names to be read by Storage daemon.
35  *  Formed by Storage daemon from BSR  
36  */
37 struct VOL_LIST {
38    VOL_LIST *next;
39    char VolumeName[MAX_NAME_LENGTH];
40    int Slot; 
41    int start_file;
42 };
43
44
45 /*
46  * !!!!!!!!!!!!!!!!!! NOTE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!
47  * !!!                                               !!!
48  * !!!   All records must have a pointer to          !!!
49  * !!!   the next item as the first item defined.    !!!
50  * !!!                                               !!!
51  * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
52  */
53
54 struct BSR_VOLUME {
55    BSR_VOLUME *next;
56    char VolumeName[MAX_NAME_LENGTH];
57 };           
58
59 struct BSR_CLIENT {
60    BSR_CLIENT *next;
61    char ClientName[MAX_NAME_LENGTH];
62 };           
63
64 struct BSR_SESSID {
65    BSR_SESSID *next;
66    uint32_t sessid;
67    uint32_t sessid2;
68    int done;                          /* local done */
69 };
70
71 struct BSR_SESSTIME {
72    BSR_SESSTIME *next;
73    uint32_t sesstime;
74    int done;                          /* local done */
75 };             
76
77 struct BSR_VOLFILE {
78    BSR_VOLFILE *next;
79    uint32_t sfile;                    /* start file */
80    uint32_t efile;                    /* end file */
81    int done;                          /* local done */
82 };
83
84 struct BSR_VOLBLOCK {
85    BSR_VOLBLOCK *next;
86    uint32_t sblock;                   /* start block */
87    uint32_t eblock;                   /* end block */
88    int done;                          /* local done */
89 };             
90
91
92 struct BSR_FINDEX {
93    BSR_FINDEX *next;
94    int32_t findex;                    /* start file index */
95    int32_t findex2;                   /* end file index */
96    int done;                          /* local done */
97 };           
98
99 struct BSR_JOBID {
100    BSR_JOBID *next;
101    uint32_t JobId;
102    uint32_t JobId2;
103 };          
104
105 struct BSR_JOBTYPE {
106    BSR_JOBTYPE *next;
107    uint32_t JobType;
108 };            
109
110 struct BSR_JOBLEVEL {
111    BSR_JOBLEVEL *next;
112    uint32_t JobLevel;
113 };             
114
115 struct BSR_JOB {
116    BSR_JOB *next;
117    char Job[MAX_NAME_LENGTH];
118    int done;
119 };
120
121 struct BSR_STREAM {
122    BSR_STREAM *next;
123    int32_t stream;                    /* stream desired */
124 };           
125
126 struct BSR {
127    BSR          *next;                /* pointer to next one */
128    int           done;                /* set when everything found */
129    BSR_VOLUME   *volume;
130    int32_t       Slot;                /* Slot */
131    uint32_t      count;               /* count of files to restore this bsr */
132    uint32_t      found;               /* count of restored files this bsr */
133    BSR_VOLFILE  *volfile;
134    BSR_VOLBLOCK *volblock;
135    BSR_SESSTIME *sesstime;
136    BSR_SESSID   *sessid;
137    BSR_JOBID    *JobId;
138    BSR_JOB      *job;
139    BSR_CLIENT   *client;
140    BSR_FINDEX   *FileIndex;
141    BSR_JOBTYPE  *JobType;
142    BSR_JOBLEVEL *JobLevel;
143    BSR_STREAM   *stream;
144 };
145
146
147 #endif