]> git.sur5r.net Git - bacula/bacula/blob - bacula/patches/1.36.0/1.36.0-sd-block.patch
ebl Try to compile tokyodbm with mingw
[bacula/bacula] / bacula / patches / 1.36.0 / 1.36.0-sd-block.patch
1
2  This patch will keep the SD from blocking simultaneous Jobs during
3  a tape mount. 
4
5  Apply it to 1.36.0 with:
6
7  cd <bacula-source>
8  patch -p0 <1.36.0-sd-block.patch
9  make
10  ...
11
12 Index: src/stored/acquire.c
13 ===================================================================
14 RCS file: /cvsroot/bacula/bacula/src/stored/acquire.c,v
15 retrieving revision 1.74
16 diff -u -r1.74 acquire.c
17 --- src/stored/acquire.c        16 Oct 2004 11:51:32 -0000      1.74
18 +++ src/stored/acquire.c        25 Oct 2004 16:12:46 -0000
19 @@ -339,7 +339,10 @@
20  
21     if (do_mount || recycle) {
22        Dmsg0(190, "Do mount_next_write_vol\n");
23 -      if (!mount_next_write_volume(dcr, release)) {
24 +      V(mutex);                       /* don't lock everything during mount */
25 +      bool mounted = mount_next_write_volume(dcr, release);
26 +      P(mutex);                      /* re-lock */
27 +      if (!mounted) {
28          if (!job_canceled(jcr)) {
29              /* Reduce "noise" -- don't print if job canceled */
30              Jmsg(jcr, M_FATAL, 0, _("Could not ready device \"%s\" for append.\n"),