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