On Tue, 2007-11-27 at 22:20 +0000, Richard Mortimer wrote:
> I'm running 2.2.0 and DVD writing works fine in that. I haven't been
> following the latest version lately so I haven't had time to try out
> newer versions.
> 
> Richard
> 
> On Tue, 2007-11-27 at 04:41 -0800, Scott Simpson wrote:
> > SuSE 10.3, Bacula 2.2.6-1
> > 
> > I have been using Bacula source code from about a year ago to write to
> > DVDs and it was working fine. I upgraded to Bacula 2.2.6-1 and my old
> > Bacula configuration files don't work. The DVD data is getting written
> > to my Bacula spool directory (the directory the ISO images are written
> > to with mkisofs before writing the DVD), but the data is not written
> > to the DVD. More spool files just keep getting created. How can I
> > debug this? Thanks.
> >      Scott

I took a look at the changes between 2.2.0 and 2.2.6 and I suspect that
the issue is caused by a changed to the close() function in dev.c. The
new code clears the ST_FREESPACE_OK and ST_PART_SPOOLED flags. DVD
support is different to tape/disk in that after a close it needs to
remember those flags.

I've attached a patch that stops ST_FREESPACE_OK and ST_PART_SPOOLED
flags being cleared. I haven't tested it (sorry I don't have time right
now) but if someone is able to test and update the status of
http://bugs.bacula.org/view.php?id=1016
that would be good. Disclaimer I don't know why Kern made the change to
clear the flags so this may cause another problem to resurface. YMMV.

Regards

Richard

-- 
Richard Mortimer <[EMAIL PROTECTED]>
Index: src/stored/dev.c
===================================================================
--- src/stored/dev.c	(revision 5996)
+++ src/stored/dev.c	(working copy)
@@ -1856,7 +1856,7 @@
    /* Clean up device packet so it can be reused */
    clear_opened();
    state &= ~(ST_LABEL|ST_READ|ST_APPEND|ST_EOT|ST_WEOT|ST_EOF|
-              ST_MOUNTED|ST_MEDIA|ST_SHORT|ST_FREESPACE_OK|ST_PART_SPOOLED);
+              ST_MOUNTED|ST_MEDIA|ST_SHORT);
    label_type = B_BACULA_LABEL;
    file = block_num = 0;
    file_size = 0;
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to