]> git.sur5r.net Git - bacula/bacula/commitdiff
Start of Solaris bare metal recovery
authorKern Sibbald <kern@sibbald.com>
Tue, 31 Dec 2002 20:19:50 +0000 (20:19 +0000)
committerKern Sibbald <kern@sibbald.com>
Tue, 31 Dec 2002 20:19:50 +0000 (20:19 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@256 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/autoconf/configure.in
bacula/configure
bacula/kernstodo
bacula/src/dird/dird.c
bacula/src/dird/verify.c
bacula/src/filed/restore.c
bacula/src/findlib/find_one.c
bacula/src/version.h

index 2ca1069c6e43658c44d6877df5e46a356d72d08b..6bc742e278bbf60ef5d1ade3e96c423fd5a7d3c1 100644 (file)
@@ -1284,6 +1284,7 @@ AC_OUTPUT([autoconf/Make.common \
           rescue/Makefile \
           rescue/linux/Makefile \
           rescue/freebsd/Makefile \
+          rescue/solaris/Makefile \
           scripts/startmysql \
           scripts/stopmysql \
           scripts/btraceback \
index 566a9fd96dbcf027e321fd9706b38bc6a03ab624..01cb5fbe060804ad2dfe55c7b385331f6b3b318e 100755 (executable)
@@ -9442,6 +9442,7 @@ trap 'rm -fr `echo "autoconf/Make.common \
           rescue/Makefile \
           rescue/linux/Makefile \
           rescue/freebsd/Makefile \
+          rescue/solaris/Makefile \
           scripts/startmysql \
           scripts/stopmysql \
           scripts/btraceback \
@@ -9700,6 +9701,7 @@ CONFIG_FILES=\${CONFIG_FILES-"autoconf/Make.common \
           rescue/Makefile \
           rescue/linux/Makefile \
           rescue/freebsd/Makefile \
+          rescue/solaris/Makefile \
           scripts/startmysql \
           scripts/stopmysql \
           scripts/btraceback \
index 01f15366739af61b82d2bbc567ad44c5c83f6dc9..18262346fb65ebafb46ea3ff2bb6f6e4a041d9bb 100644 (file)
@@ -17,6 +17,7 @@ For 1.28 release:
   a single device.
 
 For 1.29 release:
+- Enable avoid backing up archive device (findlib/find_one.c:128)
 - Implement FileOptions (see end of this document)
 - Implement Bacula plugins -- design API
 - Make hash table for linked files in findlib/find_one.c:161
index 20824a2a63de9f2fddcab9e47ba34f802e33e87a..23b3128f39c068c66a3fba6655d0dadc6e123ece 100644 (file)
@@ -49,7 +49,6 @@ extern void init_job_server(int max_workers);
 
 static char *configfile = NULL;
 static char *runjob = NULL;
-
 static int background = 1;
 
 /* Globals Exported */
@@ -175,8 +174,8 @@ int main (int argc, char *argv[])
 
    my_name_is(0, NULL, director->hdr.name);    /* set user defined name */
 
-   FDConnectTimeout = director->FDConnectTimeout;
-   SDConnectTimeout = director->SDConnectTimeout;
+   FDConnectTimeout = (int)director->FDConnectTimeout;
+   SDConnectTimeout = (int)director->SDConnectTimeout;
 
    if (background) {
       daemon_start();
index 14c47c3c83f9bf836916f2cb7b6cc0c3ecf781d8..626cd89edd5895fb021123d31f16fb61c8ed4757 100644 (file)
@@ -463,12 +463,14 @@ int get_attributes_and_compare_to_catalog(JCR *jcr, JobId_t JobId)
          * fields he requests.
          */
         for (p=Opts_MD5; *p; p++) {
+           char ed1[30], ed2[30];
            switch (*p) {
             case 'i':                /* compare INODEs */
               if (statc.st_ino != statf.st_ino) {
                  prt_fname(jcr);
-                  Jmsg(jcr, M_INFO, 0, _("      st_ino   differ. Cat: %x File: %x\n"), 
-                    statc.st_ino, statf.st_ino);
+                  Jmsg(jcr, M_INFO, 0, _("      st_ino   differ. Cat: %s File: %s\n"), 
+                    edit_uint64((uint64_t)statc.st_ino, ed1),
+                    edit_uint64((uint64_t)statf.st_ino, ed2));
                  stat = JS_Differences;
               }
               break;
@@ -476,7 +478,7 @@ int get_attributes_and_compare_to_catalog(JCR *jcr, JobId_t JobId)
               if (statc.st_mode != statf.st_mode) {
                  prt_fname(jcr);
                   Jmsg(jcr, M_INFO, 0, _("      st_mode  differ. Cat: %x File: %x\n"), 
-                    statc.st_mode, statf.st_mode);
+                    (uint32_t)statc.st_mode, (uint32_t)statf.st_mode);
                  stat = JS_Differences;
               }
               break;
@@ -484,31 +486,32 @@ int get_attributes_and_compare_to_catalog(JCR *jcr, JobId_t JobId)
               if (statc.st_nlink != statf.st_nlink) {
                  prt_fname(jcr);
                   Jmsg(jcr, M_INFO, 0, _("      st_nlink differ. Cat: %d File: %d\n"), 
-                    statc.st_nlink, statf.st_nlink);
+                    (uint32_t)statc.st_nlink, (uint32_t)statf.st_nlink);
                  stat = JS_Differences;
               }
               break;
             case 'u':                /* user id */
               if (statc.st_uid != statf.st_uid) {
                  prt_fname(jcr);
-                  Jmsg(jcr, M_INFO, 0, _("      st_uid   differ. Cat: %d File: %d\n"), 
-                    statc.st_uid, statf.st_uid);
+                  Jmsg(jcr, M_INFO, 0, _("      st_uid   differ. Cat: %u File: %u\n"), 
+                    (uint32_t)statc.st_uid, (uint32_t)statf.st_uid);
                  stat = JS_Differences;
               }
               break;
             case 'g':                /* group id */
               if (statc.st_gid != statf.st_gid) {
                  prt_fname(jcr);
-                  Jmsg(jcr, M_INFO, 0, _("      st_gid   differ. Cat: %d File: %d\n"), 
-                    statc.st_gid, statf.st_gid);
+                  Jmsg(jcr, M_INFO, 0, _("      st_gid   differ. Cat: %u File: %u\n"), 
+                    (uint32_t)statc.st_gid, (uint32_t)statf.st_gid);
                  stat = JS_Differences;
               }
               break;
             case 's':                /* size */
               if (statc.st_size != statf.st_size) {
                  prt_fname(jcr);
-                  Jmsg(jcr, M_INFO, 0, _("      st_size  differ. Cat: %d File: %d\n"), 
-                    statc.st_size, statf.st_size);
+                  Jmsg(jcr, M_INFO, 0, _("      st_size  differ. Cat: %s File: %s\n"), 
+                    edit_uint64((uint64_t)statc.st_size, ed1),
+                    edit_uint64((uint64_t)statf.st_size, ed2));
                  stat = JS_Differences;
               }
               break;
@@ -536,8 +539,9 @@ int get_attributes_and_compare_to_catalog(JCR *jcr, JobId_t JobId)
             case 'd':                /* file size decrease */
               if (statc.st_size > statf.st_size) {
                  prt_fname(jcr);
-                  Jmsg(jcr, M_INFO, 0, _("      st_size  decrease. Cat: %d File: %d\n"), 
-                    statc.st_size, statf.st_size);
+                  Jmsg(jcr, M_INFO, 0, _("      st_size  decrease. Cat: %s File: %s\n"), 
+                    edit_uint64((uint64_t)statc.st_size, ed1),
+                    edit_uint64((uint64_t)statf.st_size, ed2));
                  stat = JS_Differences;
               }
               break;
index a0acc19d5127be7063524b7e6ce1dd48cf38410e..be6be79c9579eef169a54c617c8f7dd956706afb 100644 (file)
@@ -106,8 +106,9 @@ void do_restore(JCR *jcr)
       /* 
        * Now we expect the Stream Data
        */
-      if (bnet_recv(sd) < 0 && !job_cancelled(jcr)) {
+      if (bnet_recv(sd) < 0) {
          Jmsg1(jcr, M_FATAL, 0, _("Data record error. ERR=%s\n"), bnet_strerror(sd));
+        goto bail_out;
       }
       if (size != (uint32_t)sd->msglen) {
          Jmsg2(jcr, M_FATAL, 0, _("Actual data size %d not same as header %d\n"), sd->msglen, size);
index 3a62a6b766cc26bd47bf0fbeffb2bfc2c423a287..b36f798cf65502b0fb61af62582b21ac0a6ae588 100755 (executable)
@@ -149,7 +149,7 @@ find_one_file(FF_PKT *ff_pkt, int handle_file(FF_PKT *ff, void *hpkt), void *pkt
 
        struct f_link *lp;
 
-       /* keep linked list of files */
+       /* Search link list of hard linked files */
        for (lp = ff_pkt->linklist; lp; lp = lp->next)
          if (lp->ino == ff_pkt->statp.st_ino && lp->dev == ff_pkt->statp.st_dev) {
              ff_pkt->link = lp->name;
index fe6ffcf8237cea645a91720facb2028ff550588d..393a34af24b2b21aca43d9317551e3487f549cd8 100644 (file)
@@ -1,8 +1,8 @@
 /* */
 #define VERSION "1.28"
 #define VSTRING "1"
-#define DATE    "28 December 2002"
-#define LSMDATE "28Dec02"
+#define DATE    "30 December 2002"
+#define LSMDATE "30Dec02"
 
 /* Debug flags */
 #define DEBUG 1