]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/bsr.h
Update doc, default working directory bscan
[bacula/bacula] / bacula / src / stored / bsr.h
index 98228c906f319fff2a7366654080efa017947fa0..39acdd562450dd5a416c4673720ed5fffddd78ef 100644 (file)
@@ -39,6 +39,8 @@
 struct s_vol_list {
    struct s_vol_list *next;
    char VolumeName[MAX_NAME_LENGTH];
+   int Slot; 
+   int start_file;
 };
 typedef struct s_vol_list VOL_LIST;
 
@@ -52,6 +54,11 @@ typedef struct s_vol_list VOL_LIST;
  * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  */
 
+typedef struct s_bsr_volume {
+   struct s_bsr_volume *next;
+   char VolumeName[MAX_NAME_LENGTH];
+} BSR_VOLUME;
+
 typedef struct s_bsr_client {
    struct s_bsr_client *next;
    char ClientName[MAX_NAME_LENGTH];
@@ -61,34 +68,41 @@ typedef struct s_bsr_sessid {
    struct s_bsr_sessid *next;
    uint32_t sessid;
    uint32_t sessid2;
-   int found;
+   int done;                         /* local done */
 } BSR_SESSID;
 
 typedef struct s_bsr_sesstime {
    struct s_bsr_sesstime *next;
    uint32_t sesstime;
-   int found;
+   int done;                         /* local done */
 } BSR_SESSTIME;
 
 typedef struct s_bsr_volfile {
    struct s_bsr_volfile *next;
    uint32_t sfile;                   /* start file */
    uint32_t efile;                   /* end file */
-   int found;
+   int done;                         /* local done */
 } BSR_VOLFILE;
 
+typedef struct s_bsr_volblock {
+   struct s_bsr_volblock *next;
+   uint32_t sblock;                  /* start block */
+   uint32_t eblock;                  /* end block */
+   int done;                         /* local done */
+} BSR_VOLBLOCK;
+
+
 typedef struct s_bsr_findex {
    struct s_bsr_findex *next;
    int32_t findex;                   /* start file index */
    int32_t findex2;                  /* end file index */
-   int found;
+   int done;                         /* local done */
 } BSR_FINDEX;
 
 typedef struct s_bsr_jobid {
    struct s_bsr_jobid *next;
    uint32_t JobId;
    uint32_t JobId2;
-   int found;
 } BSR_JOBID;
 
 typedef struct s_bsr_jobtype {
@@ -104,15 +118,23 @@ typedef struct s_bsr_joblevel {
 typedef struct s_bsr_job {
    struct s_bsr_job *next;
    char Job[MAX_NAME_LENGTH];
-   int found;
+   int done;
 } BSR_JOB;
 
+typedef struct s_bsr_stream {
+   struct s_bsr_stream *next;
+   int32_t stream;                   /* stream desired */
+} BSR_STREAM;
 
 typedef struct s_bsr {
    struct s_bsr *next;               /* pointer to next one */
    int          done;                /* set when everything found */
-   char        *VolumeName;
+   BSR_VOLUME  *volume;
+   int32_t      Slot;                /* Slot */
+   uint32_t     count;               /* count of files to restore this bsr */
+   uint32_t     found;               /* count of restored files this bsr */
    BSR_VOLFILE *volfile;
+   BSR_VOLBLOCK *volblock;
    BSR_SESSTIME *sesstime;
    BSR_SESSID  *sessid;
    BSR_JOBID   *JobId;
@@ -121,7 +143,8 @@ typedef struct s_bsr {
    BSR_FINDEX  *FileIndex;
    BSR_JOBTYPE *JobType;
    BSR_JOBLEVEL *JobLevel;
-   FF_PKT *ff;                       /* include/exclude */
+   BSR_STREAM  *stream;
+// FF_PKT *ff;                       /* include/exclude */
 } BSR;