From: Nicolas Boichat Date: Sat, 30 Jul 2005 21:57:26 +0000 (+0000) Subject: Disable DVD checks (last part removed...). X-Git-Tag: Release-1.38.0~230 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4c585e943cb0aa737b81e19e34c6a22b09f33c24;p=bacula%2Fbacula Disable DVD checks (last part removed...). git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2274 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/stored/mount.c b/bacula/src/stored/mount.c index cba07154d2..abdb5ceb9e 100644 --- a/bacula/src/stored/mount.c +++ b/bacula/src/stored/mount.c @@ -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 */