2 * BootStrap record definition -- for restoring files.
4 * Kern Sibbald, June 2002
10 Copyright (C) 2000-2005 Kern Sibbald
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.
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.
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,
34 * List of Volume names to be read by Storage daemon.
35 * Formed by Storage daemon from BSR
39 char VolumeName[MAX_NAME_LENGTH];
40 char MediaType[MAX_NAME_LENGTH];
47 * !!!!!!!!!!!!!!!!!! NOTE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!
49 * !!! All records must have a pointer to !!!
50 * !!! the next item as the first item defined. !!!
52 * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
57 char VolumeName[MAX_NAME_LENGTH];
58 char MediaType[MAX_NAME_LENGTH];
63 char ClientName[MAX_NAME_LENGTH];
75 bool done; /* local done */
80 uint32_t sfile; /* start file */
81 uint32_t efile; /* end file */
82 bool done; /* local done */
87 uint32_t sblock; /* start block */
88 uint32_t eblock; /* end block */
89 bool done; /* local done */
95 int32_t findex; /* start file index */
96 int32_t findex2; /* end file index */
97 bool done; /* local done */
111 struct BSR_JOBLEVEL {
118 char Job[MAX_NAME_LENGTH];
119 bool done; /* local done */
124 int32_t stream; /* stream desired */
128 BSR *next; /* pointer to next one */
129 BSR *root; /* root bsr */
130 bool reposition; /* set when any bsr is marked done */
131 bool mount_next_volume; /* set when next volume should be mounted */
132 bool done; /* set when everything found for this bsr */
133 bool use_fast_rejection; /* set if fast rejection can be used */
134 bool use_positioning; /* set if we can position the archive */
136 int32_t Slot; /* Slot */
137 uint32_t count; /* count of files to restore this bsr */
138 uint32_t found; /* count of restored files this bsr */
139 BSR_VOLFILE *volfile;
140 BSR_VOLBLOCK *volblock;
141 BSR_SESSTIME *sesstime;
146 BSR_FINDEX *FileIndex;
147 BSR_JOBTYPE *JobType;
148 BSR_JOBLEVEL *JobLevel;