]> git.sur5r.net Git - bacula/bacula/commitdiff
Disable DVD checks (last part removed...).
authorNicolas Boichat <nicolas@boichat.ch>
Sat, 30 Jul 2005 21:57:26 +0000 (21:57 +0000)
committerNicolas Boichat <nicolas@boichat.ch>
Sat, 30 Jul 2005 21:57:26 +0000 (21:57 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2274 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/stored/mount.c

index cba07154d24306348c71fff6cbe681f13739dece..abdb5ceb9e417642aef17c4679213691e97e7224 100644 (file)
@@ -368,13 +368,15 @@ read_volume:
          return false;
       }
       
-      /* DVD sanity check : check if the last part was removed or truncated, or if
-       * a written part was overwritten. */
+      /* DVD : check if the last part was removed or truncated, or if a written
+       * part was overwritten. */
       /* We need to do it after dir_update_volume_info, so we have the EndBlock
        * info. (nb: I don't understand why VolCatFiles is set (used to check
        * tape file number), but not EndBlock) */
       /* Maybe could it be changed "dev->is_file()" (would remove the fixme above) */
-      if (dev->is_dvd()) {
+      
+      /* Disabled: I had problems with this code... (maybe is it related to the seek bug ?) */
+      /*if (dev->is_dvd()) {
          Dmsg2(100, "DVD/File sanity check addr=%u vs endblock=%u\n", (unsigned int)dev->file_addr, (unsigned int)dev->VolCatInfo.EndBlock);
          if (dev->file_addr == dev->VolCatInfo.EndBlock+1) {
             Jmsg(jcr, M_INFO, 0, _("Ready to append to end of Volume \"%s\" at file address=%u.\n"),
@@ -388,7 +390,7 @@ read_volume:
             mark_volume_in_error(dcr);
             goto mount_next_vol;
          }
-      }
+      }*/
       
       /* Return an empty block */
       empty_block(block);             /* we used it for reading so set for write */