]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/bextract.c
Second cut of drive switching during backup
[bacula/bacula] / bacula / src / stored / bextract.c
index d3bda67e04ea856197a30b18e9735ad958de7326..7679da70af7b7756ed05e64a99d896500751c07f 100644 (file)
@@ -343,6 +343,12 @@ static bool record_cb(DCR *dcr, DEV_RECORD *rec)
 
          build_attr_output_fnames(jcr, attr);
 
+        if (attr->type == FT_DELETED) { /* TODO: choose the right fname/ofname */
+           Jmsg(jcr, M_INFO, 0, _("%s was deleted.\n"), attr->fname);
+           extract = false;
+           return true;
+        }
+
          extract = false;
          stat = create_file(jcr, attr, &bfd, REPLACE_ALWAYS);
          switch (stat) {
@@ -515,3 +521,4 @@ bool dir_get_volume_info(DCR *dcr, enum get_vol_info_rw  writing)
    Dmsg2(500, "Vol=%s num_parts=%d\n", dcr->VolCatInfo.VolCatName, dcr->VolCatInfo.VolCatParts);
    return 1;
 }
+