]> git.sur5r.net Git - bacula/bacula/commitdiff
Minor changes
authorKern Sibbald <kern@sibbald.com>
Sat, 4 Jun 2005 08:24:33 +0000 (08:24 +0000)
committerKern Sibbald <kern@sibbald.com>
Sat, 4 Jun 2005 08:24:33 +0000 (08:24 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2103 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/kernstodo
bacula/kes-1.37
bacula/src/lib/alist.h
bacula/src/stored/acquire.c
bacula/src/stored/protos.h
bacula/src/stored/wait.c
bacula/src/version.h

index 333836635cb1ac1dca61e26147c36b676d7fff86..1d4180143659d963049aabcabe8b28c108576b1f 100644 (file)
@@ -55,6 +55,7 @@ Document:
 - Document Heartbeat Interval in the dealing with firewalls section.
 
 For 1.37:
+- Implement "PreferMountedVolumes = yes|no" in Job resource.
 === rate design
   jcr->last_rate
   jcr->last_runtime
@@ -71,8 +72,6 @@ For 1.37:
 - Make bootstrap file handle multiple MediaTypes (SD)
 - Test restoring into a user restricted directory on Win32 -- see
   bug report.
-- Fix 3993 error in SD. It forgets to look at autochanger
-  resource for device command, ...
 - --without-openssl breaks at least on Solaris.
 - Python:
   - Make a callback when Rerun failed levels is called.
@@ -85,7 +84,6 @@ For 1.37:
   - Make sure that Python has access to Client address/port so that
     it can check if Clients are alive.
 
-- Implement "NewVolumeEachJob = yes|no" in Dir.
 - Remove all old Device resource code in Dir and code to pass it
   back in SD -- better, rework it to pass back device statistics.
 - Check locking of resources -- be sure to lock devices where previously
@@ -1285,4 +1283,5 @@ Block Position: 0
 - Require restore via the restore command or make a restore Job
   get the bootstrap file.
 - Implement Maximum Job Spool Size
-
+- Fix 3993 error in SD. It forgets to look at autochanger
+  resource for device command, ...
index 6dee32c40aa2a6363e2b9892618b3d4d31add3ca..1caa9c3ddf43a344429028c33448f3628364456f 100644 (file)
@@ -4,6 +4,8 @@
 General:
 
 Changes to 1.37.20:
+04Jun05
+- Minor changes
 01Jun05
 - Add more documentation to mtx-changer.in
 - Correct link to manual in authenticate.c in various
index f02be3d5c0c8998a63044e695c888754ece94a7b..30eefed03153f68aa7b61760c7b784a2727d1022 100644 (file)
@@ -77,6 +77,10 @@ public:
    int size() const;
    void destroy();
    void grow(int num);
+
+   /* Use it as a stack, pushing and poping from the end */
+   void push(void *item) { append(item); };
+   void pop() { num_items?NULL:remove(num_items-1); };
 };
 
 inline void * alist::operator [](int index) const {
index 8f0ba237c28b12dfcb609dc79b10e3f08f94a17a..31569cf193adb8b390eb1781756efe1eb263e379 100644 (file)
@@ -329,7 +329,7 @@ DCR *acquire_device_for_append(DCR *dcr)
     * With the reservation system, this should not happen
     */
    if (dev->can_read()) {
-      Jmsg(jcr, M_FATAL, 0, _("Device %s is busy reading.\n"), dev->print_name());
+      Jmsg1(jcr, M_FATAL, 0, _("Device %s is busy reading.\n"), dev->print_name());
       goto get_out;
    }
 
index 459b5208a4f40cddf31c6a87d337ae4b98586013..c20da23fe82ed67e4ed02d6ef288e4d2dd4ad034 100644 (file)
@@ -226,4 +226,4 @@ void    list_spool_stats          (BSOCK *bs);
 
 /* From wait.c */
 int wait_for_sysop(DCR *dcr);
-bool wait_for_device(JCR *jcr, const char *msg, bool first);
+bool wait_for_device(JCR *jcr, bool first);
index aefac5cac8b42ad7bcf4fcd1859eb4f91c9f1b0f..ddd4aaf83273d6f468fa624beeb1147d18ad0476 100644 (file)
@@ -158,7 +158,7 @@ int wait_for_sysop(DCR *dcr)
  * Returns: true  if a device has changed state
  *          false if the total wait time has expired.
  */
-bool wait_for_device(JCR *jcr, const char *msg, bool first)
+bool wait_for_device(JCR *jcr, bool first)
 {
    struct timeval tv;
    struct timezone tz;
@@ -172,7 +172,7 @@ bool wait_for_device(JCR *jcr, const char *msg, bool first)
    P(device_release_mutex);
 
    if (first) {
-      Jmsg(jcr, M_MOUNT, 0, msg);
+      Jmsg(jcr, M_MOUNT, 0, _("Job %s waiting to obtain a device.\n"), jcr->Job);
    }
 
    /*
@@ -229,7 +229,7 @@ bool wait_for_device(JCR *jcr, const char *msg, bool first)
          if (!double_jcr_wait_time(jcr)) {
             break;                 /* give up */
          }
-         Jmsg(jcr, M_MOUNT, 0, msg);
+         Jmsg(jcr, M_MOUNT, 0, _("Job %s waiting to obtain a device.\n"), jcr->Job);
       }
 
       add_wait = jcr->wait_sec - (now - start);
@@ -247,8 +247,7 @@ bool wait_for_device(JCR *jcr, const char *msg, bool first)
 }
 
 /*
- * The jcr timers are used for waiting on any device
- *
+ * The jcr timers are used for waiting on any device *
  * Returns: true if time doubled
  *          false if max time expired
  */
index 2cd7f8d0ca324dffc811e0f86e3e6d5924e8b57e..e15ed4084782c59395bc305ef76f12de895a28e3 100644 (file)
@@ -1,8 +1,8 @@
 /* */
 #undef  VERSION
 #define VERSION "1.37.20"
-#define BDATE   "01 June 2005"
-#define LSMDATE "01Jun05"
+#define BDATE   "04 June 2005"
+#define LSMDATE "04Jun05"
 
 /* Debug flags */
 #undef  DEBUG