Bacula-users

Re: [Bacula-users] Restore problem out of the blue - scratch pool is suddenly "invalid"

2017-01-15 18:23:49
Subject: Re: [Bacula-users] Restore problem out of the blue - scratch pool is suddenly "invalid"
From: Phil Stracchino <phils AT caerllewys DOT net>
To: Kern Sibbald <kern AT sibbald DOT com>, bacula-users AT lists.sourceforge DOT net
Date: Sun, 15 Jan 2017 18:22:52 -0500
On 01/15/17 16:34, Kern Sibbald wrote:
> Hello Phil,
> 
> It is a bit late here so I will look at all your output tomorrow, but if 
> you have the patience, go to:
> 
> <bacula>/src/dird/ua_run.c
> then at line 1074, you should have the following lines of code:
> 
>     /* Not a good idea to start a job with the Scratch pool */
>     if (rc.pool && strcmp(rc.pool->name(), NT_("Scratch")) == 0) {
>        ua->send_msg(_("Pool \"Scratch\" not valid.\n"));
>        return false;
>     }
> 
> Just delete all those lines (or if you want, only the "return false;"), 
> but be careful to leave the next line, which
> reads:
> 
>     return true;
> 
> ===
> 
> That should resolve your problem.


That does indeed resolve the problem.  I've attached my exact patch.


-- 
  Phil Stracchino
  Babylon Communications
  phils AT caerllewys DOT net
  phil AT co.ordinate DOT org
  Landline: 603.293.8485

Attachment: bacula-7.4.4-disable-scratch-pool-check.patch
Description: Text Data

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users