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