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