]> git.sur5r.net Git - bacula/bacula/commitdiff
kes This patch fixes the status command to include the formating string for
authorKern Sibbald <kern@sibbald.com>
Sun, 25 Nov 2007 21:29:11 +0000 (21:29 +0000)
committerKern Sibbald <kern@sibbald.com>
Sun, 25 Nov 2007 21:29:11 +0000 (21:29 +0000)
     JS_AttrInsterting.  It fixes bug #1021.

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

bacula/patches/2.2.6-status.patch [new file with mode: 0644]
bacula/src/dird/ua_status.c
bacula/technotes-2.1

diff --git a/bacula/patches/2.2.6-status.patch b/bacula/patches/2.2.6-status.patch
new file mode 100644 (file)
index 0000000..9618463
--- /dev/null
@@ -0,0 +1,46 @@
+  This patch fixes the status command to include the formating string for
+  JS_AttrInsterting.  It fixes bug #1021.
+
+  Apply it to version 2.2.6 (and possibly earlier versions) with:
+
+  cd <bacula-source>
+  patch -p0 <2.2.6-status.patch
+  ./configure <your-options>
+  make
+  ...
+  make install
+
+
+Index: src/dird/ua_status.c
+===================================================================
+--- src/dird/ua_status.c       (revision 5979)
++++ src/dird/ua_status.c       (working copy)
+@@ -636,6 +636,12 @@
+       case JS_WaitPriority:
+          msg = _("is waiting for higher priority jobs to finish");
+          break;
++      case JS_AttrDespooling:
++         msg = _("SD despooling Attributes");
++         break;
++      case JS_AttrInserting:
++         msg = _("Dir inserting Attributes");
++         break;
+       default:
+          emsg = (char *)get_pool_memory(PM_FNAME);
+@@ -673,8 +679,14 @@
+             Mmsg(emsg, _("is waiting for Client %s to connect to Storage %s"),
+                  jcr->client->name(), jcr->wstore->name());
+         }
+-         msg = emsg;
++        msg = emsg;
++        break;
++      case JS_AttrDespooling:
++         msg = _("SD despooling Attributes");
+          break;
++      case JS_AttrInserting:
++         msg = _("Dir inserting Attributes");
++         break;
+       }
+       switch (jcr->JobType) {
+       case JT_ADMIN:
index 15acb884b66aef5257e49f828543860821116f72..1d267c33b2f64e376de55820a0001f1e8a972a4e 100644 (file)
@@ -636,6 +636,12 @@ static void list_running_jobs(UAContext *ua)
       case JS_WaitPriority:
          msg = _("is waiting for higher priority jobs to finish");
          break;
+      case JS_AttrDespooling:
+         msg = _("SD despooling Attributes");
+         break;
+      case JS_AttrInserting:
+         msg = _("Dir inserting Attributes");
+         break;
 
       default:
          emsg = (char *)get_pool_memory(PM_FNAME);
@@ -673,7 +679,13 @@ static void list_running_jobs(UAContext *ua)
             Mmsg(emsg, _("is waiting for Client %s to connect to Storage %s"),
                  jcr->client->name(), jcr->wstore->name());
         }
-         msg = emsg;
+        msg = emsg;
+        break;
+      case JS_AttrDespooling:
+         msg = _("SD despooling Attributes");
+         break;
+      case JS_AttrInserting:
+         msg = _("Dir inserting Attributes");
          break;
       }
       switch (jcr->JobType) {
index cffcc4f4c52623b56f6555fa3778ae3fb5c3c1c3..cb1147f25f598536af25dc9bda0b35ceffac3df5 100644 (file)
@@ -2,6 +2,8 @@
 
 General:
 25Nov07
+kes  This patch fixes the status command to include the formating string for
+     JS_AttrInsterting.  It fixes bug #1021.
 kes  This patch should fix the Mac OS X build problem on the latest
      Darwin, where sys/types.h was not included correctly (apparently
      due to a change in the Mac headers).  The solution was to explicitly