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