]> git.sur5r.net Git - bacula/bacula/blob - bacula/ChangeLog
Make build-win32-cross-tools work on FreeBSD.
[bacula/bacula] / bacula / ChangeLog
1               Technical notes on version 1.39  
2
3 General:
4 04Aug06
5 kes  Correct despool time calculation.
6 03Aug06
7 kes  Remove previous changes to compat.cpp as they create problems.
8 kes  Use old style MD5 for FileSets to avoid Full saves on every Job.
9 kes  Attempt to fix problems with the msg_queue crashing on Solaris
10      when Bacula is terminating, but problems remain.
11 kes  Add WIN32_VSS to HAVES in src/Makefile.inc.in to correct VSS
12      name editing problems with too many \\?\es.
13 kes  Fix some Bacula source code stlye problems in compat.cpp.
14 kes  Add debug code to compat.cpp and convert non-Bacula debug code
15      to Bacula style.
16 02Aug06
17 kes  Change the name of the technical notes file from kes-1.39 to
18      technotes-1.39.  Prefix my messages with 'kes  '.
19 kes  Allow dequeue_messages() to be called twice. Should fix bug  
20      # 649.
21 kes  Add Job type to bscan Job information output.
22 01Aug06
23 kes  Update copyright date in program files, and for the most part
24      put it on a #define.
25 kes  Implement %q in bsnprintf.c apparently I forgot it.
26 31Jul06
27 kes  Make disk-changer sed command compatible with FreeBSD.
28 kes  Make a first cut at a ReleaseNotes and ChangeLog for a 
29      beta release.
30 kes  Make make clean decend into the src/win32 directory.
31 kes  Fix some #ifdefing so that Solaris and FreeBSD compile 
32      sys/stat.h was turned off.
33 kes  Use suffix editing for new transfer rate messages.
34 kes  Attempt to come up with a workaround which seems to be an OS
35      bug where write() returns EBUSY.  IMO this should not happen.
36      It triggered in truncatebug test. The workaround retries using
37      a 100 ms wait.
38 kes  Eliminate a strerror() call in a class method that failed with
39      older C++ compilers.
40 kes  Use rm -rf rather than rmdir to delete the src/win32/release
41      directory during make clean.
42 30Jul06
43 kes  Make bscan ignore ACL streams.
44 kes  Update projects files with new Feature Requests.
45 kes  Generate current English and French manuals and upload
46      them to the site.
47 kes  Update the home page to include the new British/French flags to
48      switch between translations. Work done by Alexandre Baron.
49 kes  Make disk-changer script print an error message if the changer
50      directory is not defined.
51 kes  Create a generic DB routine for getting an int (32/64 bit) from
52      the DB.
53 kes  Add more migration code.
54 kes  Add a few more files to .cvsignore here and there.
55 kes  Minor fixes for SD write rate and despooling rate.
56 kes  Turn off new test code in src/console.c
57
58 Version 1.39.18
59 29Jul06
60 kes  Incremented the version number to signify that all of Robert's code
61      for Win32 that was in the branch is now integrated into the HEAD,
62      and that Eric has submitted code that we hope will provide limited
63      backward compatibility with 1.38 file daemons (more testing to be
64      done).
65 kes  I rationalized a few of the names of the variables (mainly jcr names)
66      that are used during migration as keeping three different jcrs at the
67      same time clear in one's head is not easy.
68
69 Version 1.39.17
70 28Jul06
71 eb   Tweak new runscript feature to work with 1.38.x FDs. 
72 eb   Correct crypto.c to fix segfault when restoring an encrypted stream 
73      on fd which don't use rsa keys.
74 eb   Add yes/no english keywords on localised yes/no questions.
75 27Jul06
76 kes  Several important commits from Robert Nelson for code cleanup and
77      Win32 build.
78 kes  Modify console.c so that when conio is enabled, it converts \n to
79      \n\r before outputting to the console.  Hopefully this will fix
80      the problems with expect in Perl that Eric saw.
81 24Jul06
82 kes  Change cats/sql.c to elimate %-*s format, which I think is turned
83      off in bsnprintf.
84 kes  Add Comment field to llist of a volume.
85 kes  Allow true/false in some yes/no questions.
86 kes  Implement update volume enable=(on|off|true|false|archived|0|1|2)
87 kes  Remove a few /n's when scanning commands from another daemon. This
88      permits adding additional fields later.
89 kes  Modify dbcheck to handle ctl-d and to delete Log table entries.
90 kes  Update README.mingw
91 22Jul06
92 kes  Tweak authentication to work with 1.38.x FDs. 
93 kes  Tweak catalog make scripts.
94 kes  Fix catalog upgrade scripts so that they work.
95 kes  Correct despooling debug code to eliminate race condition.
96 19Jul06
97 kes  Add additional fields as specified by Arno to LocationLog.
98 kes  Add comment field to the Media record.
99 kes  Add Time field to the Log record.
100 kes  Correct migration SQL (thanks to Bill Moran) so that it
101      runs with PostgreSQL also.
102 kes  Add spooling/despooling info in status output of SD.
103 17Jul06
104 kes  Spend a lot of time integrating mkcdrec with the rescue disk.
105 kes  Add VOLMGMT message class for volume management messages (none yet).
106 kes  Add CATALOG as a destination.     It goes into the LOG table.
107 kes  Implement the Log table in the DB.
108 kes  Implement the Location Log table in the DB (for user use).
109 kes  At Eric's request add a run_scripts() just after blast_data in
110      src/filed/job.c
111 10Jul06
112 kes  Add Enabled column to Location, correct some typos in DB schemas.
113 kes  Correct bug I introduced into RunScripts enum.
114 kes  Add log table to Catalog
115 kes  Purge original job migrated if the migration terminates normally.
116 kes  Cleanup purging of files/jobs so that it is done only in a 
117      single subroutine.
118 kes  Add new VOLMGMT message class.
119 kes  Add Catalog message destination (user conf code remains to be written).
120 09Jul06
121 kes  Modify read_record and friends to properly deal with migration         
122      needs.
123 kes  Update debug code in read_record.       
124 08Jul06
125      ======================= Warning ==========================
126      Separate read and write storage in Jobs in the Director. This
127      is a major rewrite of some of the low level code and hence has
128      a high probability of introducing bugs.
129      ==========================================================
130
131 kes  Move the job init code up to *before* the job is put into
132      the job queue (resource allocation queue). This permits the
133      job to establish whether it will read or write or do both.
134 kes  Add name() methods to all the resource classes.
135 kes  Implement separate read and write storage resource 
136      allocation/deallocation in jobq.c
137
138      ======================= Warning ==========================
139      Implemented new method of getting the default Storage from the Media
140      record rather than from the MediaType for restore.  As a fall
141      back, if no Storage is defined, use the MediaType.  This
142      eliminates most all prompts if there are multiple MediaTypes
143      used. This is an important and fundamental change.
144      ==========================================================
145
146 kes  Add more detail (Storage, Device) to list of volumes printed
147      for restore.
148 kes  More code in migrate. In particular start multiple jobs if
149      migrating a volume.
150 kes  Probably overkill, but ensure that the bsr is unique even within a 
151      job in FD and SD.
152 kes  Rework bsys.c drop() so that it now should work as expected.
153 kes  Update a bunch of old copyrights -kes  particularly in .h files.
154 kes  Remove src/lib/bshm.c/h
155 05Jul06
156 kes  Migration fixes
157 04Jul06
158      ======================= Warning ==========================
159         All hash codes in the database are now kept in world
160         compatible base64 format (no = filling). This means that
161         all FileSets will be updated and if you are running
162         verify jobs, you must do an InitCatalog.
163         Authentication uses the new algorithm, but should be
164         backward compatible with 1.38.x
165      ===========================================================
166
167 kes  Modify the authentication routines so that the 1.39.15 Director
168      always runs with the compatible binary to base64 code (same as
169      the rest of the world).  It will however detect if an SD or
170      FD is running the old code and if that is the case, will use
171      the old algorithm for authentication.  However, all consoles must
172      use the compatible algorithm, and all data entered into the database
173      (all hash signatures, MD5, SHA1, ..., and all FileSet hashes) will
174      use the compatible algorithm.
175 kes  Rename the cram_md5 routine names to be slightly more appropriate
176      to what they are doing (challenge and respond).
177 kes  Robert committed his #ifdef and header cleanup.
178 30Jun06
179 kes  Fix a complier warning in files/backup.c
180 kes  Cleanup NOT NULL vs DEFALT 0 in database creation.
181 kes  Tweak btape.
182 kes  Robert committed his low impact changes.
183 kes  I removed a size_t from the jcr.h definition.
184 kes  Update the tape regression scripts (still to be tested).
185 kes  Add gcc and gcc-c++ requires to srm as suggested by a user.
186 kes  Require done or quit to exit from in memory tree restore.
187 26Jun06
188 kes  Write install/uninstall of new manpages. There are now a
189      pile of man pages. Some of which need a lot of work.
190
191      ======================= Warning ==========================
192         The --mandir ./configure option now points to the top level
193         man directory.  The man files will be installed under
194         mandir/man8 and mandir/man1 as appropriate.
195      ==========================================================
196
197 kes  Add complete text of GPL to LICENSE.
198 kes  Implement job report that indicates where Storage and Pool
199      came from -kes  with overrides and Pool storage and NextPool,
200      it is all very complicated.
201 kes  Create a few common subroutines for backup.c and migrate.c
202 kes  Eliminate warning messages from tray-monitor.c
203 25Jun06
204 kes  Apply fix for scheduler for missing unlock_jobs().
205 kes  Clean out autoconf caches before rebuilding configure
206 kes  Fix the FreeBSD pthreads lib define updated by Dan.
207 kes  Add missing semicolon in src/console/console.c
208 kes  Add Robert's enhanced version of build-win32-cross-tools
209      as well as his patch file.
210 kes  Note, the new gcc options are likely to break building of
211      wx-console or the tray-monitor ...
212 24Jun06
213 kes  Implement Robert's suggestion to suppress printing compile lines.
214 kes  Detect GCC correctly (I hope)
215 kes  If using GCC (actually g++) add the following compiler flags
216      -fno-strict-aliasing -fno-exceptions -fno-rtti
217
218      ===================== Warning =============================
219      Turn on new bsnprintf() code.  This could cause print output
220      to look different.
221      ===========================================================
222
223 kes  Fix crypto when not using openssl. I previously overlooked this.
224 kes  Eliminate crypto type punning problems by eliminating void * and
225      using uint8_t * instead.
226 kes  Harden authentication failure in FD by single threading errors
227      and forcing a 6 second wait.
228
229      ===================== Warning =============================
230           Removed  "Accept Any Volume" directive.
231      ===========================================================
232
233 kes  Major cleanup and simplification of regress using shell functions
234      (more tests to be converted to new format)   
235 kes  Add detection of 64 bit Irix as indicated by user.
236 kes  Increment catalog database id from 9 to 10.
237 kes  Add a few of the new database fields to the various C++
238      structures.
239 kes  Implement code to fill in the most important new fields (e.g.
240      Media Enable).
241 kes  Ensure that most of the new fields are in create/get/insert/update.
242      More work to be done.
243 22Jun06
244 kes  Update some very old licenses in src/cats.
245 kes  Modify the database format for handling Migration jobs:
246       Add PriorJobId, RealEndTime to Job table
247       Delete MAC table
248       Remove Stripe from JobMedia record (not used, wasting space)
249       Add ScratchPoolId, RecyclePoolId, Enabled to Media record
250       Add Cost to Location table.
251 kes  Delete mac_record subroutines.
252 kes  Add new table values to create/update/get routines as appropriate.
253 kes  Update the update_tables and make_tables scripts.
254 kes  Make a first cut in using a union where multiple pointers (actually
255      pointers to pointers) are stored.
256 kes  Make some changes to base64.c suggested by Robert and others and add
257      a small amount of documentation.
258 kes  Add some changes suggested by Peter for Solaris (bregex...)
259 kes  Make runscript.h always built because it needs to be pulled into
260      more places.  In particular its RES was left out of a union.
261 kes  Renumber the enum{} list in runscript.h to avoid starting from zero.
262      This makes it slightly easier to detect uninitialized variables.
263 14Jun06
264 kes  Remove xpg4 lib from FreeBSD build as it is no longer needed and
265      sometimes creates install problems.
266 kes  Change a couple of %T in strftime to %H:%M:%S as seen in Robert
267      Nelson's code.  More to do.
268 kes  Convert a few store_bit to store_bool in filed_conf.c.       
269 kes  DVD tweak to block.c as supplied by Uwe Muessel.
270 04Jun06
271 kes  Modify configure.in to check for typeof().
272 kes  In findlib/attribs.c use typeof instead of templates if possible.
273 01Jun06
274 kes  Implement partial error messages for src/filed/acl.c
275 kes  Fix return code to fail when doing update barcodes and
276      Pool resource is not found. This previously caused Volumes
277      to be labeled as cleaning tapes.
278 kes  Small updates to projects.
279 27May06
280 kes  Add Eric Bollengier patch for new RunScript directive. It breaks
281      compatibility between dird and fd.
282 26May06
283 kes  Prevent DVD code from rewriting label if the device cannot be
284      opened read/write.
285 kes  Used __GNUC__ to detect GNU g++ as suggested by John Goerzen to
286      fix Debian build bug.
287 kes  Fix Dir/SD run race in migrate.c, verify.c, and restore.c
288 kes  Integrate manpages contributed by Jose Luis.
289 kes  Update projects file.
290 kes  Add manpages Makefile.in to configure.in
291 kes  Remove installation of bacula.8 in scripts directory.
292 24May06
293 kes  Implement patch submitted by cesarb in bug #606 to implement O_NOATIME
294      support.
295        O_NOATIME is a open() flag which makes it possible to read a file without
296        updating the inode atime (and also without the inode ctime update which
297        happens if you try to set the atime back to its previous value). It also
298        prevents a race condition when two programs are reading the same file, but
299        only one does not want to change the atime. It's most useful for backup
300        programs and file integrity checkers (and bacula can fit on both
301        categories).
302
303        Recent versions of the Linux kernel and glibc have support for it (the
304        glibc support being mostly copying the O_NOATIME definition to
305        bits/fcntl.h). If there's no support for it on the kernel, trying to use
306        it does nothing (since the kernel ignores unknown flags).
307
308        If the kernel has support for it, trying to use it either works, fails
309        silently (mostly in remote filesystems), or returns errno=EPERM (if you
310        are not either the owner of the file or root). A simple way to prevent the
311        failure is to open the file without the flag and set it later with
312        fcntl(F_SETFL), ignoring any EPERM errors.
313 kes  Applied patch posted by Jaime Ventura to bug #570 to correct failure
314      of restarted jobs to complete (due to a destroyed pthreads conditional
315      variable used by the message thread).
316 kes  Fixed bug #619 where Bacula would not restart jobs with MaxRestartTimes
317      set to zero. 
318 kes  Apply patch from John Goerzen bug #611 to fix bad manual links in the code.
319 kes  Apply patch from Rudolf Cejka bug #614 to removed trailing
320      colons in query.sql file.
321 kes  Apply patch from Rudolf Cejka bug #613 to correct prunning of files
322      not to create orphans.
323 kes  Apply patch from Rudolf Cejka bug #617 to use mtime instead of ctime
324      in restore long listing.
325 kes  Apply patch from Rudolf Cejka bug #609 to use MarkId in verify.c instead
326      of incorrect MarkedId.
327 kes  Apply patch from adioso bug #616 to correct text in manual (replace
328      Director with File daemon).
329 kes  Rework a few of the zlib changes so that they build properly.
330
331 21May06
332 kes  Move DIR "run" command to SD before starting the message thread
333      as suggested by Cristopher Hull to avoid a race deadlock from
334      two threads using the bsock structure.
335 kes  Modify LICENSE to correct some problems pointed out by Debian.
336 05May06
337 kes  Correct EOF with no \n lex.c problem.
338 kes  Tweak compat.h compat.cpp and merge with apcupsd
339 kes  Add additional INFO messages if autochanger cannot be used.
340
341 02May06
342 kes  Simplify Win32 Makefile
343 kes  Correct count of buffers/bytes used by smartall.c
344 kes  Updated compat.h after porting apcupsd to MinGW.
345 01May06
346 kes  Work on getting wx-console building on MinGW. wxWidgets now builds
347      started adding Makefile ...
348 kes  Moved MinGW library objects to src/win32/lib to reduce clutter.
349 30Apr06
350 kes  Reloading a bad configuration file doesn't kill director any more.
351      Thanks to fix from Eric Bollengier.
352 29Apr06
353 kes  Fix problem of accents with new Win32 code.
354 kes  Integrate Howard's VSS patch. Tweak it a bit. VSS now
355      works in the MinGW build with the exception that there
356      is a problem with accented characters -kes  i.e. there is
357      some mapping problem with wide characters.
358 kes  The code no longer compiles with Microsoft VC++.
359 28Apr06
360 kes  Start implementing Christopher's St.Bernard code.
361 kes  Add Christopher's mods for opening files.
362 kes  Strip \r \n from Win32 error messages (Christopher)
363 kes  Add more info about Win32 system if unknown (Christopher)
364 kes  Use bstrn(cpy, cat) routines to avoid overrun in compat.cpp
365 kes  Fix a number of incorrect strings marked for translation, when
366      they should not be (e.g. commands).
367 kes  Fix StartTime bug reported for ClientRunBeforeJob and RunBeforeJob
368      Patches supplied by user in bugs #608 and #599.
369 kes  Use most recent of st_ctime and st_mtime in restore tree DIR
370      listing. This fixes some problems with Win32 printing incorrect
371      values.
372 kes  Correct the clock shift comm time calculation between the DIR
373      and the FD. It was added rather than subtracted.
374 kes  Strip all backslashes in filenames to be restored on Win32
375      machines -kes  the names should all be in Unix format, and if
376      there are any backslashes it is most likely due to an improper
377      FileSet definition, and the files will not otherwise be 
378      restorable.
379 kes  Remove lib/regex.c (replaced by bregex.c).
380 kes  Delete src/win32/License.txt
381 kes  Modify installer to install LICENSE
382 26Apr06
383 kes  Fix bug in build-win32-cross-tools script reported by Howard
384 kes  Implement cross compiled bconsole
385 25Apr06
386 kes  Fix barcode test, eliminate BOOL (doesn't exist on Linux).
387 kes  Write first cut of README.mingw32
388 kes  Add back ua_label barcode fix from Rufolf Cejka.
389 kes  Integrate the majority of the Mingw cross-tools submission
390      made by Howard Thomson. Everything compiles, with zlib, openssl,
391      and VSS turned off. Linking needs a pthreads library ...
392 23Apr06
393 kes  Add 'Dir Status' button to the gnome console.
394 kes  More work on migration.
395 kes  Restore non-compatible base64 coding to permit compatibility.
396 kes  Display heap stats in Storage daemon without debug level.
397 22Apr06
398 kes  Integrate most of the MinGW changes -kes  more to do.
399 21Apr06
400 kes  Implement using pg_config for finding PostgreSQL files.
401      Fixes bug #600. Patch supplied by user.
402 kes  Remove -t option from mktemp in mtx_changer.in and use
403      working directory. Fixes bug #578.
404 kes  Update job start time after the any run before job so that
405      files created by the script are only backed up once. Fixes
406      bug #599.
407 kes  Strip trailing newline only from filenames entered in
408      the restore command when reading a file. This permits
409      the user to enter filenames with trailing spaces. Fixes
410      bug #549. The user supplied a patch that I modified slightly.
411 kes  Use the most recent time (st_mtime, st_ctime) in the dir
412      command in restore. This gives the user a better idea of what
413      the newest file really is. This fixes bug #574. The fix
414      was suggested by the user.
415 kes  Implement a compatible version of base64. This permits external
416      programs to duplicate Bacula's base64 algorithm using standard
417      routines. This fixes bugs #296, and 565. Patch submitted by   
418      author of bug #565.  
419      ================= Note ========================
420      Previous Signatures stored in the database are no longer
421      compatible with this. The main downside is for Verify jobs,
422      and doing an InitCatalog run will fix the problem. Also, the
423      authentication between the deamons is changed, so all daemons
424      must be simultaneously upgraded.
425      ==============================================
426      If you don't like this fix, set:
427        const bool compatible = true;
428      to
429        const bool compatible = false;
430      in src/lib/base64.c
431 20Apr06
432 kes  Ensure that DB signature is never NULL.
433 kes  Ensure that DB table names are not translated.
434 kes  Fix scheduler to handle time skew (eg daylight savings).
435 kes  Fix scheduler to use lock_jobs() to avoid most problems
436      with reload. Window is now milliseconds.
437 19Apr06
438 kes  Apply patch from Christopher Hull
439      kes  Allow multiple connections to database with different
440        parameters.
441      kes  Invalidate the scheduler when doing a reload. Fixes seg
442        fault, but still 60 second window.
443      kes  Additional info in Reschedule message.
444      kes  Use set_jcr_job_status() everywhere to prevent loss of
445        cancel, error.
446      kes  Display peer IP in FD if error from connecting DIR.
447      kes  Don't increment file count for DIRBEGIN.
448      kes  Replace illegal characters in Win32 filename by _.
449      kes  Add SE_CREATE_PERMANENT_NAME privilege in Win32.
450      kes  Hash hard link filenames rather than linked list.
451      kes  Fix for security failure in chdir on Win32.
452      kes  Add CreateDirectoryA/W win32 API entry points.
453 kes  Add /silent option to Win32 FD for Install/Remove service.
454 kes  Always print Heap statistics in FD.
455 18Apr06
456 kes  Remove the -f option from the chown in Makefile.in for more
457      portability.
458 kes  Change setting the group in Makefile.in to use chgrp for
459      more portability.
460 kes  Implement a write_store and read_store to replace
461      dirstore in reserve.c
462 kes  Implement a Bacula read/write lock for Python rather
463      than using the Python lock to avoid recursive problems.
464 kes  Correct the uninstall directory names in filed/Makefile.in
465      as reported by a user.
466 17Apr06
467 kes  Correct some problems with database creation (new tables).
468 kes  Replace a bunch of old 0x%x by %p.
469 kes  Get first cut of Migration with Job selection working.
470 16Apr06
471 kes  Change store_bit() to store_bool() for the Spooling in 
472      dird_conf.c -kes  bug reported by Robert Nelson.
473 15Apr06
474 kes  Correct Makefile bug found by Dan Langille.
475 14Apr06
476 kes  Correct Makefile for Solaris /bin/sh
477 kes  Correct mtx-changer.in for Solaris /bin/sh
478 kes  Abort if a conf resource does not have a Name =
479 12Apr06
480 kes  Change the name of the regex program to bregex.
481 kes  Add the bwild program to the tools directory. It is similar
482      to the bregex program.
483 kes  Implement create bregex.h and bregex.c in src/lib from the
484      Python regexp program.  
485 kes  Use the new bregex.c to implement Regex expressions on Win32.
486 11Apr06
487 kes  More work on migration.
488 kes  Implement wild program in tools directory for testing
489      wild-cards. Almost identical to the regex program.
490 kes  Up port VSS single thread locking code.
491 kes  Replace N_(..) by NT_(...) to inhibit translation of
492      commands.
493 kes  Modify Makefile to change the permissions on Working Directory
494      to 770 if the directory is created.
495 kes  Do not fail the Makefile if changing the permissions or 
496      owner/group on WorkingDir fails.
497 kes  Remove early selection of Scratch Volumes in the recycling
498      algorithm.
499 kes  Correct the old recycling algorithm so that Scratch Volumes
500      are selected when looking for a Volume in the changer.
501 kes  Correct a typo in the Verify SQL reported by Joe Park.
502 10Apr06
503 kes  Remove automatic case folding on Windows FDs. You must
504      explictly use the 'Ignore Case = yes' option.
505 kes  Remove the code added to 1.38.6 and 1.38.7 that pulls a
506      scratch volume in an Autochanger early in the 'recycling'
507      algorithm.  
508 09Apr06
509 kes  Make weof() and clrerror() methods of class DEVICE.
510 08Apr06
511 kes  Tweak license to include Microsoft restrictions.
512 kes  Move mysql.reconnect to after real_connect().     Thanks to
513      Frank Sweetser for the patch.
514 kes  Disallow a backslash in a File = directive (Windows junk)
515      unless the string is quoted.                     
516 kes  Apply Eric's patch to ua_label.c so that daemon protocol
517      is not translated.
518 kes  Add NT_ definition for strings that should not be translated.
519 kes  Apply NT_() to ua_label.c
520 kes  Remove timed wait for VSS on Win2K3 as it is not yet
521      implemented.
522 kes  Correct bacula.in script to reference bacula-ctl-xx in the
523      sysconfig directory rather than the bin directory.
524 26Mar06
525 kes  Fix a long standing bug in the bacula start/stop scripts.
526 kes  Attempt to add the new bacula-ctl-* files to the rpm.
527 kes  Switch to using typeof() for list traversing to avoid
528      as many FC5 g++ compiler warnings as possible.
529 25Mar06
530 kes  Split the bacula start/start script into four files:
531       bacula         -kes  starts and stops calling other scripts
532       bacula-ctl-dir -kes  starts/stops the director
533       bacula-ctl-fd  -kes  starts/stops the File daemon
534       bacula-ctl-sd  -kes  starts/stops the Storage daemon
535 24Mar06
536 kes  Create datestyle fix for PostgreSQL. Fixes bug #574.
537 kes  Correct editing of JobId from int to int64 in fd_cmds.c
538 kes  Eliminate FileSet name race with bash_spaces() and multiple
539      threads by bashing in a local.
540 kes  Fix error return from 'use storage' to print a correct error
541      message rather than nothing.
542 kes  Correct false re-read last block error message when two jobs 
543      are simultaneously writing at the end of a tape.
544 kes  Simplify exit conditions in the reserve.c code to avoid     
545      possible non-release of reservation_lock().
546 kes  Suffle lock order in reserve to avoid deadlock between
547      reservation lock and device mutex.
548 21Mar06
549 kes  Initialize jcr mutex before first use. Thanks to Thorsten for
550      tracking this down for me !!!! as it broke the Win32 build.
551 20Mar06
552 kes  Integrate addition of line count limitation to bsmtp -l from
553      Sebastian Stark <stark at tuebingen.mpg.de>
554 17Mar06
555 kes  Implement regex test program in tools directory.
556 kes  Attempt to fix time problem with bsmtp with foreign langs.
557 kes  Add strip_trailing_newline() submitted by user.
558 kes  Implement regex matching in migrate.c
559 16Mar06
560 kes  Fix bug #537 to allow arbitrary time to mount a volume for
561      restore, if polling is turned on.     
562 kes  If dir_user or dir-group is specified in ./configure apply it to
563      the working-dir. Fixes bug #533.
564 kes  If rescheduling a job cancel the previous incarnation with the SD.
565      Fixes bugs #566 and 557.
566 kes  Fix bug #567 do_message() definition type conflict.
567
568 14Mar06
569 kes  Add more jcr methods and make mutex and use_count private.
570 kes  Create lock/unlock methods for jcr.
571 kes  Fix PostgreSQL bug doing sql_data_seeek() by explicitly reading
572      records to get to seek position.
573 kes  Integrate patch from bug #561 to correct conio.c signal definitions.
574 kes  Fix Rescheduling failed Jobs. Ensure that SD message thread 
575      terminates correctly by doing pthread_kill(). Do not destroy
576      SD cond wait variable between executions of the job. Use local
577      mutex for cond variable to avoid blocking jcr chain. Fix poor 
578      use of jcr use count in jobq.c for restarted jobs.
579 kes  Fix obsolete usage of foreach_dlist() to use foreach_jcr() in
580      lib/jcr.c -kes  prevents locking the jcr chaing.
581 kes  Apply patch from bug #564, which corrects listing volumes with
582      multiple autochangers. Apply same fix to next volume list.
583 kes  Fix bug #562 where restore bootstrap file is not unique.
584 kes  More details in implementing David's migration syntax proposal.
585 kes  Save and restore dcr when swapping drives so that if we have
586      a write dcr it is not lost.
587 kes  Use new routine lock_reservations() to lock the reservations
588      system, and call it while looking for a volume in askdir.c.
589      This could possibly fix bug #543.
590 kes  Stop SD command loop if job is canceled.
591
592 08Mar06
593 kes  Remove old code from findlib/create_file.c
594 kes  Rename mac.c migrate.c
595 kes  Add user friendly display of VolBytes in job report.
596 kes  Rename target... to previous... to make it a bit easier to
597      understand.
598 kes  Add selection type and selection pattern to Migration (idea
599      given by David Boyes). 
600
601 04Mar06
602 kes  The po files should now be current.
603 kes  Fix new sql_use_result() code to properly release the
604      buffers in all cases.
605 kes  Use the keyword ujobid to mean the unique job id; job or jobname
606      to mean the Job name given on the Name directive, and jobid to
607      be the numeric (non-unique) job id.
608 kes  Allow listing by any of the above.
609 kes  Add the user friendly job report code for reporting job elapsed time
610      and rates with suffexes from John Kodis <kodis at comcast.net>.
611 kes  Add Priority and JobLevel as Python settable items.
612 kes  Use TEMPORARY table creation where the table is created by
613      Bacula.
614 kes  Add new code submitted by Eric for waiting on specific jobid.
615 kes  Add ACL checking for the dot commands.
616 kes  Fix restore of writable FIFOs.
617 kes  Fix a bug in bpipe where the string was freed too early.
618 27Feb06
619 kes  Modify the Python class examples to inherit object -kes  new way
620      of defining classes. Patch from Felix Schwarz.
621 kes  Implement jobuid to replace old usage of job in keywords as
622      suggested by Eric Bollengier.
623 kes  Apply patch for enhancing wait from Eric Bollengier. On can now:
624       wait  (wait for all jobs to stop)
625       wait jobid=nn
626       wait jobuid=unique id
627       wait job=job-name
628 kes  Implement write variables for Python to set Priority (anytime), and
629      Job Level, only during JobInit event.
630 26Feb06
631 kes  Fix the block listing bug pointed out by Arno.
632 kes  Update the po files at Eric's request.
633 24Feb06
634 kes  Fix Maximum Changer Wait, Maximum Open Wait, Maximum Rewind Wait to 
635      accept time qualifiers.
636 kes  Make catalog respect ACL.
637 kes  Add recycle count to Media record.
638
639 Changes to 1.39.6-beta1 24Feb04
640 23Feb06
641 kes  Add Rudolf Cejka's new rc-chio-changer.
642 kes  Implement pulling Volume from Scratch Pool if the
643      Volume is in the autochanger.
644 kes  Implement additional command arguments for update Volume.
645
646 Changes to 1.39.5 
647 22Feb06
648 kes  Back port changes to 1.38.5
649 kes  Fix recycle SQL for StorageId.
650 kes  Fix misplaced quote in mtx-changer script.
651 20Feb06
652 kes  Note. Your database must be updated, or you must create 
653      a new database. I have not yet incremented the database level.
654 kes  Add Location table. 
655 kes  Add LocationId, DeviceId, and MediaTypeId to Media record.
656 18Feb06
657 kes  Implement create/get mac record in database for adding extended
658      Migration data to the job record.
659 kes  Add new MAC table to update/make database scripts.
660 kes  Return Storage name used when getting VolumeNames for a job.
661 kes  Change bsr file keyword Storage to Device, which is more accurate.
662 kes  Ensure that Mac records are pruned/purged.
663 kes  Tweak SD tools to deal with changing media type.
664 kes  Integrate more dev.c subroutines as methods (e.g. strerror, bsr, ...)
665 kes  Pass pointer to dcr pointer to acquire_device_for_read() so
666      that the subroutine can switch devices, and hence dcrs.
667 kes  Modify the multiple MediaType read code to re-use the same
668      dcr when switching devices. This makes the code much more
669      robust.
670 kes  Integrate patch from Karl Hakimian that reads JobIds, FileIndexes
671      from a table for restore.
672 kes  Add Storage name to VolParams, but it really should be Device.
673 14Feb06
674 kes  Add disk-changer to scripts directory + configure/Makefile
675 kes  Eliminate PoolId from jcr -kes  it is in jcr->jr.PoolId
676 kes  Implement store_bit scanner to replace store_yesno.     Mostly done.
677 kes  Implement new store_bool that stores in a bool. 
678 kes  Add true/false to yes/no conf directives.
679 kes  Make first cut at changing appropriate store_yesno to store_bool.
680 kes  Complete implementation of Pool storage devices.
681 kes  Move starting clones to job.c
682 kes  Move create_restore_bootstrap_file() to job.c
683 kes  Make copy_storage() more general to be able to handle
684      Pool storage.
685 kes  Cleanup a lot of migration code for manual running, including
686      using Pool storage.
687 kes  Move getting a scratch Volume into a subroutine.
688 kes  Make all places a Volume that is added to a pool to 
689      respect max vols.
690 kes  Fix bug in autochanger recycle code (improper edit 64 bit).
691 kes  Fix segfault in restore command when no value specified.
692 kes  Start adding code to handle multiple MediaTypes in restore.
693 kes  Eliminate race condition in getting Volume name for
694      two drive autochanger.
695 kes  More debug code in autochanger.
696 kes  Add storage keyword to bootstrap file, add parsing.
697 kes  Move slot in bsr file into Volume record as there will be
698      a different slot for each Volume.
699 kes  Create reserve.h
700 07Feb06
701 kes  Implement Pool storage overrides.
702 06Feb06
703 kes  Implement first cut of Migration.
704 kes  Implement mysql_use_result() from patch by Karl Hakimian.
705      This reduces significantly the memory consumption during
706      the restore tree building, and hence runs faster too.
707 kes  Implement StorageId patch supplied by user (reggie) in bug
708      #536.  This should permit Bacula to work correctly with two
709      autochangers.
710 kes  Implement Job listing variations suggested by a user.
711 kes  Move updating bootstrap code in backup.c to subroutine
712      update_bootstrap_file().
713 kes  Add new job status elapsed time and bytes written user
714      friendly job report output patch sent by John Kodis
715      <kodis at comcast.ne>.
716 kes  Implement a storage list in Pools.
717 kes  Separate out setup_job() code from run_job().
718 kes  Get migration working -kes  lots of changes in mac.c in both
719      DIR and SD.
720 kes  Apply patch from user (Eric Bollengier I think) that fixes a     
721      DIR crash when no arguments are supplied to a dot command.
722 kes  Fix typo (strcpy->strcmp) in ua_prune.c as reported by Martin.
723 kes  Fix command arg name->volume in label command of gnome-console.
724 kes  Fix SD acquire.c to release correct DCR by explicitly testing
725      on the dcr address rather than trying to devine if it is a read
726      or write dcr.  This failed in error conditions when the device was
727      not fully setup.
728  
729 30Jan06
730 kes  Apply user supplied patch for more readable rate output
731      in job report.
732 kes  Continue implementing migration.
733 kes  Implement support for removable filesystems in SD.
734 kes  Ensure that btraceback scripts can be read by anyone.
735 kes  Replace dvd-freespace and dvd-writepart by dvd-handler.
736 kes  Correct bug where canceling restore before the FD contacts
737      the SD causes the drive to be left in read mode.
738 kes  Move ofline_or_rewind into DEVICE::close().
739 kes  Eliminate close_device.
740 kes  Convert several dev subroutines to methods (e.g. bsf,
741      eod, ...)
742 kes  Eliminate force_close_device().
743 kes  Implement Device Type directive in Device resource that
744      can have values File, Tape, Fifo, DVD, or Prog.
745 kes  Add has_cap() method to Device.
746 Changes to 1.39.4
747 17Jan06
748 kes  Add patch from bug #527 to allow RedHat user to specify
749      options/user/group for starting each daemon in      
750      /etc/sysconf/bacula.
751 16Jan06
752 kes  Add two new queries to query.sql provided by Arno. One
753      list volumes known to the Storage device, and the other
754      lists volumes possibly needing replacement (error, ...).
755 15Jan06
756 kes  Add periodic (every 24 hours) garbage collection of memory 
757      pool by releasing free buffers.
758 14Jan06
759 kes  Correct bug counting sized (for display only) in smartall.c
760 kes  Print FD mempool stats if debug > 0 rather than 5.
761 12Jan06
762 kes  Make db_lock() mutex error fail the job rather than abort
763      Bacula.  Canceling the job caused the mutex to fail.
764 kes  Correct bug in alist.c that re-allocated the list if the
765      number of items goes to zero.
766 kes  Move the reservation system thread locking to the top level
767      so that one job at a time tries all possible drives before
768      waiting.
769 kes  Implement a reservation 'fail' message queue that is built            
770      and destroyed on each pass through the reservation system.
771      These messages are displayed in a 'Jobs waiting to reserve
772      a drive' list during a 'status storage='.  Note, multiple
773      messages will generally print for each JobId because they
774      represent the different problems with either the same drive
775      or different drives.  If this output proves too confusing
776      of voluminous, I will display it only when debug level 1
777      or greater is enabled in the SD.
778 11Jan06
779 kes  Add enable/disable job=<job-name>.     This command prevents
780      the specified job from being scheduled. Even when disabled,
781      the job can be manually started from the console.
782 kes  During 'update slots' clear all InChanger flags where the
783      StorageId is zero (old Media records).
784
785 Beta release 1.38.4:
786 09Jan06
787 kes  Fix autochanger code to strip leading spaces from returned
788      slots number. Remove bc from chio-changer.
789 kes  Back port a bit of 1.39 crypto code to reduce diffs.
790 kes  Fix first call to autochanger that missed close()ing the
791      drive. Put close() just before each run_program().  Fixes
792      Arno's changer bug.
793 07Jan06
794 kes  Add PoolId to Job record when updating it at job start time.
795 06Jan06
796 kes  Pull in more code from 1.39 so that there are fewer file
797      differences (the new ua_dotcmds.c, base64.h, crypto.h
798      hmac.c jcr.c (dird and lib) lib.h md5.h parse_conf.c 
799      util.c. Aside from ua_dotcmds.c these are mostly crypto
800      upgrades.
801 kes  Implement new method of walking the jcr chain. The
802      incr/dec of the use_count is done within the walking
803      routines.  This should prevent a jcr from being freed
804      from under the walk routines.
805
806
807 Changes to 1.39.3:
808 04Jan06
809 kes  Start implementing Verify list output.
810 kes  Move the suitable_drive flag to a better place to prevent
811      premature termination of the reservation if all drives
812      are busy -kes  should fix Arno's diff/inc pool failures.
813 26Dec05
814 kes  Add mutex to single thread VSS code in Win32.
815 22Dec05
816 kes  Simplify code in askdir.c that waits for creating an appendable
817      volume so that it can handle multiple returns from the wait
818      code.
819 kes  Modify the wait code to permit multiple returns.
820 kes  Return a zero when "autochanger drives" is called and
821      it is not an autochanger.
822 kes  Make rewind_dev() a method taking a DCR as an argument.
823      This permits closing and reopening the drive if the
824      rewind fails as happens if the drive was loaded while the
825      file descriptor was open. This refreshes the file descriptor.
826 kes  Remove the ST_OPENED flag and always rely on fd < 0 for knowing
827      if the device is open or not.  This should eliminate
828      Arnos problem.
829 kes  Return error if reserve cannot find at least one suitable device.
830 kes  Make wait_for_sysop() return correct state information.
831 kes  Fix Win32 state file problem. write was not using compat
832      code. This should fix bug #500.
833 21Dec05
834 kes  Modify gui on command to set only GUI mode and not batch.
835 kes  Modify .messages command to always print messages regardless
836      of the mode.
837 kes  If GUI mode is on, suppress automatic printing of 
838      You have messages. 
839 kes  Delete old bnet packet code.
840 kes  Ignore new BNET_START_SELECT and BNET_END_SELECT signals in
841      wx-console. -kes  not implemented because bconsole must be updated.
842 kes  Modify restore command in wx-console to set gui on and to use
843      only .messages instead of messages.  Hopefully this fixes bug
844      #514.
845 kes  Fix seg fault in exit of acquire when canceling a job --
846      reported by Wolfgang Denk
847 kes  Pull in latest reservation system changes from 1.38
848 kes  Make .messages command always print messages regardless
849      of the automessages flag.
850 17Dec05
851 kes  Fix seg fault if user labels a drive directory bug #513
852 kes  Remove quotes around Version as it breaks things.
853 16Dec05
854 kes  Merge in Aleksandar Milivojevic's mods to the spec file.
855 kes  Apply sparse code fix for raw drives and fifos. Bug 506
856 kes  Thorsten fixed Unicode cd problem with wx-console bug 505.
857 14Dec05
858 kes  Correct reservation system to do a last ditch try
859      for any mounted volume, then anyone anywhere.
860 kes  Add quotes around table Version because of
861      error in MySQL 4.1.15 -kes  bug report submitted.
862 kes  Correct some minor problems with btape in the fill
863      command.
864 kes  Updates to ssh-tunnel from Joshua Kugler.
865 kes  Added a report.pl program from Jonas Bjorklund.               
866 kes  Simplify the O_NONBLOCK open() code for tape drives,
867      and always open nonblocking.
868 kes  Do not wait for open() if EIO returned (shouldn't happen).
869 kes  Eliminate 3 argument to tape open().
870 kes  Correct the slot # edited in the 3995 Bad autochanger unload
871      message.
872 kes  With -S on bscan (show progress) do not divide by zero.
873 13Dec05
874 kes  Make cancel pthread_cond_signal() pthread_cond_broadcast().
875 kes  When dcr is freed, also broadcast dev->wait_next_vol signal.
876 kes  Remove unused code in wait_for_device.     
877 kes  Make wait_for_device() always return after 60 seconds of wait.
878
879 Changes to 1.39.2:
880 13Dec05
881 kes  Add stubs for non-crypto build.
882 12Dec05
883 kes  Use localhost if no network configured
884 11Dec05
885 kes  Eliminated duplicate MaxVolBytes in cat update -kes  bug 509.
886 kes  Remove debug print.
887 kes  Add bail_out in error during state file reading.
888 10Dec05
889 kes  Merge changes made to 1.38.3 into HEAD
890 kes  Add stubs for pygtk-console code
891 kes  Create Makefile.in for pygtk-console code
892 09Dec05
893 kes  Merge updates into 1.38 branch
894 kes  Update specs to include mysql4 define.
895 kes  Fix when attributes are sent, must be after binit().
896 kes  Stop read_record() if status not ok in second loop.
897 kes  Return rec->FileIndex in dcr->VolLastIndex for normal
898      and partial records in read_record().  This allows bscan
899      to get FileIndex at EOT correct.
900 kes  Fix butil.c to correctly set dcr -kes  fixes seg fault in bls.
901 08Dec05
902 kes  Fix Win32 built to work with new crypto code.
903 kes  Apply patch supplied by user (slightly modified) to fix
904      correct detection of holes in block devices and FIFOs. 
905      Bug # 506.
906 kes  Apply patch supplied by user (slightly modified) 
907      to fix SD hang with multiple pools and bad client
908      IP. Fixes bug # 508.
909 07Dec05
910 kes  Add nagios plugin to the examples directory. Submitted by
911      Christian Masopust.
912 kes  Remove warning message about multiple saves of hardlinked files
913      from find_one.c as it can generate too many warning messages.
914 kes  Modify most restore error messages to be queued so that they
915      appear at the end of the job rather than mixted with the restore
916      listing where they could be "lost".
917 06Dec05
918 kes  Reset timeout values before select() per patch from 
919      Frank Sweetser for problems with non-blocking sockets.
920 kes  Unlink the state file if either reading or writing it gets
921      errors.  Hopefully this will fix Win32 exit problems.
922 kes  Add sanity check in append.c to ensure that dcr is not NULL.
923      This can happen if multiple drive autochanger SCSI control
924      channel and drive indicies do not correspond.
925 05Dec05
926 kes  Get next volume from Scratch pool before creating a volume.
927 kes  Set new Pool defaults in Vol when moved from Scratch Pool.
928 kes  Remove argument from create_bacula_database for SQLite as it
929      caused an error.
930 kes  Add back index code so that two drive autochangers can get
931      a second tape.
932 kes  Change a bunch of debug levels to aid debugging autochangers.
933 kes  Fix reservation so that mutexes are properly applied.
934 kes  Rework reservation algorithm so that two drives can be used
935      at the same time.
936 04Dec05
937 kes  Landon merged his data encription changes into the HEAD
938 kes  Apply days keyword patch from Alexander.Bergolth at wu-wien.ac.at 
939      If this patch is applied, the number of days can be specified with
940      "list nextvol days=xx"
941      or
942      "status dir days=xx"
943      My use case is to be able to preview the next scheduled job (and the 
944      next tape to be used) on fridays if there are no scheduled jobs during 
945      the weekend.
946 Changes to 1.39.1:
947 03Dec05
948 kes  Fix font code in gnome2 console user patch. Fixes bug #501.
949 kes  Fix malformatted bnet error message that caused seg fault
950      fixes bug 502
951 kes  Applied user patch to improve README.vc8 in src/win32.
952 29Nov05
953 kes  Add Migrate, Copy, Archive Job types (some where there)
954 kes  Correct some more editing of JobId's (for 64 bit compatibility).
955 kes  Ensure that StorageId is stored in Media record when ever possible.
956 kes  Add Migration Job to Job.
957 kes  Add Migration Time, Migration High Bytes, Migration Low Bytes
958      Next Pool to Pool resource.
959 kes  Add more code to mac.c (migration archive copy).
960 kes  Change Start Storage daemon job to require read and write storage
961      pointers.
962 kes  Pass read storage data to SD as well as write storage data.
963 kes  Remove old code from winservice.cpp
964 kes  Break on error in scan.
965 kes  Fix typo in signal.c
966 kes  Separate read/write DCR in SD.     Add jcr->read_dcr.
967 kes  Cleanup how find_device() works.
968 kes  Add read output to Status in SD.
969 Changes to 1.39.0:
970 23Nov05
971 kes  Add red-black btree routines
972 21Nov05
973 kes  Remove abs() in bfile.c so that it compiles on Solaris. 
974      Bug #491.
975 20Nov05
976 kes  Fix crash in tray-monitor when daemon disconnects. Bug #479.
977 kes  Fix bnet-server bug found on OpenBSD. Bug #486
978 kes  Fix cancel failure bug. Bug #481
979 kes  Fix failure when Pool name has spaces. Bug #487      
980 kes  Fix SD crash in autochanger code. Mutex failure. Bug #488
981 kes  Fix a couple of free()s in src/filed/acl.c
982 kes  Fix memory overrun in bfile.c in building OS X resource
983      fork filename. Bug #489 
984 kes  Add Pool name to SD status output.
985 14Nov05
986 kes  Apply SunOS patch for ACLs submitted by David Duchscher.                     
987 kes  Make sure to set storage before trying to set drive.
988 kes  Add bacula_mail_summary.sh to examples directory. It makes
989      a single email summary of any number of jobs. Submitted
990      by Adrew J. Millar.
991 kes  Make sure when we do a mount to unblock the device even
992      if the drive could not be opened.  
993 13Nov05
994 kes  Remove the USE_WIN32STREAMEXTRACTION #defines (always on)
995      and correct a few minor problems to make it build on Linux.
996 10Nov05
997 kes  Remove delete of CVS from all Makefiles
998 kes  Fix seg fault when clicking on Add button in wx-console
999      restore panel.  Bug #470.
1000 kes  Fix copyright date and URL typo -kes  bug #468.
1001 kes  Change autostart install for FreeBSD to look for rc.conf     
1002      rather than rc.local as suggested fix for bug #466.
1003 kes  Apply patch supplied by Eric Bollengier to fix PostgreSQL       
1004      grant on status. Bug #465
1005 kes  Apply patch supplied by Eric Bollengier to fix PostgreSQL
1006      update script. Bug #464
1007 kes  Tweak #ifdefing a bit in new Win32 stream code.
1008 kes  Fix #ifdeffing for FD_NO_SEND_TEST.
1009 kes  Add documentation of performance #defines
1010
1011
1012 Release 1.38.11 (28Jun06) released 28JunO6