]> git.sur5r.net Git - bacula/bacula/commitdiff
- Apply patch supplied by user (slightly modified) to fix
authorKern Sibbald <kern@sibbald.com>
Thu, 8 Dec 2005 20:32:17 +0000 (20:32 +0000)
committerKern Sibbald <kern@sibbald.com>
Thu, 8 Dec 2005 20:32:17 +0000 (20:32 +0000)
  correct detection of holes in block devices and FIFOs.
  Bug # 506.
- Apply patch supplied by user (slightly modified)
  to fix SD hang with multiple pools and bad client
  IP. Fixes bug # 508.

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2653 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/kernstodo
bacula/kes-1.38
bacula/kes-1.39
bacula/src/filed/backup.c
bacula/src/stored/acquire.c
bacula/src/version.h

index 0e1013f55a54987a17169a819b2ff34a77a8f626..c57a9a624c7b02cf626425e14badef8ccbd09778 100644 (file)
@@ -1,11 +1,9 @@
                     Kern's ToDo List
-                     30 November 2005
+                     07 December 2005
 
 Major development:      
 Project                     Developer
 =======                     =========                         
-Version 1.37                Kern (see below)
-========================================================
 
 Document:
 - Does ClientRunAfterJob fail the job on a bad return code?
index f3491fef9accc72733955d55d5e5cffff67aa12e..e02f99b2151eb64e41841ccba1a5779c3f6fd55a 100644 (file)
@@ -3,8 +3,8 @@
 
 General:
 
-Changes to 1.38.2:
-20Oct05
+Changes to 1.38.2: 22 November 2005
+20Nov05
 - Fix crash in tray-monitor when daemon disconnects. Bug #479.
 - Fix bnet-server bug found on OpenBSD. Bug #486 (bug originator
   says this does not fix *his* bug).
@@ -17,8 +17,8 @@ Changes to 1.38.2:
 - Add Pool name to SD status output.
 - Add Python install dir for Solaris to configure. Bug #492
 
-Changes to 1.38.1:
-14Oct05
+Changes to 1.38.1: 15 November 2005
+14Nov05
 - Apply SunOS patch for ACLs submitted by David Duchscher.                  
 - Make sure to set storage before trying to set drive.
 - Add bacula_mail_summary.sh to examples directory. It makes
@@ -26,7 +26,7 @@ Changes to 1.38.1:
   by Adrew J. Millar.
 - Make sure when we do a mount to unblock the device even
   if the drive could not be opened.  
-13Oct05
+13Nov05
 - Merge Scott's new spec files.
 - Add doc on setting up Win32 environment variable supplied
   by Kees van den Broek.               
@@ -34,7 +34,7 @@ Changes to 1.38.1:
   the user.
 - Add Solaris ACL detection in configure.in as supplied by
   Attila Fulop. 
-12Oct05
+12Nov05
 - Implement "autochanger drives" protocol so that Dir knows
   how many drives an autochanger has.
 - Do not request drive number in label, ... if only one drive.
@@ -47,7 +47,7 @@ Changes to 1.38.1:
 - Make a few error message numbers unique.
 - Make a few error messages more correct.
 - Apply patch from Thorsten to fix Win98 stat() command.
-10Oct05
+10Nov05
 - Remove delete of CVS from all makefiles.
 - Fix seg fault when clicking on Add button in wx-console
   restore panel.  Bug #470.
index 125c05baee10f2ea4b8c7fae3e943e4873bb1d02..1a4bca88f1fcb2a4d8e17889223912dcde5adb4a 100644 (file)
@@ -4,7 +4,16 @@
 General:
 
 Changes to 1.39.2:
+08Dec05
+- Apply patch supplied by user (slightly modified) to fix
+  correct detection of holes in block devices and FIFOs. 
+  Bug # 506.
+- Apply patch supplied by user (slightly modified) 
+  to fix SD hang with multiple pools and bad client
+  IP. Fixes bug # 508.
 07Dec05
+- Add nagios plugin to the examples directory. Submitted by
+  Christian Masopust.
 - Remove warning message about multiple saves of hardlinked files
   from find_one.c as it can generate too many warning messages.
 - Modify most restore error messages to be queued so that they
index e25d7d0f8644860f47bb0889fc4e78f73a1da6ef..9ba76b4168457754af2f21b21b19b5cd538a3abc 100644 (file)
@@ -553,7 +553,9 @@ int send_data(JCR *jcr, int stream, FF_PKT *ff_pkt, DIGEST *digest, DIGEST *sign
       if (ff_pkt->flags & FO_SPARSE) {
          ser_declare;
          if (sd->msglen == rsize &&
-             (fileAddr+sd->msglen < (uint64_t)ff_pkt->statp.st_size)) {
+             fileAddr+sd->msglen < (uint64_t)ff_pkt->statp.st_size ||
+             ((ff_pkt->type == FT_RAW || ff_pkt->type == FT_FIFO) &&
+               (uint64_t)ff_pkt->statp.st_size == 0)) {
             sparseBlock = is_buf_zero(rbuf, rsize);
          }
 
index 4741c583758b99850e9c8a67250756a21a4e0896..b9d0338b4611c1de34aac5cbcf9a58449402ff76 100644 (file)
@@ -111,6 +111,7 @@ void free_dcr(DCR *dcr)
    }
    free_unused_volume(dcr);           /* free unused vols attached to this dcr */
    free(dcr);
+   pthread_cond_broadcast(&wait_device_release);
 }
 
 /*********************************************************************
@@ -511,6 +512,5 @@ bool release_device(DCR *dcr)
    } else {
       jcr->dcr = NULL;
    }
-   pthread_cond_broadcast(&wait_device_release);
    return ok;
 }
index 528496857344291c9a2d23f53a294145961a70f8..42ac09512c885b9e9a9648d41497e1f39a5f3a27 100644 (file)
@@ -4,8 +4,8 @@
 
 #undef  VERSION
 #define VERSION "1.39.2"
-#define BDATE   "07 December 2005"
-#define LSMDATE "07Dec05"
+#define BDATE   "08 December 2005"
+#define LSMDATE "08Dec05"
 
 /* Debug flags */
 #undef  DEBUG