2 * BootStrap record definition -- for restoring files.
4 * Kern Sibbald, June 2002
10 Copyright (C) 2002-2006 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
14 version 2 as amended with additional clauses defined in the
15 file LICENSE in the main source directory.
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
20 the file LICENSE for additional details.
29 * List of Volume names to be read by Storage daemon.
30 * Formed by Storage daemon from BSR
34 char VolumeName[MAX_NAME_LENGTH];
35 char MediaType[MAX_NAME_LENGTH];
36 char device[MAX_NAME_LENGTH]; /* ***FIXME*** use alist here */
43 * !!!!!!!!!!!!!!!!!! NOTE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!
45 * !!! All records must have a pointer to !!!
46 * !!! the next item as the first item defined. !!!
48 * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
53 char VolumeName[MAX_NAME_LENGTH];
54 char MediaType[MAX_NAME_LENGTH];
55 char device[MAX_NAME_LENGTH]; /* ***FIXME*** use alist here */
56 int32_t Slot; /* Slot */
61 char ClientName[MAX_NAME_LENGTH];
73 bool done; /* local done */
78 uint32_t sfile; /* start file */
79 uint32_t efile; /* end file */
80 bool done; /* local done */
85 uint32_t sblock; /* start block */
86 uint32_t eblock; /* end block */
87 bool done; /* local done */
93 int32_t findex; /* start file index */
94 int32_t findex2; /* end file index */
95 bool done; /* local done */
109 struct BSR_JOBLEVEL {
116 char Job[MAX_NAME_LENGTH];
117 bool done; /* local done */
122 int32_t stream; /* stream desired */
126 BSR *next; /* pointer to next one */
127 BSR *root; /* root bsr */
128 bool reposition; /* set when any bsr is marked done */
129 bool mount_next_volume; /* set when next volume should be mounted */
130 bool done; /* set when everything found for this bsr */
131 bool use_fast_rejection; /* set if fast rejection can be used */
132 bool use_positioning; /* set if we can position the archive */
134 uint32_t count; /* count of files to restore this bsr */
135 uint32_t found; /* count of restored files this bsr */
136 BSR_VOLFILE *volfile;
137 BSR_VOLBLOCK *volblock;
138 BSR_SESSTIME *sesstime;
143 BSR_FINDEX *FileIndex;
144 BSR_JOBTYPE *JobType;
145 BSR_JOBLEVEL *JobLevel;