]> git.sur5r.net Git - bacula/bacula/commitdiff
Revert to old block.c to fix recycling
authorKern Sibbald <kern@sibbald.com>
Sat, 31 Jul 2010 20:01:32 +0000 (22:01 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:54:00 +0000 (16:54 +0200)
bacula/src/stored/block.c

index f23d666decd591f053231f4e6a2bbe6a71651220..8bde1b609d5ee9f161cffffb217fb155b8d5a059 100644 (file)
@@ -381,9 +381,6 @@ bool write_block_to_device(DCR *dcr)
 
    if (!write_block_to_dev(dcr)) {
        if (job_canceled(jcr) || jcr->getJobType() == JT_SYSTEM) {
-          if (jcr->getJobType() != JT_SYSTEM) {
-             terminate_writing_volume(dcr);
-          }
           stat = false;
        } else {
           stat = fixup_device_block_write_error(dcr);
@@ -419,7 +416,6 @@ bool write_block_to_dev(DCR *dcr)
    return true;
 #endif
    if (job_canceled(jcr)) {
-      terminate_writing_volume(dcr);
       return false;
    }
 
@@ -734,10 +730,6 @@ static bool terminate_writing_volume(DCR *dcr)
    DEVICE *dev = dcr->dev;
    bool ok = true;
 
-   if (dev->at_eot()) {
-      return true;
-  }
-
    /* Create a JobMedia record to indicated end of tape */
    dev->VolCatInfo.VolCatFiles = dev->file;
    if (!dir_create_jobmedia_record(dcr)) {