Bacula-users

Re: [Bacula-users] Warning to DVD users

2011-02-21 15:19:18
Subject: Re: [Bacula-users] Warning to DVD users
From: ganiuszka <ganiuszka AT gmail DOT com>
To: Jari Fredriksson <jarif AT iki DOT fi>
Date: Mon, 21 Feb 2011 21:17:04 +0100
2011/2/21 Jari Fredriksson <jarif AT iki DOT fi>:
> 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.

Yes, but when Bacula is running the "free" command then it reads the
standard output. When Bacula is writing to the DVD disc then it reads
a exitcode from dvd-handler.

Regards
gani

------------------------------------------------------------------------------
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