]> git.sur5r.net Git - bacula/bacula/commitdiff
kes Remove sleep at end of ./bacula
authorKern Sibbald <kern@sibbald.com>
Sun, 6 Jul 2008 13:06:15 +0000 (13:06 +0000)
committerKern Sibbald <kern@sibbald.com>
Sun, 6 Jul 2008 13:06:15 +0000 (13:06 +0000)
kes  Clear hash packet for hardlinked files correctly. This corrects
     a long standing bug where hardlinked files selected individually
     would occasionally not be restored.

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.4@7325 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/scripts/bacula.in
bacula/src/findlib/find_one.c
bacula/src/version.h
bacula/technotes-2.4

index 8010035a591063064fe13eb13b872ba0ff37f9aa..8a4f91eb4cc2744d4eb075e064ce1ca354a61607 100755 (executable)
@@ -27,12 +27,11 @@ case "$1" in
       [ -x ${SCRIPTDIR}/bacula-ctl-fd ] && ${SCRIPTDIR}/bacula-ctl-fd $1 $2
       [ -x ${SCRIPTDIR}/bacula-ctl-sd ] && ${SCRIPTDIR}/bacula-ctl-sd $1 $2
       [ -x ${SCRIPTDIR}/bacula-ctl-dir ] && ${SCRIPTDIR}/bacula-ctl-dir $1 $2
-      echo
-      sleep 6
       ;;
 
    restart)
       $0 stop
+      sleep 2
       $0 start
       ;;
 
index 7837748ead6146e822fa848dcd2c29e83714b3db..d6cb7995b13d2bc445e5b7508c38a631079b7a5d 100644 (file)
@@ -397,6 +397,7 @@ find_one_file(JCR *jcr, FF_PKT *ff_pkt,
              ff_pkt->link = lp->name;
              ff_pkt->type = FT_LNKSAVED;       /* Handle link, file already saved */
              ff_pkt->LinkFI = lp->FileIndex;
+             ff_pkt->linked = NULL;
              return handle_file(ff_pkt, pkt, top_level);
          }
 
@@ -405,9 +406,10 @@ find_one_file(JCR *jcr, FF_PKT *ff_pkt,
       lp = (struct f_link *)bmalloc(sizeof(struct f_link) + len);
       lp->ino = ff_pkt->statp.st_ino;
       lp->dev = ff_pkt->statp.st_dev;
+      lp->FileIndex = 0;              /* set later */
       bstrncpy(lp->name, fname, len);
-       lp->next = ff_pkt->linkhash[linkhash];
-       ff_pkt->linkhash[linkhash] = lp;
+      lp->next = ff_pkt->linkhash[linkhash];
+      ff_pkt->linkhash[linkhash] = lp;
       ff_pkt->linked = lp;            /* mark saved link */
    } else {
       ff_pkt->linked = NULL;
@@ -685,8 +687,8 @@ find_one_file(JCR *jcr, FF_PKT *ff_pkt,
     * On FreeBSD, all block devices are character devices, so
     *   to be able to read a raw disk, we need the check for
     *   a character device.
-    * crw-r-----  1 root  operator  - 116, 0x00040002 Jun  9 19:32 /dev/ad0s3
-    * crw-r-----  1 root  operator  - 116, 0x00040002 Jun  9 19:32 /dev/rad0s3
+    * crw-r----- 1 root  operator - 116, 0x00040002 Jun 9 19:32 /dev/ad0s3
+    * crw-r----- 1 root  operator - 116, 0x00040002 Jun 9 19:32 /dev/rad0s3
     */
    if (top_level && (S_ISBLK(ff_pkt->statp.st_mode) || S_ISCHR(ff_pkt->statp.st_mode))) {
 #else
index d2f5499ef404cb025d5a3777b8b2084ae134edb6..3b436770a66f2b8d13e946769b1a9144ebdabc2a 100644 (file)
@@ -3,9 +3,9 @@
  */
 
 #undef  VERSION
-#define VERSION "2.4.1-b2"
-#define BDATE   "04 July 2008"
-#define LSMDATE "04Jul08"
+#define VERSION "2.4.1-b3"
+#define BDATE   "06 July 2008"
+#define LSMDATE "06Jul08"
 
 #define PROG_COPYRIGHT "Copyright (C) %d-2008 Free Software Foundation Europe e.V.\n"
 #define BYEAR "2008"       /* year for copyright messages in progs */
index ae6d9c3f73fdb1dbc7ddbe0db99332ecf3742fe5..decd1de5e7b4232119ad60525245ff52f9b34a57 100644 (file)
@@ -2,6 +2,11 @@
 
 General:
 
+06Jul08
+kes  Remove sleep at end of ./bacula
+kes  Clear hash packet for hardlinked files correctly. This corrects
+     a long standing bug where hardlinked files selected individually
+     would occasionally not be restored.
 05Jul08
 kes  Apply Eric's patch to ensure that autoprune does not return
      a Volume not in the autochanger unless requested to do so.