2 * BootStrap record definition -- for restoring files.
4 * Kern Sibbald, June 2002
10 Copyright (C) 2000, 2001, 2002 Kern Sibbald and John Walker
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,
33 #include "findlib/find.h"
36 * List of Volume names to be read by Storage daemon.
37 * Formed by Storage daemon from BSR
40 struct s_vol_list *next;
41 char VolumeName[MAX_NAME_LENGTH];
45 typedef struct s_vol_list VOL_LIST;
49 * !!!!!!!!!!!!!!!!!! NOTE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!
51 * !!! All records must have a pointer to !!!
52 * !!! the next item as the first item defined. !!!
54 * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
57 typedef struct s_bsr_volume {
58 struct s_bsr_volume *next;
59 char VolumeName[MAX_NAME_LENGTH];
62 typedef struct s_bsr_client {
63 struct s_bsr_client *next;
64 char ClientName[MAX_NAME_LENGTH];
67 typedef struct s_bsr_sessid {
68 struct s_bsr_sessid *next;
71 int done; /* local done */
74 typedef struct s_bsr_sesstime {
75 struct s_bsr_sesstime *next;
77 int done; /* local done */
80 typedef struct s_bsr_volfile {
81 struct s_bsr_volfile *next;
82 uint32_t sfile; /* start file */
83 uint32_t efile; /* end file */
84 int done; /* local done */
87 typedef struct s_bsr_findex {
88 struct s_bsr_findex *next;
89 int32_t findex; /* start file index */
90 int32_t findex2; /* end file index */
91 int done; /* local done */
94 typedef struct s_bsr_jobid {
95 struct s_bsr_jobid *next;
100 typedef struct s_bsr_jobtype {
101 struct s_bsr_jobtype *next;
105 typedef struct s_bsr_joblevel {
106 struct s_bsr_joblevel *next;
110 typedef struct s_bsr_job {
111 struct s_bsr_job *next;
112 char Job[MAX_NAME_LENGTH];
116 typedef struct s_bsr_stream {
117 struct s_bsr_stream *next;
118 int32_t stream; /* stream desired */
121 typedef struct s_bsr {
122 struct s_bsr *next; /* pointer to next one */
123 int done; /* set when everything found */
125 int32_t Slot; /* Slot */
126 uint32_t count; /* count of files to restore this bsr */
127 uint32_t found; /* count of restored files this bsr */
128 BSR_VOLFILE *volfile;
129 BSR_SESSTIME *sesstime;
134 BSR_FINDEX *FileIndex;
135 BSR_JOBTYPE *JobType;
136 BSR_JOBLEVEL *JobLevel;
138 // FF_PKT *ff; /* include/exclude */