> I haven't checked this, but the latest release announcement doesn't > mention such fix, so it probably didn't. If the patch works for you, > then let Bacula developers know about that to encourage them to apply > the patch or, at least, comment it. > > Greets, > Jacek > WOW! Thanks for the patch. This is the first time after many failures that I have been able to get more than one successful backup to DVDs with bacula without blanking the media and starting over... :-)
Attached is the patch along with a gentoo ebuild for 1.38.9 that applies this patch. John
bacula-1.38.9.ebuild
Description: 197352870-bacula-1.38.9.ebuild
diff -dur -x '*~' bacula-1.38.6.orig/src/stored/mount.c bacula-1.38.6/src/stored/mount.c --- bacula-1.38.6.orig/src/stored/mount.c 2006-03-16 19:16:44.000000000 +0100 +++ bacula-1.38.6/src/stored/mount.c 2006-04-12 17:40:06.000000000 +0200 @@ -328,7 +328,7 @@ * * If the tape is marked as Recycle, we rewrite the label. */ - if (dev->VolHdr.LabelType == PRE_LABEL || recycle) { + if ((dev->VolHdr.LabelType == PRE_LABEL && !dev->is_dvd()) || recycle) { if (!rewrite_volume_label(dcr, recycle)) { mark_volume_in_error(dcr); goto mount_next_vol;