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];
44 typedef struct s_vol_list VOL_LIST;
48 * !!!!!!!!!!!!!!!!!! NOTE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!
50 * !!! All records must have a pointer to !!!
51 * !!! the next item as the first item defined. !!!
53 * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
56 typedef struct s_bsr_volume {
57 struct s_bsr_volume *next;
58 char VolumeName[MAX_NAME_LENGTH];
61 typedef struct s_bsr_client {
62 struct s_bsr_client *next;
63 char ClientName[MAX_NAME_LENGTH];
66 typedef struct s_bsr_sessid {
67 struct s_bsr_sessid *next;
73 typedef struct s_bsr_sesstime {
74 struct s_bsr_sesstime *next;
79 typedef struct s_bsr_volfile {
80 struct s_bsr_volfile *next;
81 uint32_t sfile; /* start file */
82 uint32_t efile; /* end file */
86 typedef struct s_bsr_findex {
87 struct s_bsr_findex *next;
88 int32_t findex; /* start file index */
89 int32_t findex2; /* end file index */
93 typedef struct s_bsr_jobid {
94 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 */
122 typedef struct s_bsr {
123 struct s_bsr *next; /* pointer to next one */
124 int done; /* set when everything found */
126 int32_t Slot; /* Slot */
127 BSR_VOLFILE *volfile;
128 BSR_SESSTIME *sesstime;
133 BSR_FINDEX *FileIndex;
134 BSR_JOBTYPE *JobType;
135 BSR_JOBLEVEL *JobLevel;
137 // FF_PKT *ff; /* include/exclude */