Bacula-users

Re: [Bacula-users] Warning to DVD users

2011-02-21 12:58:45
Subject: Re: [Bacula-users] Warning to DVD users
From: Jari Fredriksson <jarif AT iki DOT fi>
To: bacula-users AT lists.sourceforge DOT net
Date: Mon, 21 Feb 2011 19:56:15 +0200
On 21.2.2011 0:57, ganiuszka wrote:
> Hi,
> 
> The "free" command is running before every WRITE. If "free" command
> does not work properly then WRITE will not work. "dvd-handler" script
> uses the "popen2" Python module which in new Python version throws
> warning because this module is deprecated in new Python. That may be
> your issue after the system upgrade to Squeeze.
> 
> If your "free" command shows something like below output, that is this 
> problem.:
> 
> # /usr/local/bacula/etc/scripts/dvd-handler /dev/sr0 free
> /usr/local/bacula/etc/scripts/dvd-handler:41: DeprecationWarning: The
> popen2 module is deprecated.  Use the subprocess module.
>   import popen2
> 1616412672
> No Error reported.
> 
> When you put "hash" ("#") in python module on that warning then DVD
> backup will be work. Another solution is rewrite "dvd-handler" script
> using "subprocess" Python  module instead "popen2".
> 

I know knothing about python. Which module is that "python module" that
I need to comment the warning out?

It indeed has has that warning...

But python is used to write to DVD with growisofs always.

For example the following fails with the newer kernels, but not with older..

----------------------- /etc/bacula/blank_dvd ------------------------

dd if=/dev/zero bs=1024 count=512 | growisofs -Z /dev/sr0=/dev/fd/0

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users