]> git.sur5r.net Git - bacula/bacula/blob - bacula/ChangeLog
6c665fdd0b871844d1b3d7c573005f4fafd8dc35
[bacula/bacula] / bacula / ChangeLog
1
2 Release 1.38.7 (06Apr06) released 07Apr06 
3 - Remove timed wait for VSS on Win2K3 as it is not yet
4   implemented.
5 - Correct bacula.in script to reference bacula-ctl-xx in the
6   sysconfig directory rather than the bin directory.
7
8 Release 1.38.6 (28Mar06) released 29Mar06
9 28Mar06
10 - Back port from 1.39 fixes to lib/jcr.c to use foreach_jcr() 
11   and new jcr chain locking.
12 26Mar06
13 - Fix a long standing bug in the bacula start/stop scripts.
14 - Attempt to add the new bacula-ctl-* files to the rpm.
15 - Switch to using typeof() for list traversing to avoid
16   as many FC5 g++ compiler warnings as possible.
17 25Mar06
18 - Split the bacula start/start script into four files:
19    bacula         -- starts and stops calling other scripts
20    bacula-ctl-dir -- starts/stops the director
21    bacula-ctl-fd  -- starts/stops the File daemon
22    bacula-ctl-sd  -- starts/stops the Storage daemon
23 24Mar06
24 - Create datestyle fix for PostgreSQL. Fixes bug #574.
25 - Correct editing of JobId from int to int64 in fd_cmds.c
26 - Eliminate FileSet name race with bash_spaces() and multiple
27   threads by bashing in a local.
28 - Fix error return from 'use storage' to print a correct error
29   message rather than nothing.
30 - Correct false re-read last block error message when two jobs 
31   are simultaneously writing at the end of a tape.
32 - Simplify exit conditions in the reserve.c code to avoid  
33   possible non-release of reservation_lock().
34 - Suffle lock order in reserve to avoid deadlock between
35   reservation lock and device mutex.
36 - Add Thorsten's VSS timeout code to 1.38 branch.
37 21Mar06
38 - Initialize jcr mutex before first use. Thanks to Thorsten for
39   tracking this down for me !!!! as it broke the Win32 build.
40 20Mar06
41 - Integrate addition of line count limitation to bsmtp -l from
42   Sebastian Stark <stark at tuebingen.mpg.de>
43 17Mar06
44 - Implement regex test program in tools directory.
45 - Attempt to fix time problem with bsmtp with foreign langs.
46 - Add strip_trailing_newline() submitted by user.
47
48 Release 1.38.6 beta6
49 16Mar06
50 - Fix bug #537 to allow arbitrary time to mount a volume for
51   restore, if polling is turned on.     
52 - Disallow multiple storage specifications for a job. Should fix Arno's
53   problem.
54 - Add back a missing store of poolid in jr.poolid.    
55 - If dir_user or dir-group is specified in ./configure apply it to
56   the working-dir. Fixes bug #533.
57 - If rescheduling a job cancel the previous incarnation with the SD.
58   Fixes bugs #566 and 557.
59 - Fix bug #567 do_message() definition type conflict.
60
61 Release 1.38.6 beta5
62 14Mar06
63 - Add more jcr methods and make mutex and use_count private.
64 - Create lock/unlock methods for jcr.
65 - Fix PostgreSQL bug doing sql_data_seeek() by explicitly reading
66   records to get to seek position.
67 - Integrate patch from bug #561 to correct conio.c signal definitions.
68 - Fix Rescheduling failed Jobs. Ensure that SD message thread 
69   terminates correctly by doing pthread_kill(). Do not destroy
70   SD cond wait variable between executions of the job. Use local
71   mutex for cond variable to avoid blocking jcr chain. Fix poor 
72   use of jcr use count in jobq.c for restarted jobs.
73 - Fix obsolete usage of foreach_dlist() to use foreach_jcr() in
74   lib/jcr.c -- prevents locking the jcr chaing.
75 - Apply patch from bug #564, which corrects listing volumes with
76   multiple autochangers. Apply same fix to next volume list.
77 - Fix bug #562 where restore bootstrap file is not unique.
78 - Use new routine lock_reservations() to lock the reservations
79   system, and call it while looking for a volume in askdir.c.
80   This could possibly fix bug #543.
81 - Stop SD command loop if job is canceled.
82
83 Beta4 attached to a bug report but not distributed.
84 04Mar06
85 - Fix new sql_use_result() code to properly release the
86   buffers in all cases.
87 - Convert to using new Python class definitons with (object).
88 - Use the keyword ujobid to mean the unique job id; job or jobname
89   to mean the Job name given on the Name directive, and jobid to
90   be the numeric (non-unique) job id.
91 - Allow listing by any of the above.
92 - Add the user friendly job report code for reporting job elapsed time
93   and rates with suffexes.
94 - Add Priority and JobLevel as Python settable items.
95 - Use TEMPORARY table creation where the table is created by
96   Bacula.
97 - Add new code submitted by Eric for waiting on specific jobid.
98 - Add ACL checking for the dot commands.
99 - Fix restore of writable FIFOs.
100 - Fix a bug in bpipe where the string was freed too early.
101
102 26Feb06
103 - Fix bug reported by Arno listing blocks with bls
104 - Update the po files at Eric's request.
105
106 Release 1.38.6-beta2 25Feb06
107 25Feb06
108 - Add sql_use_result() define.
109
110 Release 1.38.6 beta1 24Feb06
111 24Feb06
112 - Don't open default catalog if not in ACL.
113 22Feb06
114 - Add virtual disk autochanger code.
115 - Add user supplied bug fix to make two autochangers work
116   correctly using StorageId with InChanger checks.
117 - Correct new/old_jcr confusion in copy_storage().
118 - Remove & from Job during scan in msgchan.c -- probably
119   trashed the stack.
120 - When getting the next Volume if no Volume in Append mode   
121   exists and we are dealing with an Autochanger, search
122   for a Scratch Volume.  
123 - Check for missing value in dot commands -- bug fix.
124 - Fix bug in update barcodes command line scanning.
125 - Make sure Pool Max Vols is respected.
126 - Check that user supplied a value before referencing
127   it in restore -- pointed out by Karl Hakimian. 
128 - Add Karl Hakimian's table insert code.
129 - Don't ask user to select a specific Volume when
130   updating all volumes in a Pool.
131 - Remove reservation if set for read when removing dcr.
132 - Lock code that requests next appendable volume so that
133   two jobs to get the same Volume at the same time.
134 - Add new Device Type = xxx code. Values are file, tape,
135   dvd, and fifo.
136 - Preserve certain modes (ST_LABEL|ST_APPEND|ST_READ) across
137   a re-open to change read/write permission on a device.
138 - Correct a misplaced double quote in certain autochanger  
139   scripts.
140 - Make make_catalog_backup.in a bit more portable.
141 - Implement Karl Hakimian's sql_use_result(), which speeds
142   up restore tree building and reduces the memory load.
143 - Correct a number of minor bugs in getting a Volume from  
144   the Scratch Pool.
145 - Implement additional command line options for update Volume.
146 - Don't require user to enter a Volume name when updating
147   all Volumes in a pool.
148
149 Release 1.38.5 released 19Jan06:
150 19Jan06
151 - Apply label barcodes fix supplied by Rudolf Cejka.
152 18Jan06
153 - Modify standard rpm installation to set SD group to disk
154   so that SD will by default have access to tape drives.
155 - Allow users to specify user/group and start options
156   for each daemon in /etc/sysconf/bacula file.
157
158 Release 1.38.4 14Jan06 released 17 Jan 06:
159 16Jan06
160 - Add two new queries to query.sql provided by Arno. One
161   list volumes known to the Storage device, and the other
162   lists volumes possibly needing replacement (error, ...).
163 15Jan06
164 - Add periodic (every 24 hours) garbage collection of memory 
165   pool by releasing free buffers.
166 14Jan06
167 - Correct bug counting sized (for display only) in smartall.c
168 - Print FD mempool stats if debug > 0 rather than 5.
169 12Jan06
170 - Correct bug in alist.c that re-allocated the list if the
171   number of items goes to zero.
172 - Move the reservation system thread locking to the top level
173   so that one job at a time tries all possible drives before
174   waiting.
175 - Implement a reservation 'fail' message queue that is built         
176   and destroyed on each pass through the reservation system.
177   These messages are displayed in a 'Jobs waiting to reserve
178   a drive' list during a 'status storage='.  Note, multiple
179   messages will generally print for each JobId because they
180   represent the different problems with either the same drive
181   or different drives.  If this output proves too confusing
182   of voluminous, I will display it only when debug level 1
183   or greater is enabled in the SD.
184 11Jan06
185 - Add enable/disable job=<job-name>.  This command prevents
186   the specified job from being scheduled. Even when disabled,
187   the job can be manually started from the console.
188 - During 'update slots' clear all InChanger flags where the
189   StorageId is zero (old Media records).
190
191
192 Beta release 1.38.4:
193 09Jan06
194 - Fix autochanger code to strip leading spaces from returned
195   slots number. Remove bc from chio-changer.
196 - Back port a bit of 1.39 crypto code to reduce diffs.
197 - Fix first call to autochanger that missed close()ing the
198   drive. Put close() just before each run_program().  Fixes
199   Arno's changer bug.
200 07Jan06
201 - Add PoolId to Job record when updating it at job start time.
202 06Jan06
203 - Pull in more code from 1.39 so that there are fewer file
204   differences (the new ua_dotcmds.c, base64.h, crypto.h
205   hmac.c jcr.c (dird and lib) lib.h md5.h parse_conf.c 
206   util.c. Aside from ua_dotcmds.c these are mostly crypto
207   upgrades.
208 - Implement new method of walking the jcr chain. The
209   incr/dec of the use_count is done within the walking
210   routines.  This should prevent a jcr from being freed
211   from under the walk routines.
212
213 Release 1.38.3 05Jan06:
214 04Jan06
215 - Move the suitable_drive flag to a better place to prevent
216   premature termination of the reservation if all drives
217   are busy -- should fix Arno's diff/inc pool failures.
218 26Dec05
219 - Add mutex to single thread VSS code in Win32.
220
221 Beta release 23Dec05:
222 22Dec05
223 - Add OPENSSL_INC to console dependencies, lib dependencies, and
224   wx-console dependencies in Makefile.in
225 - Add OPENSSL INC/LIB to gnome2_console Makefile.in.
226 - Simplify code in askdir.c that waits for creating an appendable
227   volume so that it can handle multiple returns from the wait
228   code.
229 - Modify the wait code to permit multiple returns.
230 - Return a zero when 'autochanger drives' is called and
231   it is not an autochanger.
232 - Make rewind_dev() a method taking a DCR as an argument.
233   This permits closing and reopening the drive if the
234   rewind fails as happens if the drive was loaded while the
235   file descriptor was open. This refreshes the file descriptor.
236 - Remove the ST_OPENED flag and always rely on fd < 0 for knowing
237   if the device is open or not.  This should eliminate
238   Arnos problem.
239 - Return error if reserve cannot find at least one suitable device.
240 - Make wait_for_sysop() return correct state information.
241 - Fix Win32 state file problem. write was not using compat
242   code. This should fix bug #500.
243 21Dec05
244 - Modify gui on command to set only GUI mode and not batch.
245 - Modify .messages command to always print messages regardless
246   of the mode.                
247 - If GUI mode is on, suppress automatic printing of 
248   You have messages. 
249 - Delete old bnet packet code.
250 - Ignore new BNET_START_SELECT and BNET_END_SELECT signals in
251   wx-console.
252 - Modify restore command in wx-console to set gui on and to use
253   only .messages instead of messages.  Hopefully this fixes bug
254   #514.
255 Beta release 20Dec05:
256 20Dec05
257 - Fix seg fault in exit of acquire when canceling a job --
258   reported by Wolfgang Denk
259 19Dec05
260 - Implement load balancing code.
261 - Pull a few files from 1.39 where we can maintain compatibility.
262 - Rewrite reservation algorithm again. Rename variables to be
263   more logical, add HEARTBEAT with Director, allow cancel of
264   jobs stuck in reservation, add last resourt any_drive.
265 17Dec05
266 - Remove quotes from Version table name -- it breaks things.
267 - Fix seg fault if user labels a drive directly bug #513
268 - Remove quotes around Version as it breaks things.
269 16Dec05
270 - Merge in Aleksandar Milivojevic's mods to the spec file.
271 - Apply sparse code fix for raw drives and fifos. Bug 506
272 - Thorsten fixed Unicode cd problem with wx-console bug 505.
273 14Dec05
274 - Correct reservation system to do a last ditch try
275   for any mounted volume, then anyone anywhere.
276 - Add quotes around table Version because of 
277   error in MySQL 4.1.15 -- bug report submitted.
278 - Correct some minor problems with btape in the fill
279   command.
280 - Updates to ssh-tunnel from Joshua Kugler.
281 - Added a report.pl program from Jonas Bjorklund.            
282 - Simplify the O_NONBLOCK open() code for tape drives,
283   and always open nonblocking.
284 - Do not wait for open() if EIO returned (shouldn't happen).
285 - Eliminate 3 argument to tape open().
286 - Correct the slot # edited in the 3995 Bad autochanger unload
287   message.
288 - With -S on bscan (show progress) do not divide by zero.
289 13Dec05
290 - Make cancel pthread_cond_signal() pthread_cond_broadcast().
291 - When dcr is freed, also broadcast dev->wait_next_vol signal.
292 - Remove unused code in wait_for_device.  
293 - Make wait_for_device() always return after 120 seconds of wait.
294 12Dec05
295 - Use localhost if no network configured
296 11Dec05
297 - Eliminated duplicate MaxVolBytes in cat update -- bug 509.
298 - Remove debug print.
299 - Add bail_out in error during state file reading.
300 09Dec05
301 - Merge updates into 1.38 branch
302 - Update specs to include mysql4 define.
303 - Stop read_record() if status not ok in second loop.
304 - Return rec->FileIndex in dcr->VolLastIndex for normal
305   and partial records in read_record().  This allows bscan
306   to get FileIndex at EOT correct.
307 - Fix butil.c to correctly set dcr -- fixes seg fault in bls.
308 08Dec05
309 - Apply patch supplied by user (slightly modified) to fix
310   correct detection of holes in block devices and FIFOs. 
311   Bug # 506.
312 - Apply patch supplied by user (slightly modified) 
313   to fix SD hang with multiple pools and bad client
314   IP. Fixes bug # 508.
315 07Dec05
316 - Add nagios plugin to the examples directory. Submitted by
317   Christian Masopust.
318 - Remove warning message about multiple saves of hardlinked files
319   from find_one.c as it can generate too many warning messages.
320 06Dec05
321 - Reset timeout values before select() per patch from 
322   Frank Sweetser for problems with non-blocking sockets.
323 - Unlink the state file if either reading or writing it gets
324   errors.  Hopefully this will fix Win32 exit problems.
325 - Add sanity check in append.c to ensure that dcr is not NULL.
326   This can happen if multiple drive autochanger SCSI control
327   channel and drive indicies do not correspond.
328 05Dec05
329 - Get next volume from Scratch pool before creating a volume.
330 - Set new Pool defaults in Vol when moved from Scratch Pool.
331 - Remove argument from create_bacula_database for SQLite as it
332   caused an error.
333 - Add back next_vol index code so that two drive autochangers can get
334   a second tape.
335 - Change a bunch of debug levels to aid debugging autochangers.
336 - Fix reservation so that mutexes are properly applied.
337 - Rework reservation algorithm so that two drives can be used
338   at the same time.
339 04Dec05
340 - Apply days keyword patch from Alexander.Bergolth at wu-wien.ac.at 
341   If this patch is applied, the number of days can be specified with
342   'list nextvol days=xx'
343   or
344   'status dir days=xx'
345   My use case is to be able to preview the next scheduled job (and the 
346   next tape to be used) on fridays if there are no scheduled jobs during 
347   the weekend.
348 03Dec05
349 - Fix font code in gnome2 console user patch. Fixes bug #501.
350 - Fix malformatted bnet error message that caused seg fault
351   fixes bug 502
352 - Applied user patch to improve README.vc8 in src/win32.
353 29Nov05
354 - Correct some more editing of JobId's (for 64 bit compatibility).
355 - Ensure that StorageId is stored in Media record when ever possible.
356 - Add Migration Job to Job.
357 - Change Start Storage daemon job to require read and write storage
358   pointers.
359 - Pass read storage data to SD as well as write storage data.
360 - Remove old code from winservice.cpp
361 - Break on error in scan.
362 - Fix typo in signal.c
363 - Separate read/write DCR in SD.  Add jcr->read_dcr.
364 - Cleanup how find_device() works.
365 - Add read output to Status in SD.
366 21Nov05
367 - Remove abs() in bfile.c so that it compiles on Solaris. Bug #491.
368
369 Changes to 1.38.2: 22 November 2005
370 - Fix crash in tray-monitor when daemon disconnects. Bug #479.
371 - Fix bnet-server bug found on OpenBSD. Bug #486
372 - Fix cancel failure bug. Bug #481
373 - Fix failure when Pool name has spaces. Bug #487   
374 - Fix SD crash in autochanger code. Mutex failure. Bug #488
375 - Fix a couple of free()s in src/filed/acl.c
376 - Fix memory overrun in bfile.c in building OS X resource
377   fork filename. Bug #489 
378 - Add Pool name to SD status output.
379 - Add Python install dir for Solaris to configure. Bug #492
380
381 Changes to 1.38.1: 15 November 2005
382 - Apply SunOS patch for ACLs submitted by David Duchscher.                  
383 - Make sure to set storage before trying to set drive.
384 - Add bacula_mail_summary.sh to examples directory. It makes
385   a single email summary of any number of jobs. Submitted
386   by Adrew J. Millar.
387 - Make sure when we do a mount to unblock the device even
388   if the drive could not be opened.  
389 - Merge Scott's new spec files.
390 - Add doc on setting up Win32 environment variable supplied
391   by Kees van den Broek.               
392 - Turn off API debug output unless debug set to avoid confusing
393   the user.
394 - Add Solaris ACL detection in configure.in as supplied by
395   Attila Fulop. 
396 - Implement 'autochanger drives' protocol so that Dir knows
397   how many drives an autochanger has.
398 - Do not request drive number in label, ... if only one drive.
399 - Turn off debug code.
400 - Fix update slots to clear slot number of every slot before
401   setting it.  This fixes (I believe) bug #471
402 - Make unmount unload the autochanger slot.
403 - Modify open() on mount to be read-only and non-blocking,      
404   otherwise the mount can block for a long time.
405 - Make a few error message numbers unique.
406 - Make a few error messages more correct.
407 - Apply patch from Thorsten to fix Win98 stat() command.
408 - Remove delete of CVS from all makefiles.
409 - Fix seg fault when clicking on Add button in wx-console
410   restore panel.  Bug #470.
411 - Fix copyright date and URL typo -- bug #468.
412 - Change autostart install for FreeBSD to look for rc.conf  
413   rather than rc.local as suggested fix for bug #466.
414 - Apply patch supplied by Eric Bollinger to fix PostgreSQL    
415   grant on status. Bug #465
416 - Apply patch supplied by Eric Bollinger to fix PostgreSQL
417   update script. Bug #464
418 - Fix off by one for last Slot of autochanger for label.
419 - Update release date.
420 - Tweak an authentication error message in dir.
421 - Fix autoloader so that mutex is set and released around
422   each run_program().  There was a missing set.
423 - Remove an unnecessary drive release in autochanger.
424 - Modify configure.in to add execute option to sqlite3 catalog  
425   scripts.
426 - Create update_xxx_table_8_to_9 scripts for updatedb
427 - Fix wrong variable in bpipe.c debug output reported by user.
428 - Fix improper placement of encode_and_send_attributes() in
429   FD backup.c causing first file of non-portable Win32 backup
430   to have wrong stream. Reported by Thorsten.
431 - Move the -lcrypt for PostgreSQL after the PostgreSQL libs in
432   autoconf/bacula-macros/db.m4 as suggested by user.  Fixes bug #457.
433 - Remove @STATIC_CONS@ from tray-monitor Makefile as suggested
434   by user. Fixes bug #456.
435
436 Released 1.38.0 (28Oct05): 31 October 2005
437
438 Changes to 1.37.42:
439 26Oct05
440 - Don't overwrite pthreadVCE.dll or msvcr71.dll during Win32 
441   install.
442 - Update README.win32 instructions.
443 25Oct05 
444 - Make db_get_job_record() return Name so that the ACL
445   can be checked.  Fixes bug #446
446 22Oct05
447 - Insure that all the SD tools init the Autochanger
448   resources.
449
450 Changes to 1.37.41:
451 22Oct05
452 - Print error message if no Changer Command found.
453 - Apply fix from Martin Simmons to clear structure before
454   using it in IPADDR -- fixes a bind() bug on AIX.
455 14Oct05
456 - Add NetBSD fstype patch from Geert Hendrickx <ghen@telenet.be>
457 - Update num_parts only when writing to DVD.
458 13Oct05
459 - Fix error conditions in bpipe.c DVD routine (terminate buffer).
460 - Use a bigger buffer 32K as suggested by Arno in bpipe.c.
461 - Increase dvd mount timeout with patch from Arno.
462 - Modify DVD code so that it keeps a state flag that indicates
463   when the freespace variable is valid. freespace_errno, now has
464   either 0 or an errno. There are no negative errnos.
465 - Create is_freespace_ok() to test state flag. Also, set_freespace_ok()
466   and clear_freespace_ok(). Modify code to use them.  This
467   simplifies a bit the logic of the freespace code.
468 - Edit 64bit debug values correctly in dvd.c
469 - Fix %e variable to check num_parts rather than part.
470 - Use static buffer instead of static buffers for FI_to_ascii()
471   and stream_to_ascii() debug routines in SD. This is to prevent
472   possible race conditions between two threads (possibly Phil's
473   unmount problem).
474 12Oct05
475 - Add a .dir command that separates arguments with commas. It
476   is intended to be used in the tree routines to get a 
477   machine readable output for GUIs like wx-console.
478 - Make configure set dvd-handler to have execute permission.
479 - Install dvd-handler as is done for other dvd-xxx scripts.
480 - In block.c call dvd_write_part() to write last part rather
481   than dvd_open_next_part().
482 - Prefix some DVD subroutines with dvd_
483 11Oct05
484 - Add extra debug to Update media error for VolFiles decrease
485   error.
486 - Do not update dev->file on set_ateof() for non-tape.
487 10Oct05
488 - Mark DVD volume in error if part cannot be written.
489 - If a DVD is mounted, unmount it before asking operator
490   to mount an different one.
491 - Add Arno's dvd-handler script to the scripts directory and
492   integrate with configure.  It replaces both existing scripts.
493 - Make default schedule start at 23:10
494 - Implement gui release in Makefile. It creates two .tar.gz
495   bacula-web and bimagemgr.
496 08Oct05
497 - Add README plus tar release to gui project.
498 - Manual documentation
499 - Tweak bacula.man doc
500 - Add PRAGMA synchronous = NORMAL; to SQLite3 tables. This
501   speeds up SQLite3 so it is only about 10% slower than version
502   2.xx.  Thanks to Russell Howe for this tip.
503 - Add msvcr71.dll to pebuilder .inf file as it is needed by
504   Bacula FD.  Thanks to Brandon for passing this fix to Scott.
505 05Oct05
506 - Add VolumePurged method to Python JobEvents class.  Fixes
507   bug #428 (I think).
508 - Add JobId index to File table for MySQL.
509 - Correct tray-monitor crash of bacula-dir. qstatus_cmd()  
510   code referenced the wrong pointer. Fixes bug #438.
511 - Add bacualnovss.mak file from Martin.
512 - Remove Pool from restore string in wbrestorepanel.cpp. Patch
513   from user for bug #433.
514 - Correct code in wbrestorpanel.cpp with misplaced parens. Patch
515   from user for bug #431
516 - Correct printing filenames/date/times in wbrestorepanel.cpp due to bad
517   column alignment. Patch from user for bug #432.
518
519 Changes to 1.37.40:
520 01Oct05
521 - Add fix to compat.h supplied by Martin Simmons that permits
522   building the Win32 FD without VSS.
523 29Sep05
524 - Bring cats/bdb_x.c routines up to version 1.37 (return values
525   are different).
526 28Sep05
527 - Integrate libwrap patch from Szechuan Death. They should
528   also fix bug 423.
529 - Clean up patches directory for next release.
530 - Add PS variable in bacula.in script as recommended by a user.
531 - Correct mtx-changer.in so it only creates a temp file when
532   actually needed.
533 - Add patch supplied by user in a bug report to fix gnome2
534   console buttons.
535 - Add patch from Peter Eriksson <peter@ifm.liu.se> to correct
536   NLS error in tray-monitor.c
537 26Sep05
538 - Add code to catalog_update to detect NULL db pointer.
539 - Remove char *msg argument from catalog_request and   
540   catalog_update().
541 24Sep05
542 - Fix mode change open in btape.c
543 - Use nonblocking opens on Linux only.
544 - Move set_blocking code for tapes into method to
545   simplify main line code.
546 - Cleanup the code for ensuring we advance tape on fsf.
547   This should fix IBM problems -- patch from Adam Thorton
548   was very helpful.
549 - Remove test for BMT_EOD in fixup_device... this eliminates
550   need for status_dev() routine.
551 - Before doing label ensure device is in read-write mode.
552
553 Changes to 1.37.39:
554 20Sep05
555 - Tweak daemon.c berrno, copyright.
556 19Sep05
557 - Fix handling of temp file in mtx_changer.in, reported as
558   a security bug, but it is not really.  Bug #422
559 - Fix security problem of handling temp file in randpass.
560   Bug #422.
561 - During label/relabel, add new_volume to VOLRES list in SD.
562 18Sep05
563 - Apply Landon's patch for the TLS ANS1 API change.
564 - Remove old code.
565 - Make single exit path in first_open_device().
566 17Sep05
567 - Make new_volume walk through all Vols looking for dev 
568   to release.
569 16Sep05
570 - Make 'quit' command in console always allowed.
571 - Remove the storage list between each console command to
572   keep Dir from remembering a previously selected SD.
573 - Add code to reservation VOLRES subroutines to try to ensure
574   we don't end up with two Volumes on the same drive.
575 - Simplify the mutex code in VOLRES a bit to reduce the chance
576   of error.
577 15Sep05
578 - Apply Nicolas' dvd-freespace.in patch.
579 - Make sure SQL table names are not translated.
580 - Eliminate incorrect message saying barcodes not
581   found in 'label barcodes' -- fixes bug report.
582
583 Changes to 1.37.38:
584 07Sep05
585 - Add ability to have passwords on backup of catalog as
586   alternate 3rd argument. Submitted by Andrew Ford
587   <A.Ford@ford-mason.co.uk>
588 - Turn off TapeAlert by default if user enables a Device
589   and add a note to install mtx.
590 04Sep05
591 - Fix out of order volumes during restore.
592
593 Changes to 1.37.37:
594 30Aug05
595 - Final tweaks to build Win32.
596 - Enable debug code in ua_label.c
597 - Remove devices from the Volume list even if no
598   Volume is in drive.  Hopefully this fixes Arno's problem
599   of multiple volumes listed in the same drive.
600 28Aug05
601 - Apply Landon's patch for TLS default values.
602 - Correct LOCALEDIR problem in build of Win32
603 - Correct ssize_t problem in build of Win32
604 - Add code to llprint pools and volumes to debug next item.
605 - From bug report, fix resetting Pool defaults in Volume. It
606   was a typo 'Max' was missing in several places.
607 - Don't allow translation of database Volume Status values.
608
609 Changes to 1.37.37 released 26 Aug 05
610 24Aug05
611 - Ensure that the drive is closed before calling the
612   mtx-changer script so that the script can access the drive.
613 - Add drive name to reserved Volume list printout in SD.
614 23Aug05
615 - Fix bug in acquire.c that incorrectly reported volume
616   busy.
617 - Add additional debug code and messages in reserve.c
618 - Eliminate unwanted warning message in reserve.c
619
620 Changes to 1.37.36 released 22 Aug 05
621 20Aug05
622 - Landon's fix for NLS detection
623 - Eliminate incorrect compiler warning on FreeBSD. 
624 - Move Win32 errno message build into berrno constructor.
625 - Minor Win32 tweaks
626 19Aug05
627 - A number of minor Win32 fixes.
628 - Remove a PostQuitMessage() as suggested by Thorsten so that
629   BartPE restore can work correctly.
630 - Fix for create JobMedia so that VolIndex remains valid even
631   during a delete Job or pruning -- bug 402.
632 - Minor tweak for Win32 build.
633 18Aug05
634 - Win32 fix -- remove debug O_NONBLOCK code.
635 - Fix bug 399 -- make_catalog_backup does not work for sqlite3
636 - Implement unloading a volume in a different drive if it
637   is needed in the current drive.
638 - Implement search for unused autochanger drive.
639 - Implement search for exact Volume in reservation before
640   other searches.
641 - Fix picking up drive in Dir so that it is not done in
642   the status command.
643 - Eliminate double check on 'loaded' for autochanger.
644 17Aug05
645 - Start coding better reservation algorithm
646 - Always look for slot for label command.
647 - Add more debug code for autochangers.
648 - Apply fix from Stephan Leemburg <sleemburg@jvc.nl> for
649   improper scanning of schedule resource:
650   Run = Level=Full Pool=Catalog daily at 1:20
651 - Apply patch from Chris Lee <labmonkey42@gmail.com> for 
652   adding --enable-build-dird --enable-build-stored.
653 - Tweak datadir definition in configure.in
654 16Aug05
655 - Fix bug that missed drive=nn specification.
656 - Eliminate nonblocking kludge in heartbeat of FD as
657   it caused high CPU usage.
658 - Pickup loaded slot when doing open() of tape drive.
659 - Make autochanger reservation code go through full list
660   first pass until exact match found.
661 15Aug05
662 - Fix how FileSet is saved in job record to correct continual  
663   Full save.
664 - Make datadir print on config.out listing.
665 - Move get FileSet record up in backup init to eliminate continual
666   Full save seen by Peter Sjoberg.
667 - Add VolumeName to read-only Python variables.
668 - Add VolumePurged event for Python.
669 - Suppress /dev/ Filesystem change prohibited INFO messages.
670 - Do not delete FT_RAW files before restore (allows FIFOs
671   to be used for restore).
672 13Aug05
673 - Add drive specification to mount, unmount, release, label,
674   and relabel for Autochangers.  Note Dir<->SD protocol has
675   changed.
676
677 Changes to 1.37.35:
678 12Aug05
679 - Disable parts of NLS as the configure does not work here.
680 - In job backup init (backup.c) define definitive Job level and
681   since time, *then* apply Job Pool override selection if any.  
682 11Aug05
683 - Modified bconsole script so that it is improperly
684   installed, it will refuse to execute.  This avoids
685   recursive call loops.
686
687 Changes to 1.37.34:
688 06Aug05
689 - Apply David's ACL fix to src/filed/acl.c
690 05Aug05
691 - Apply patches sent by David Duchscher <kreios@gmail.com> for
692   making ACLs work on MacOS X and FreeBSD.
693 04Aug05
694 - Apply patch in bug#397 that improved configure
695   - find readline under $with_readline/include/readline
696   - no libutil under Solaris
697   - no need for -ldl under Solaris 
698 - Make reservation system single threaded during the
699   search to avoid two threads competing for the same
700   resource.
701 - Correct a return code in find_suitable_device_for_job()
702   Possibly cause of 'busy writing to another volume'.
703 03Aug05
704 - Modify open() for tape so nonblocking really works.  
705 - Use fcntl() to reset blocking status rather than close()
706   and reopen the drive.
707 - Make sure dev->open() is always called so that any change
708   in read/write permissions will occur.
709 - Open drives initially in daemon in read-only mode.
710 - Ensure that each time the VolHdr.VolumeName is zapped
711   or changed that free_volume() is called on the old name.
712
713 Changes to 1.37.33:
714 03Aug05
715 - Require 5 arguments to mtx-changer except list and slots
716 - Turn -EPIPE status returns from bpipe to ETIME
717 - Include Slot in SD status output 
718 - Do not term_dev() during initialization in SD if the device
719   could not be opened.  In the case of a tape drive, there may
720   be no tape in the drive.
721
722 Changes to 1.37.32:
723 02Aug05
724 - Correct PostgreSQL database scripts as suggested by a user.
725 - Add additional info to FATAL message generated when a device
726   is busy writing to another volume.
727 - Suppress an inappropriate NULL Volume name message after a cancel.
728 - Correct a warning message in reserve.c
729 29Jul05
730 - Apply user's patch to make mutiple modifiers for times
731   work correctly.
732 - Make read_dev_volume_label() handle ANSI/IBM labels
733   correctly -- ie space over any label at the beginning
734   of the tape.
735 28Jul05
736 - Make ANSI/IBM writing of HDR1/2 labels ignore any
737   errors if at end of tape.
738 - Apply Martin's patch to improve Python detection in
739   configure.in
740 - Temporarily turn off disk seeking until I find the
741   cause of the problem.
742 27Jul05
743 - Add OSF1 patch supplied by user.
744 - Use number of files selected from write_bsr() only
745   if it is not defined.
746 - Explicitly seek to end of file when getting size for
747   restore test.
748 - Correctly set EndBlock position in JobMedia record
749   for files.
750 - Remove unnecessary set StartBlock in bscan. Caused bscan
751   regression error.
752 26Jul05
753 - Modify mtx-changer to wait a maximum of 300 seconds.
754 - Do restart of failed jobs only for Backups job types.
755 - A number of DVD updates from Nicolas.
756 24Jul05
757 - Turn off old service helper code in Win32.
758 - Correct Messages bug found by Phil in stored.
759 23Jul05
760 - Complete (almost) documentation of 1.38.
761 - Add error messages for error conditions with VSS.
762 - Fix additional problems with VSS backup that I introduced.
763 Changes to 1.37.31:
764 22Jul05
765 - Correct compiler complaints in wx-console and tray-monitor.
766 - Correct VSS problems recognizing c:
767 - Add VSS before job status
768 - Fix output of status from being one big line.
769 - Change cd xx; make to cd xx && make as suggested by Phil.
770 - Cleanup projects file
771 - Remove unnecessary casting of FF_PKT in filed.
772 - Apply Thorsten's bugfix for vss_generic.cpp
773 - Add check for df path for dvd_freespace
774 - Use df to get space used on DVD.
775 - Change sense of flag indicating erase DVD or not before writing.
776 - Fix bpipe so that it never modifies the result pointer.
777 - Replace more dev_name by print_name().
778 - Rewrite edit_device_codes_dev() so it does not overwrite the
779   supplied buffer.
780 - Update printing of labels (for bls) so that critical information
781   is printed (Job name and timestamp).
782 - Cleanup old spool files when starting the SD.
783 - Modify vss.cpp to allow C: as a path name.  Otherwise VSS
784   doesn't work when only a drive name is given.
785 - Modify vss.c to eliminate double / in filenames.
786 - Update doc -- particularly the restore chapter.
787 18Jul05
788 - Make all files in working directory have .xxx at end.
789 - Work on DVD writing.
790 - Fix keepatime bug (bugs database).
791 - Move Python variables from Job to Bacula. They are
792   DirName, Version, ConfigFile, and WorkingDir
793 - Fix delete of bootstrap to only occur on Bacula created
794   filenames.
795 - Allow cancelling a Job name that is not active. It is
796   sent to the daemons.
797 17Jul05
798 - Fix name space pollution by OpenSSL 0.9.8 reported by
799   Matthias Kurz -- applied his patch.
800 - Fix bpipe.c so that it does not modify results pointer.
801   ***FIXME*** calling sequence should be changed.
802 - Remove some remaining references to dev_name.
803 - Fix calls to mount_dev() and unmount_dev() to
804   correspond to returned value (bool instead of int).
805 - Try without success to make DVD writing work.
806 == Nicolas
807 15Aug05
808  - Convert dvd-writepart to Python.
809  - Increase delay from 3 seconds to 5 seconds between SIGTERM and SIGKILL when
810    killing external programs.
811 13Aug05
812  - Add gettext macros in autoconf/gettext-macros.
813  - Modify how localedir is set in configure.in.
814  - Remove setlocale check (useless).
815 10Aug05
816  - Mark translatable strings in all source files.
817 08Aug05
818  - Create French and Italian translation files (fr.po, it.po).
819  - Add support for translation in configure and Makefiles.
820  - Update autoconf/aclocal.m4 so it is automatically created with aclocal
821    (Note: autoconf/gnome-macros is not used anymore, it may be removed).
822 30Jul05
823  - Fix src/lib/bpipe.c:run_program and run_program_full_output to detect if the watchdog
824    killed the program, and return an error if it is the case.
825 26Apr05
826  - Modify parse_config to get a LEX_ERROR_HANDLER as a parameter 
827  - lex_open_file now returns NULL if the file can't be opened. All calling functions have
828    been adapted.
829  - Remove set_exit_on_error function
830 07Apr05
831  - Fix 'unknown device type' problem with DVD devices.
832  - Fix crash when there is no media in the DVD drive.
833 09Jan05
834  - Update the documentation and ReleaseNotes.
835 05Jan05
836  - Add FreeSpaceCommand in Device (SD configuration file) and implement it.
837  - Some modifications (again) on how guessed volume names are handled (now it should work).
838  - Part files on the hard disk are removed if they are empty.
839 04Jan05
840  - Major fixes on how guessed volume names are handled.
841  - Minor fix in src/stored/append.c.
842  - Replace, when possible, POOLMEM by POOL_MEM in the new code of src/stored/dev.c.
843  - New script, scripts/dvd-freespace, which gets the free space available on a writable DVD.
844 03Jan05
845  - Add WritePartAfterJob directive in Job resource (Director)
846  - Add WritePartAfterJob directive in Schedule Resource (Director)
847  - Implement these new directives
848 02Jan05
849  - New function, open_guess_name_dev in src/stored/dev.c, which tries to guess the volume
850    name of a mounted device, so the label can be read.  
851  - New script, scripts/dvd-writepart, which write parts to DVD+/-R(W).
852  - Removed WriteFirstPartCommand directive in Device (SD configuration file).
853  - Use readdir_r instead of readdir (src/stored/dev.c:open_guess_name_dev).
854 01Jan05
855  - Add RequiresMount, MountPoint, MountCommand, UnmountCommand directives in Device (SD configuration file).
856  - Implement these directives (volumes can now be restored from a manually written DVD). 
857  - Add WriteFirstPartCommand, WritePartCommand directives in Device (SD configuration file).
858  - Implement these directives (DVD writing now works).
859  - New function run_program_full_output in src/lib/bpipe.c.
860  - Lots of bugfixes and cleanups in the new code.
861 29Dec04
862  - Add VolParts field in Media table
863  - Add MaximumPartSize directive in Device (SD configuration file)
864  - File Volumes can now be splitted in multiple files ('parts')
865  - Fix SQL error in sql_list while doing 'llist jobmedia'
866
867 Changes to 1.37.30 released 16 July 2005:
868 14Jul05
869 - Fix 'dir' command scanning field misalignment in
870   wx-console.
871 - Switch to using the wxWidgets Unicode library.
872 - Include msvcr71.dll in distribution.
873 - Add VSS to status line in Win32 FD if enabled.
874 - Get VSS build scripts working with Thorsten's help.
875 - Unlink the bootstrap file after sending it to
876   the FD.
877 - Remove sending include/exclude lists to the FD during
878   a restore -- deprecated code.
879 - Cleanup the bootstrap files in the FD.
880
881 Changes to 1.37.29:
882 14Jul05
883 - Remove old commented out code from configure.in
884 - Add baculavssfd.mak file for building VSS version of
885   Win32 FD.
886 - Correct date (year) in vss.cpp and vss_generic.cpp
887 13Jul05
888 - I finally found and squashed the elusive SD crash.        
889   I needed to initialize the used volume list before
890   firing off the device initialization thread.
891 Changes to 1.37.28:
892 11Jul05
893 - Make sure that bpipe results are zapped even on
894   error return.
895 - Lots of documentation.
896 - Do not prune volume marked as append when needing a
897   new Volume.
898 - Print a warning message in SD if a non-used Volume
899   is specified and autolabel not turned on.
900 - Correct a bug in chksum.c concerning SHA1 signatures 
901   (an * should have been & when checking for a bit flag).
902 - Print File:Block for all label records in label.c -- concerns
903   primarily bls when doing Job listings (-j).
904 - Correct is_volume_in_use() to return false if testing
905   on the same device where the Volume is already mounted.
906 - Define a init_done flag in the SD that is set when the
907   devices are initialized and make users connecting wait.
908   This prevents useless connect failure warning messages.
909 - Do additional device locking in ask_op_to_mount_volume()
910   to prevent race conditions with a user labeling a Volume
911   or autolabeling.
912 09Jul05
913 - Add a test for error return from bnet_wait... in heartbeat.c
914   in FD to avoid CPU loop.
915 - Implement TLS in gnome console and wx-console.
916
917 Changes to 1.37.28:
918 08Jul05
919 - Correct a NULL pointer reference in the mount command.
920 - Correct typo in Copyright
921 - Add detection of EOM for IBM drives (i.e. errno == ENOSPC)
922 07Jul05
923 - Remove temp file created in mtx-changer script.
924 - Make fsf_dev() into a class method.
925 06Jul05
926 - Modify mtx-changer.in script to return slot:barcode for
927   Volumes that are loaded in the drives.
928 - Correct some more places where dev->is_blocked() needs
929   to be checked in dircmd.c in SD.
930 - Update doc.
931 05Jul05
932 - Add code to ensure that reserved but unused volumes
933   are freed. 
934 - Correct how Volumes are mounted and handled so that the SD
935   does not get stuck if multiple volumes are used (recycling,
936   relabling, ...)
937 - Correct bug where you could relabel a volume while it
938   was being acquired -- created chaos.
939 04Jul05
940 - Correct seg fault caused by open() calling sequence change.
941 03Jul05
942 - Add new rc-chio-changer script by Rudolf Cejka to 
943   examples/autochangers
944 - Apply Rudolf's changes to bacula.in
945 - Expand the space from 8 to 10 characters in editing
946   file sizes for restore and dir of catalog, otherwise
947   GB sizes are truncated -- fixes bug report.
948 - Modify wx-console to know about 10 character widths.
949 - Allow decending into top level directory if 'recurse=no'
950   is set.  Fixes a bug report.
951 - Install pthreadVCE.dll when installing console or wx-console
952   on Win32 systems. Fixes bug report.
953 02Jul05
954 - Tweak dvd-writepart script to prevent door from opening/closing
955   so much.
956 - Remove GROUP BY in several PostgreSQL commands to prevent error.
957   Resolves bug report.
958 - Ensure that < as first character of filename list is not treated
959   as a directory for restore.
960 - Add debug to heartbeat in FD as it seems to go into an
961   infinite loop from time to time during SD failure in DVD writing.
962 - Add more debug code to dvd writing.
963 - Attempt not to destroy existing fs on DVD. 
964 30Jun05
965 - Detect device mounted for DVD and suppress be sure to 
966   mount message after label.
967 - Set Cleaning tape status to 'Cleaning' and force no
968   MediaType.
969 - Get DVD writing working with new standard Bacula open()
970   code.
971 - Rename get_filename() to make more sense.
972 - Detect 'is already mounted on' on mount command so to avoid
973   error if device is already mounted.
974 - Eliminated guess_name() code. It may be necessary to
975   add it back later.
976 - Eliminate seg fault from printing invalid results.
977 - Make dvd_write_part() bool.
978
979 29Jun05
980 - Attempt to fix DVD writing by eliminating a number of the 
981   DVD subroutines to simplify.
982 - Modify DEVICE::open() to take dcr as first argument. This
983   will permit providing more info to DVD opening.
984 - Fix scanning for time/size items which in some cases
985   ate the next line.
986 - Eliminate read_dvd_volume_label().  New code (not yet written)
987   *must* open dvd appropriately before calling 
988   read_dev_volume_label.
989 - Modify open_first_part() open_next_part() to take DCR as 
990   argument.
991 - Make label command from console work on DVDs.
992 - Make mount command from console work on DVDs.
993   Unmount does not work yet.
994
995 Changes to 1.37.27:
996 27Jun05
997 - Add Database vendor to CatalogRes tuple for Python.
998 - Update doc
999 - Implement DoesVolumeExist(Vol) for Python.
1000 - Prevent python command from seg faulting if no arg given.
1001
1002 Changes to 1.37.26:
1003 26Jun05
1004 - Add set_mode method in DEVICE.
1005 - Correct set_mode method in DEVICE
1006 - Add more DVD debug info 
1007 23Jun05
1008 - Check for incorrect duration and size modifiers in conf files.
1009 22Jun05:
1010 - Make Version a tuple (version, build-date)
1011 - Add CatalogRes tuple (DBName, Address, User, Password,
1012     Socket, Port)
1013 - Add Version, ConfigFile, and WorkingDir as Python attributes
1014   in the Director.
1015 - Implement code (principally for Win32) that on failure to
1016   create a file, it will cd into the directory and attempt
1017   to create the file using a relative path. This avoids creating
1018   files with paths which fail on Win32.
1019 - Fix parsing of times and sizes with decimal numbers.
1020 - Make free_volume_list() in SD work if vol list is not
1021   initialized (./bacula-sd -t).
1022 21Jun05:
1023 - Add debug error printout when open() fails.
1024 - If open() of DVD fails in mount.c, return false.
1025 - Split open() code for DVD into separate subroutine in dev.c
1026
1027 Changes to 1.37.25 released on 20 Jun 05:
1028 20Jun05:
1029 - Fix bug where Storage daemon gets confused about what
1030   tape is mounted. (one line of code was inadvertently 
1031   deleted).
1032
1033 Changes to 1.37.24:
1034 18Jun05
1035 - DVD writing/reading seems to be mostly working.
1036 - Set execute bits on dvd-freespace and dvd-writepart
1037 - Make dvd-freespace use existing dummy file.
1038 - Modify dvd-freespace to pickup size from Track Size:
1039 16Jun05
1040 - Add Date, Job, level to updates to .bsr file in 
1041   dird/backup.c
1042 - Add debug info to dvd-freespace.in
1043 - Fix hard coded bacula.sql in make_catalog_backup reported
1044   by a user.
1045 - Make sure a verify volume to catalog never reports an error
1046   if there are zero files to verify.
1047 - Remove confusing debug info in filed/backup.c on network
1048   error.
1049 - Make sure output from console is not sent to system log.
1050 - Convert open_dev() into a class method.
1051 - Change VolHdr.VolName to VolHdr.VolumeName.
1052 - Add a flag in the device state word to indicate that
1053   we found Media in the drive (DVD). 
1054 - Make mount_dev() and unmount_dev() return bool.
1055
1056 Changes from Nicolas Boichat:
1057 26Apr05
1058  - Modify parse_config to get a LEX_ERROR_HANDLER as a parameter 
1059  - lex_open_file now returns NULL if the file can't be opened. All calling functions have
1060    been adapted.
1061  - Remove set_exit_on_error function
1062 07Apr05
1063  - Fix 'unknown device type' problem with DVD devices.
1064  - Fix crash when there is no media in the DVD drive.
1065 09Jan05
1066  - Update the documentation and ReleaseNotes.
1067 05Jan05
1068  - Add FreeSpaceCommand in Device (SD configuration file) and implement it.
1069  - Some modifications (again) on how guessed volume names are handled (now it should work).
1070  - Part files on the hard disk are removed if they are empty.
1071 04Jan05
1072  - Major fixes on how guessed volume names are handled.
1073  - Minor fix in src/stored/append.c.
1074  - Replace, when possible, POOLMEM by POOL_MEM in the new code of src/stored/dev.c.
1075  - New script, scripts/dvd-freespace, which gets the free space available on a writable DVD.
1076 03Jan05
1077  - Add WritePartAfterJob directive in Job resource (Director)
1078  - Add WritePartAfterJob directive in Schedule Resource (Director)
1079  - Implement these new directives
1080 02Jan05
1081  - New function, open_guess_name_dev in src/stored/dev.c, which tries to guess the volume
1082    name of a mounted device, so the label can be read.  
1083  - New script, scripts/dvd-writepart, which write parts to DVD+/-R(W).
1084  - Removed WriteFirstPartCommand directive in Device (SD configuration file).
1085  - Use readdir_r instead of readdir (src/stored/dev.c:open_guess_name_dev).
1086 01Jan05
1087  - Add RequiresMount, MountPoint, MountCommand, UnmountCommand directives in Device (SD configuration file).
1088  - Implement these directives (volumes can now be restored from a manually written DVD). 
1089  - Add WriteFirstPartCommand, WritePartCommand directives in Device (SD configuration file).
1090  - Implement these directives (DVD writing now works).
1091  - New function run_program_full_output in src/lib/bpipe.c.
1092  - Lots of bugfixes and cleanups in the new code.
1093 29Dec04
1094  - Add VolParts field in Media table
1095  - Add MaximumPartSize directive in Device (SD configuration file)
1096  - File Volumes can now be splitted in multiple files ('parts')
1097  - Fix SQL error in sql_list while doing 'llist jobmedia'
1098
1099 Changes to 1.37.23:
1100 - Renamed to make unique version for open_next_part()
1101   changes.
1102
1103 Changes to 1.37.23:
1104 - Renamed to make unique version for open_next_part()
1105   changes.
1106
1107 Changes to 1.37.22:
1108 14Jun05
1109 - Fix the same state variable problem in open_next_part().
1110 - C++ify the SD code a bit more.
1111 13Jun05
1112 - Add more debug code and clarify debug code for DVDs.
1113 - Do not save and restore state in open_first_part() 
1114   since state should be properly set after open_dev().
1115 - Make default mandir /usr/share/man
1116 - Install Bacula man page.
1117 - Implement passing of FileSet Enable VSS to FD.
1118 - Move main body of reserve drive code into subroutine
1119   so that it can be called multiple times.
1120 12Jun05
1121 - Eliminate getpass() for Win32 builds in console as the
1122   function does not exist.
1123 10Jun05
1124 - Correct some reservation problems in SD when no devices
1125   are available.
1126 - Start removing #ifdef HAVE_TLS by sneaky tricks.
1127 - Begin implementation of TLS in wx-console
1128 - Remove ignoring SIGCHLD from console.
1129 - Rework the dlist binary search routines for implemenation
1130   of the Volume reservation code -- make it more general.
1131 - Strip double slashes // from Win32 filenames in an attempt
1132   to resolve restore problems on some systems.
1133 - Fix a minor bugs in the trace code that caused the first
1134   line output to be lost.
1135 - Implement a good first cut at adding Volume reservation code
1136   to the storage daemon (in file reserve.c).
1137 - Remove old unused code from the tree.c routines.
1138
1139 Changes to 1.37.21:
1140 06Jun05
1141 - Fix compile problems on Win32
1142 - Start writing Volume reservation list (already exists, but
1143   is not really very good).
1144 - Implement attribute caching to put Signature into database     
1145   at the same time as the file attributes thus eliminating a
1146   number of database accesses.
1147 - Correct a reservation problem.
1148 - Implement full Dir Storage use.
1149 - Reduce a bit of TLS #ifdeffing.
1150
1151 Changes to 1.37.20:
1152 04Jun05
1153 - Minor changes
1154 01Jun05
1155 - Add more documentation to mtx-changer.in
1156 - Correct link to manual in authenticate.c in various
1157   directories.
1158 - Create a new src/stored/reserve.c file where the 
1159   Use Storage command is processed and drives are
1160   reserved.
1161 - Modify src/stored/autochanger.c to keep track of each
1162   Slot that is loaded for each device.
1163 - Ensure that changer_command and changer_name are picked
1164   up from Autochanger resource if not specified, and if
1165   neither is specified, err.
1166 30May05
1167 - Fix bextract.c compile problem
1168 - Create bacula.man 
1169 - Make make distclean clean a bit better
1170 29May05
1171 - Remove old code in jcr.c
1172 - Make testls release jcr chain when terminating.
1173 27May05
1174 - Implement Maximum Job Spool Size (actually DCR based)
1175 26May05
1176 - Use light weight non-recursive locking on jcr chain.
1177 - Make JCR a class and implement inc_use_count() and
1178   dec_use_count() methods that ensure that the jcr is
1179   locked when inc/dec the use count.
1180 - Remove the global jcr lock when traversing the jcr
1181   chain.   
1182 - Use dlist to implement the jcr chain rather than hand
1183   crafted next and prev links.
1184 - Lock the jcr chain inside each function that modifies
1185   the chain.
1186
1187 Changes to 1.37.19:
1188 26May05
1189 - Fix compile problem of ua_restore.c on broken compilers.
1190 - Apply patch from bug 326 to permit bacula status by any user.
1191 - Fix bug 325 -- conversion of 12:30pm to 24hour time.
1192 25May05
1193 - Put Dmsg() on inside if() to avoid calling subroutine.
1194 - Make restore.bsr have unique name.
1195 - Allow user to define bsr filename on restore command line
1196   with bootstrap=xxx.bsr
1197 - Add limit=nnn to 'list jobs' command.
1198 - Remove old restore code that did not use .bsr file.
1199 - unlink automatically generated bsr file.
1200 - Cleanup heartbeat code so that duped fd is almost sure
1201   to be released. Previously under certain conditions, the
1202   memory was not released due to race conditions.
1203 - Shorten copyright.
1204 20May05
1205 - Unify the reserve_device() for a single device into one subroutine.
1206 18May05
1207 - Modify wait during use_device to happen only after all devices
1208   have been examined rather than in the reserve_device code.  
1209 - Correct updating count of number of Volumes in a pool.
1210
1211 Changes to 1.37.18:
1212 16May05
1213 - Add more debug to SD for Autochangers + status output.
1214 - Add Scratch to PoolType in PostgreSQL make...tables and do not
1215   permit NULL PoolTypes. Fix for bug 319 reported by Eric.
1216 - Update LICENSE.
1217 - Add quotes around filename in parse_config error message. Bug
1218   reported by Eric.
1219 15May05
1220 - Change nested \include to \input so that sections are properly
1221   included in the pdf manual -- update the Web site.
1222 - Set reconnect flag in MySQL packet to 1 to ensure that connection
1223   is re-established.  MySQL 5 changed default to 0. Fixes bug report.
1224 - Fix Scratch pool handling as reported in a bug by Eric Bollengier
1225   by applying his patch.
1226 - Remove delete job in favor of delete jobid.
1227 - Add = NULL to configfile definitions as reported by Eric in a bug
1228   report.
1229 - Update winbacula.nsi.in to reflect new manual file structure.
1230 10May05
1231 - Correct a minor build problem with wx-console.
1232 - Add cancel() to Dir Python scripting.
1233 - Re-correct bug in parse-config error handling.
1234 - Reorganization of use_command in SD to permit
1235   waiting and multiple drive autochanger support.
1236 09May05
1237 - Correct bug in parse_config error handling.
1238 - Where ever possible mark a volume in error or not   
1239   InChanger in mount.c
1240 - Fix bug in changing tape pools after first backup. Reported
1241   by Peter Sjoberg.
1242 - Enhance mtx-changer to use Working Directory as temp.
1243 - Remove all but initial setup locking of Res in SD.
1244 08May05
1245 - Add Client OS type to Job report.
1246 - Add version to manual 
1247 - Update the Web site to have a single page for
1248   the documentation links.
1249
1250 Changes to 1.37.18 release 08May05:
1251 08May05
1252 - Correct attribute definition compile error in 1.37.17
1253 - Correct inverted order of CreateTime and MD5 pointed out
1254   by a user in a bug report in FileSet db routine causing
1255   the MD5 to print in the output instead of the time/date.
1256
1257 Changes to 1.37.17:
1258 07May05
1259 - Implement cstrlen() in sql list routines.
1260 - Implement caching of attributes to add the        
1261   signature so that only one DB call will be made
1262   per file. Not yet turned on.
1263 - Fix Win32 build for TLS.
1264 - Optimize File pruning to eliminate one database call. 
1265 - Fix bug that prevented File pruning from working.
1266 - Implement a cstrlen() which returns the character
1267   length of a UTF-8 string.
1268 06May05
1269 - Move test for MaxStartDelay as suggested by Peter.
1270 - Implement Python methods (I had to read the Python source
1271   code).
1272 - Implement run() method in Director.
1273 - Add Priority and Scheduled time to Job report.
1274 - Add JobInit and JobRun events.
1275 - Add Priority as Python read/write attribute to Job.
1276 - Correct typo in bsmtp reported by Jo.
1277
1278 Changes to 1.37.16 (07May05): released 07May05
1279 07May05
1280 - Implement cstrlen() in sql list routines.
1281 - Implement caching of attributes to add the        
1282   signature so that only one DB call will be made
1283   per file. Not yet turned on.
1284 - Fix Win32 build for TLS.
1285 - Optimize File pruning to eliminate one database call. 
1286 - Fix bug that prevented File pruning from working.
1287 - Implement a cstrlen() which returns the character
1288   length of a UTF-8 string.
1289 06May05
1290 - Move test for MaxStartDelay as suggested by Peter.
1291 - Implement Python methods (I had to read the Python source
1292   code).
1293 - Implement run() method in Director.
1294 - Add Priority and Scheduled time to Job report.
1295 - Add JobInit and JobRun events.
1296 - Add Priority as Python read/write attribute to Job.
1297 - Correct typo in bsmtp reported by Jo.
1298
1299 Changes to 1.37.16 (03May05): released 05May05
1300 03May05
1301 - Make a few tls ifdef tweaks.
1302 - Fix create_file.c Win32 problem pointed out by
1303   Peter Sjoberg.
1304 - Fix really ugly bstrncpy() but found by Thorsten.
1305 - Move winapi.h/c from findlib to lib for inclusion in 
1306   multiple places.
1307 02May05
1308 - Thorsten Engel finished his work on Win32 Unicode. We
1309   now have a single executable that runs on all Win32 machines.
1310 - Move job initialization code after job scheduling so that
1311   Verify jobs check for the prior JobId after they are really
1312   started rather than before.
1313 - Fix lib/fnmatch.c so that it does proper testing before folding.
1314 - More documentation -- at tls and ansi labels chapters.
1315 - Fix fileset_convert.pl to handle empty Exclude statements.
1316 - Turn regex back off in Win32
1317 01May05
1318 - Fix sign extension problem in lex.c that reads UTF-8 
1319   with Chinese characters incorrectly.
1320
1321 Changes to 1.37.14:
1322 30Apr05
1323 - Remove a few HAVE_TLS #ifdefs
1324 - Implement final Python style interface. More implemention to
1325   be done, but the interface should change little if at all.
1326 28Apr05
1327 - Make default no tls support. You must add 
1328   --with-openssl to get tls support.
1329 27Apr05
1330 - Update Web header to include google search in the search
1331   box -- thanks to input from Michel Meyers.
1332 - Fix md5sum so that it builds with the new openssl stuff.
1333 - Take some enhancements to the md5sum test program proposed
1334   by a user.
1335 26Apr05
1336 - Apply Tru64 patch supplied by Pascal Pederiva <freebsd@paped.com>
1337 - Apply Unicode fixes for Win32 from 'Thorsten Engel' 
1338   <thorsten.engel@matrix-computer.com>
1339 - More work on Python read feature in FD.
1340 22Apr05
1341 - Fix (hopefully) the ftello() overflow reported by Peter.
1342 - Landon Fuller committed his TLS patch.
1343 - Fixed two minor warnings in console.c with TLS turned off.
1344 - Updated the Makefile.in for wx-windows and tray-monitor
1345   to handle TLS. I can only build the tray-monitor.
1346 - Fix bscan to open tape in read-only mode (actually fix
1347   it so that it doesn't use the standard open routine).
1348 - Correct what appears to be an error in setting the
1349   return value in dvd.c
1350 21Apr05
1351 - Get FD Python running -- design Python backup interface.
1352 - Fix seg fault in SD when referencing Alert Command.
1353 - More documentation.
1354 - Fix one more thing in Win32 build.
1355 20Apr05
1356 - Doc updates
1357 - Fix Win32 build
1358 - Put in production here
1359
1360 Changes to 1.37.13:
1361 19Apr05
1362 - Fix SQLite and PostgreSQL table creation script syntax
1363   problems.
1364 - Fix new Python code to work for Director.
1365 - Move lib/python.c to lib/pythonlib.c so that debug output
1366   is easier to read (can distinguish lib from dird, ...).
1367 - Cleanup Python build so that Python is not dragged
1368   into programs that don't use it.
1369
1370 Changes to 1.37.12:
1371 02Apr05
1372 - Reset NumVols in Pool record from database on every update
1373   Pool.
1374 - Modify DB to support multiple simultaneous copies and
1375   RAIT stiping.
1376 - Pass copy and stripe between DIR and SD and put into
1377   the JobMedia DB record.
1378 - Update and test SQLite and MySQL datebase creation and
1379   update scripts.
1380 - Implement version 9 of the DB.
1381 31Mar05
1382 - Convert more atoi to str_to_int64() for DB.
1383 - Implement filling in NumVols by querying DB rather
1384   than trying to keep track of it.
1385 - Add storage name to string passed to in use storage=
1386 - Fix newVolume() so that the Python script is always
1387   called.
1388 - Fix handling of pool,PoolId, and storage in ua_output.
1389 - Same fix in ua_status.c
1390 - Remove required locking of resources
1391 - Replace pthread_cond_signal() by pthread_cond_broadcast()
1392   hoping to fix the /lib/tls hang problems (lost signal).
1393 - Move resource locking seaching from parse_conf.c to res.c
1394   in src/lib.
1395 - Modify end of volume handling so that fixup_... does not
1396   redo what block.c has already done -- writing Vol info to
1397   DIR. This fixes a bug with bad numbers of files on a tape
1398   when it filled as reported by Peter.
1399 - In release_device() do not update the DIR on the Volume
1400   info if the the information was already written at the
1401   end of the tape.
1402 28Mar05
1403 - NOTE!!!! This version has a new DIR <--> SD protocol. Both 
1404   must be updated at the same time.
1405 - Begin implementation of passing all the Storage and Device
1406   possibilities to the SD for examination during the reserve 
1407   phase.
1408 - Modify the reserve and acquire code in the SD to make a 
1409   job wait if the device is not available.
1410 - Implement New Volume Each Job in DIR and pass to SD, not yet
1411   used.
1412 - Remove init/update of the Device resource in DIR
1413 - Remove passing PoolId to SD and back.
1414 26Mar05
1415 - Remove \a and -e from error echos in most Makefiles.
1416 - Add more debug code when there are errors on the tape 
1417   to try to find Peter's tape problem.
1418 - Add wait.c (oops forgot previously).
1419 - Move all the reserve/acquire_device_for_read/append to have
1420   only a DCR as the argument.
1421 - Rework the reserve_device_for_append() in stored to wait
1422   if the drive is not available.  Note! This is a short
1423   term solution.
1424 25Mar05
1425 - Comment out Multiple Connections in the document.
1426 - Move the P() and V() to subroutines so that they can be accessed
1427   from class methods. The reference to strerror() caused problems.
1428 - Implement new DEVICE class methods block() and unblock() that
1429   do what was previously done in 3 lines of code.
1430 - Implement wait_for_device(), which will wait for any device
1431   to be released then return. This requires a new global mutex
1432   and condition variable, and is implemented in src/stored/wait.c
1433 - Change the code in reserve_device_for_read(), which previously
1434   failed the job to use the new device wait code.
1435 22Mar05
1436 - Apply reschedule patch to 1.37 code.
1437 - Add copyright to title page of manual so it is clear.
1438 - Create patch for rescheduling problem found by Ludovic. Storage
1439   pointers were lost during rescheduling.
1440 - Attempt to fix 2.6 rescue disk -- failed!
1441 - Start working on adding a wait routine in the SD.
1442 - Cleanup some old invalid doc in watchdog.
1443 - Convert a number of references to dev->dev_name to dev->print_name().
1444 - Add new wait.c file to SD.
1445 - Add a few more methods to DEVICE in SD to cleanup code a
1446   bit -- implement a few of the methods.
1447 18Mar05
1448 - Fix more print_name()s for printing device name.
1449 - Modify open_dev to try 10 times every 6 seconds to
1450   open the device if it gets an I/O error (meaning no
1451   volume mounted). This gives a bit of settling in time
1452   for an autochanger and avoids spurious messages.
1453 - Change all yes/no to yes|no in the manual.
1454 - Fix win32 create_file.c typo.
1455 - Fix a typo in an error message.
1456 17Mar05
1457 - Detect if fseeko exists with autoconf. If so, use it 
1458   and ftello.
1459 - Remove old bacula-*.conf from examples directory (out
1460   of date).
1461 - Remove latex-fr index files from CVS.
1462 - Rewrite code that stops reading the tape so that the
1463   tape is marked at EOT, then once the work is done,
1464   the EOT flag is removed.
1465 - Flush output to file after every send in console.
1466 - Make setting VolFiles to smaller number fatal.
1467 - Disable Multiple Connections code.
1468 - Add patch from user for NetBSD statvsfs() fix to
1469   fstype.c
1470 - Take more care with errors in acquire.c
1471 - Don't run through dvd code in append.c if bad status
1472   returned.
1473 - Modify code so that an autochanger fault is fatal.
1474 - Use dev->print_name() in more places.
1475 - Implement dev->can_steal_lock() to simplify code.
1476 - Make btape re-read first 10000 records on fill command.
1477 - Check error return and fail job from fseeko and ftello
1478   in spool.c.  Don't let a -1 slip in as size.
1479
1480 Changes to 1.37.7:
1481 15Mar05
1482 - Apply NetBSD patch from kardel in bug 258.
1483 14Mar05
1484 - Add a second job and a second client to the default
1485   bacula-dir.conf file.
1486 - Remove old style Include/Excludes.
1487 - Fix ANSI labels to put EOF1 and EOF2 after each file mark.
1488 - Add Python to SD and FD.
1489 12Mar05
1490 - Implement IBM labels
1491 - Implement EOF and EOV labels at the end of a volume.
1492 - Fix a rather ugly problem with the PoolId not getting
1493   passed correctly. Now the DIR passes the Pool name and
1494   Media Type to the SD, who passes them back when requesting
1495   the next Volume. The DIR then looks up the correct PoolId.
1496   This takes more time, but always works, AND allows wild
1497   card Media Types (i.e. the SD can decide).
1498 - The DIR <==> SD protocol has changed.
1499
1500 Changes to 1.37.6:
1501 11Mar05
1502 - Fix scanf of PoolId in catreq to handle 64 bit Ids.
1503 10Mar05
1504 - Add new ua_update.c file and move update_cmd there.
1505 - Modify 'update slots' to obtain actual number of slots.
1506 - Tweak autochanger code to handle new slots request.
1507 - Modify autochanger code to lock/unlock around slots and
1508   update slots code.
1509 09Mar05
1510 - Patch the FD so that it does not issue an error message if
1511   it attempts to restore the permissions on a Win32 drive.
1512 - Edit 'Resource-name' (physical-name) for the device name
1513   everywhere in the SD.
1514 - Remove .linked.tex files in preparation for cutover to
1515   using .tex in place of .wml.
1516 08Mar05
1517 - Copy latest config.sub and config.guess from autoconf.
1518 - Try new way of identifying drives with:
1519    'resource-name' (physical-name)
1520   More work need to a complete conversion.
1521 07Mar05
1522 - Rework some of the autochanger data so that the DIR has   
1523   the number of drives.
1524 - Modify the way the Device info is returned so that it comes
1525   back as a special message type and can be sent anytime the
1526   Device status changes.
1527 - Copy the change name and changer command into the device
1528   record if none is specified.
1529 - Require the change command and changer name to be specified in
1530   and AutoChanger resource.
1531 - Force all the Media Type records of all devices in an Autochanger
1532   to be the same.
1533 06Mar05
1534 - Add new 'run' command to Job resource in DIR. This permits
1535   cloning a job as many times as you want.
1536 - Pass PoolId to SD on Query request. It is now used in the
1537   Find_media catalog request.
1538 - Reworked the Device resource in the DIR. Eliminated num_waiting
1539   and use_count, but added max_writers, reserved, and PoolId.
1540 - This DIR is nolonger compatible with previous SDs.
1541 - Add since and cloned keywords to the Console run command
1542   to support cloning.
1543 - Implemented store_alist_str() to allow multiple string items
1544   to be specified in a .conf file.
1545 - Added %s (since time) to Job code editing.
1546 - Reworked reserving drives in the SD. It now does it much simpler
1547   and correctly. 
1548 05Mar05
1549 - Integrate HP-UX patch from  Olivier Mehani <olivier.mehani@linbox.com>
1550 - Fix FD job.c to test correctly for no level.
1551
1552 Changes to 1.37.4:
1553 04Mar05
1554 - Change Developers to Developer's Guide as requested by Michael.
1555 - Fix developers link in manual
1556 - Add additional dcr changes in SD to allow multiple dcrs.
1557 02Mar05
1558 - Fix a few problems with the MySQL table create in 1.37.
1559 - Delete the new tables in the table delete files.
1560 - Increase the number of items permitted in a conf table.
1561 - Make Director loop over alternative Devices specified in the
1562   Storage resource until one is reserved by SD.
1563 - Fix storing of StorageId in Media records.
1564 - Add AutoSelect = yes|no in bacula-sd.conf
1565 - Add Autochanger support to Label command.
1566 - Do not autoselect devices with autoselect set false 
1567 01Mar05
1568 - Implement setting DIR Storage device to Autochanger
1569   name. 
1570 - Select first available device in Autochanger.
1571 - Pass back actual device name used.
1572 - Allow Query of AutoChanger.
1573 - Modify Query to include name of AutoChanger if 
1574   Device belongs to one.
1575 - Remove old Pool code in jobq.c
1576 - Add Autoselect flag to query and DEVICE class (still
1577   need Directive).
1578 28Feb05
1579 - Lock autochanger script when running.
1580 - Mark Volume not InChanger if correct volume is not     
1581   autoloaded.
1582 - Corrected some typos in the make_xxx_tables.in files.
1583 - Made preliminary split of pre-run and run code for each
1584   job type. This will permit early opening of SD for reserving
1585   drives.
1586 - Add offline and autochanger fields to Device Query record.
1587 - Correct pthread_mutex_init() for autochanger in SD.
1588 - Tweak Makefile for LaTeX manual, plus add nav buttons.
1589 26Feb05
1590 - Clean up drive reservation system. Add more sanity checks.
1591 - Implement a few more methods for the DEVICE class in SD.
1592 - Add latex directories to make clean
1593 - move DEV_BSIZE to B_DEV_BSIZE to avoid conflicts with
1594   certain header files (FreeBSD).
1595 24Feb05
1596 - Fix an ASSERT that was triggering in stored/acquire.c
1597   attempt to fix a bug report.
1598 23Feb05
1599 - Corrected SunOs to SunOS in btraceback (user submitted).
1600 - Applied patch from Roger Haakansson <hson@ludd.luth.se>
1601   to warn the user of defective AWKs during ./configure.
1602 20Feb05
1603 - Add some changes submitted by a user for HP client build.
1604   Not all changes accepted.
1605 - Rework code in filed/backup.c to ease #ifdefing and make
1606   program flow more obvious.
1607 - Split DVD code out of dev.c into dvd.c
1608 - Tweak #ifdefing to add back all the performance measurement
1609   #defines in version.h
1610 - Put most of MTIOCGET code in a subroutine to simplify the
1611   mainline code.
1612 - Make clean remove old CVS files
1613 - Remove unnecessary image files from Latex directory
1614 - Implement remaining parts of Storage DB record and
1615   its use in the Director.
1616 - Implement
1617   FullMaxWaitTime, Differential Max Wait Time, and               
1618   Incremental Max Wait time in Job resource.
1619 - Start work on SD Autochanger code.
1620 19Feb05
1621 - Add back JobId index for MySQL as default -- speeds up 
1622   pruning.
1623 - Add more database fields and fix the update scripts to
1624   include the new items.
1625 - Pass actual level to FD so that ClientRun editing can reflect
1626   correct level -- ditto for job status. This makes the DIR
1627   incompatible with older clients!
1628 - Move jobq.c acquire resources to static subroutine so that
1629   the code logic becomes clearer. This is in preparation for
1630   actually using the new Device resources.
1631 - Fix some lower case problems in sql_cmds.c reported by
1632   Debian.
1633 - Correct a seg fault in the SD reported by a user. Occurred
1634   only when a high debug level was set.
1635 - Modify init_dev() in dev.c to take JCR as first arg so that
1636   proper error messages can be reported in next item.
1637 - Modify the query and use device SD commands to attempt to
1638   open the device if it could not previously be opened.
1639 - Correct error message for Could not reserve device.
1640 - Correct some minor details with Autochanger resource in SD.
1641 18Feb05
1642 - Fix seg fault if debug level 900 set in SD.
1643 - Truncate Win32 child return code to 8 bits.
1644 - Remove some old lld's.
1645
1646 Changes to 1.37.3:
1647 16Feb05
1648 - Make another attempt at fixing the ClientRunXXX return code 
1649   bug on Win32 machines.
1650 - Apply ua_status patch from Carsten Paeth <calle@calle.in-berlin.de>
1651   which enforces console ACLs in the status command for Jobs.
1652 15Feb05
1653 - Fix Media LabelDate and FirstWritten to be correctly set.
1654 - Fix deadlock in multiple simultaneous jobs.
1655 - Fix tape 'truncation'/'number of files' after restore bug.
1656 10Feb05
1657 - Ensure that correct error messages are returned when
1658   reading an ANSI label.
1659 09Feb05
1660 - Modified ANSI label code to preserve any ANSI label 
1661   already found by skipping over it rather than rewriting
1662   it.
1663 - Split the ANSI label code into ansi_label.c
1664 - Do not let user relabel an ANSI labeled tape.
1665 - Applied a patch for the console help command supplied
1666   in a bug report. 
1667 - Added some new dev methods. Most notably was
1668   set_eof(), which handles setting all the dev variables
1669   when an EOF is just read. This is now used most everywhere
1670   in the code.
1671 07Feb05
1672 - Added code to detect that no files were inserted into the 
1673   tree for a restore. If a specific JobId was specified, the
1674   user has the option of restoring everything.
1675 - More progress in implementing 64 bit DB Ids.
1676 - Modified the daemon start messages for RH.
1677 - Implement update scripts for all database types.
1678 - First cut at implementing restore directory (it will not
1679   recurse).
1680 04Feb05
1681 - OK, I think ANSI labels work.
1682 - Added Label Type = ANSI|IBM|Bacula to Device resource in SD.
1683   If this is set, it will force writing of the appropriate
1684   label type.
1685 - Added Check Labels = yes|no to Device resource in SD. If this
1686   is set, Bacula will check for ANSI labels and accept them,      
1687   otherwise, ANSI labels will not be accepted when the tape
1688   is first mounted.
1689 02Feb05
1690 - Second cut ANSI labels.
1691 01Feb05
1692 - Merge Preben's patch for ACLs and for Mac OS X resource forks.
1693 - Some doc updates.
1694 - Display more informative message when a device was not
1695   found or could not be opened.
1696 - Add the sqlite3 database scripts. 
1697 - Add some patches for 1.36.1 (note, I have now prepared
1698   a 1.36.2 with all the patches and some new features --
1699   to be documented).
1700 - Some minor doc updates.
1701 - Add Arno's baculareport.pl script to the examples directory.
1702 29Jan05 -- after vacation
1703 - Add support for SQLite3 (it seems to run at 1/2 the speed
1704   of SQLite2).  Use --with-sqlite3 instead of --with-sqlite
1705   to get SQLite3.
1706 - Add target for running qemu to boot Rescue CDROM
1707 - Add code to support kernel 2.6 in Rescue CDROM -- does NOT yet
1708   boot correctly.
1709 - Implement ANSI labels -- not yet tested.
1710   This required changes to DB format. No upgrade script yet.
1711   Note, more work needed to modify 'update' command to handle
1712   changing label types, also must restrict volume name lengths
1713   to 6 characters.
1714 - Add new Device, Storage, and MediaType records to DB. No
1715   upgrade script yet.
1716 - Add MediaType to bsr file record types. Not yet used in SD.
1717 - Permit multiple device specifications in Storage resource in 
1718   Dir conf file.
1719 - Implement Device resources. Director requests Device resource
1720   info from SD on startup. 
1721 - Note!!!! DIR->SD incompatible with previous versions.
1722 - Remove multiple Storage definitions in Job resource.  One can
1723   still specify multiple Storage resources, but they all go into
1724   a single alist, and imply sending data to each Storage daemon 
1725   simultaneously.
1726 - Implement Device query command between DIR and SD.
1727 - Allow DIR to 'reserve' a Device. It will then be acquired
1728   when the FD connects to the SD.
1729 - Turn all DIR resources into classes, and implement a few class
1730   methods -- more to come.
1731 - Turn DEVICE in SD into a class, and implement a number of inline
1732   class methods -- more to come.
1733 - I had serious problems with ACL errors on my Laptop, and so had
1734   to add the following patch:
1735   @@ -181,7 +181,7 @@
1736       }
1737       /***** Do we really want to silently ignore errors from acl_get_file
1738         and acl_to_text?  *****/
1739   -   return -1;
1740   +   return 0;
1741    }
1742 - Added edit_int64()
1743 - Reworked and tested a bit the htable routines.
1744 - Major changes to SD acquire.c -- DIR can now reserve devices. Needs
1745   lots of testing!!!!
1746 - Made a special state code for DVD -- this simplifies the logic
1747   of the code, but I probably broke it. Testing needed!!!!
1748 - Add AutoChanger resource to SD, but not yet used.
1749
1750 Changes to 1.37.2:
1751 12Jan05
1752 - Integrate Preben 'Peppe' Guldberg <peppe@wielders.org>'s
1753   acl patch. Fix case where configured but no ACL exists.
1754   Rework calling arguments to be shorter and positioned
1755   more typically in Bacula usage.
1756 11Jan05
1757 - Fix scripts/bacula.in to have awk on an environment variable
1758   and add comments for Solaris users.
1759 - Turn off inet_aton in src/lib/address_conf.c for Win32
1760 - Add new files to win32 build and eliminate a compiler warning.
1761 - Add sample DVD Device resource to bacula-sd.conf
1762 08Jan05
1763 - Integrate Nicolas' patch for direct DVD support.        
1764 07Jan05
1765 - Fix fstype error returns.
1766 - Apply Preben's cleanup.patch which puts back much of the
1767   cleanup code in src/filed/restore.c
1768 06Jan05
1769 - Apply all of Preben's patches, but revert to old backup.c
1770   and old restore.c in filed. Also turn off code in new
1771   acl.c because of errors.  The new code, when fully implemented
1772   moves platform specific code into acl.c.
1773   One of the patches also implements WildFile and WildDir -- thanks.
1774 01Jan05
1775 - Implement Python in the SD (no events yet though).
1776 - Fix some typos in the previous commit.
1777 30Dec04
1778 - Enhance CDROM boot to include some documentation at boot time.
1779 - NOTE!!!!! The CDROM will not boot 2.6 kernels because the
1780     boot sequence has changed significantly. Updates to come
1781     later.
1782 - Add memtest option to CDROM boot.
1783 - Include Nicolas' changes to fix llist JobMedia records.
1784 - Make sure that ClientRunBefore/After messages from the program
1785   are terminated with a newline. Add strerror to output error
1786   messages.
1787 - Return program exit status code in Win32.
1788 29Dec04
1789 - Add memtest86 to Bacula Rescue disk
1790 - Enhance Rescue disk startup screen
1791 24Dec04
1792 - Move some variables to eliminate Solaris 2.6 compiler warnings.
1793 - Fix the seg fault at the end of a job in the FD when using
1794   old style include/excludes.
1795 22Dec04
1796 - Apply Preben's ACL patch.
1797 - Integrate Preben's restore patch.
1798 - Integrate Preben's verify teaks.
1799 - Fix doc/latex/Makefile to copy/remove .eps files when building
1800   html and web outputs.
1801 21Dec04
1802 - Fix Bacula so that it does not exit if there is a syntax error
1803   in its conf file during a reload command. Bug 182.
1804 - Apply fixes suggested for old Solaris networking.
1805   Fixes bug 190.
1806 - Apply Preben 'Peppe' Guldberg <peppe@wielders.org>
1807   three patches that clean up white space:
1808   ws.patch.02.strings:
1809     Breaks strings that span lines into concatenated strings. I am not sure
1810     if you like this one. Other code works with concatenated strings, though.
1811   ws.patch.03.trailing:
1812     This removes trailing whitespace. No changes resulted from this for
1813     my setup.
1814   ws.patch.04.leading:
1815     This replaces space runs at the start of line with tabs. No changes
1816     again.
1817 - Fix overriding storage specification to be done
1818   through a subroutine.
1819 - Fix autoconf so it runs with FC3. 
1820 - Add Python4.3 to configure search paths.
1821 - Always copy and delete storage definitions into jcr.
1822 - Check that VolumeName supplied by Python is valid. 
1823   Return 0 if not.
1824 19Dec04
1825 - Fix undefined in non-Python build.
1826 - Update rescue disk to include mkinitrd
1827 - Fix umount_drives in rescue disk (only one arg to umount)
1828 - Ensure that if SD is manually set in Console, it is used.
1829 - Put generate_event on pointer and plug it in init. This
1830   permits using it in /lib
1831 - Correct despooling size reported to be Job specific rather
1832   than for the whole drive.
1833 18Dec04
1834 - Fix bug 207. jcr use count off by one when manually
1835   scheduling jobs.
1836 - Remove FNMATCH test in configure.in and always use
1837   the one in our library to get the FN_CASEFOLD GNU
1838   extensions on all platforms.
1839 - While using the rescue CDROM after my computer would not
1840   boot, I realized that it would be very useful to have
1841   a umount_disks. So, it is not implemented, along with
1842   updates to the READMEs and some minor tweaks.
1843 - Moved mounting the CDROM in the rescue boot from /cdrom
1844   to /mnt/cdrom (more standard location).
1845 - Reboot in CDROM rescue should now work -- requires -d
1846   option (no write) to work.
1847 - Hopefully fixed all the IPV6/4 problems and buffer
1848   problems with networking in lib. Bugs 190 and 204.
1849   Cleaned up a lot of #ifdefing problems by using routines
1850   in address_conf.c
1851 17Dec04
1852 - Apply Preben 'Peppe' Guldberg <peppe@wielders.org>
1853   alist fix patch.
1854 - Remove duplicate code from chksum.h (mentioned by Preben).
1855 13Dec04
1856 - Integrate Tim Oberfoell <oberfoell@web.de> patch to ACLs
1857   to handle both the 'standard' and 'default' ACLs.
1858 12Dec04
1859 - Integrated Preben 'Peppe' Guldberg <peppe@wielders.org>
1860   three cleanup patches (btest, verify, find).
1861 - Integrated Preben 'Peppe' Guldberg <peppe@wielders.org>
1862   three cleanup patches (backup, chksum, and verify)
1863 09Dec04
1864 - Integrated Preben 'Peppe' Guldberg <peppe@wielders.org>
1865   patch to avoid doing MTIOCGET on OSes that do not support
1866   it such as OpenBSD.
1867 - Integrated Preben 'Peppe' Guldberg <peppe@wielders.org>
1868   patch to add filesystem type matching to FileSets in the
1869   Options resource.
1870 - Integrated Preben 'Peppe' Guldberg <peppe@wielders.org>
1871   patch to add Mac OSX resource fork support (save/restore)
1872   to Bacula -- HFS Plus support.
1873 - Add FileSet to client Job listing query.
1874 06Dec04
1875 - Integrated Preben 'Peppe' Guldberg <peppe@wielders.org>
1876   patch to backup directories skipped (due to no file system
1877   changes or no recursion), and to add a slash to the end
1878   of the directory name during the match process.
1879 - Implement Jamie ffolliott <jamieff@inline.net>
1880   patch to dird_conf.c that enables Multiple Connections and
1881   fixes a typo in show. The rest of his patch awaits my suggested
1882   changes.
1883 05Dec04 
1884 - Implement run command in Python
1885 04Dec04 
1886 - Implement conversion of the manual, and some minor
1887   tweaks to the script tags.
1888 - Apply a patch supplied by Preben 'Peppe' Guldberg that implements
1889   ignore case in wild cards and regexes.
1890 - Fix a truncated line in the above patch due to my cut and paste.
1891 03Dec04
1892 - Fix it so that the InChanger flag is only changed for Volumes
1893   in the same Pool.
1894 - Add PIDOF configuration path and apply to bacula.in
1895 - Add user supplied patch to add inet_aton() of old Solaris
1896   systems.
1897 - Require pools to match before allowing multiple simultaneous
1898   accesses to same storage resource.
1899 - Add patch supplied by Martin to correct buffer overrun in
1900   bsnprintf() with no library snprintf().
1901 02Dec04
1902 - Apply user supplied patch that implements No Hard Links.
1903 - Document Python interface
1904 - Add hardlink keyword patch supplied by David R Bosso <dbosso@lsit.ucsb.edu>
1905 01Dec04
1906 - Fix non-python prototypes in dummy routines.
1907 - Add python 2.3 to config search list (user submitted patch)
1908 - Add JobStatus to Python variables.
1909 28Nov04
1910 - Add 'python restart' command in Console.
1911 - Make built-in variables table driven.
1912 - First cut of Python Events for Bacula. Director only.
1913   StartJob, EndJob, NewVolume events.
1914
1915
1916               Technical notes on version 1.37  
1917                       Nicolas Boichat
1918
1919 General:
1920
1921 Changes to 1.37.*:
1922 26Oct05
1923  - dvd.c: update VolParts when writing the last part.
1924 19Oct05
1925  - configure: add check for dd, remove check for df
1926  - block.c:do_dvd_size_checks: Check we are writing to a dvd before doing tests
1927    (reported by David Raine on the list, '[Bacula-users] LTO drive - End Of Volume error').
1928  - Update bacula-sd.conf.in to use dvd-handler correctly.
1929  - dvd.c:dvd_write_part: Increase timeout when writing the first part (see the code for
1930    more details).
1931 18Oct05
1932  - Modify .backups command to get a fileset parameter (fix bug #444).
1933 17Oct05
1934  - Fix bug when recycling DVD devices (append flag was removed).
1935  - Add tests for dvd+rw-format in configure script.
1936  - scripts/dvd-handler: Reformat DVD-RW when needed. This needs dvd+rw-format.
1937  - Add patch for dvd+rw-tools in patches dir (this should probably be elsewhere).
1938 16Oct05
1939  - Remove scripts/dvd-freespace and scripts/dvd-writepart, as they are now
1940    merged into scripts/dvd-handler. Note: Documentation needs to be updated.
1941  - scripts/dvd-handler: 'zero' brand-new DVD+/-RW to fix a problem with some
1942    DVD-writers, thanks to Arno Lehmann for reporting this, and providing the
1943    way to fix it.
1944  - new scripts/dvd-handler. Note: it also needs a patched version of dvd+rw-tools.
1945  - new scripts/dvd-freespace. Note: it needs a patched version of dvd+rw-tools.
1946  - dvd.c:dvd_write_part: Don't write empty part. (Fix 4GB crossing bug reported by Arno Lehmann)
1947 14Oct05
1948  - dvd.c:dvd_write_part: Use part_size and not max_part_size when setting write timeout.
1949  - dvd.c:do_mount_dev: When checking if the DVD is mounted, do not count ., .. and .keep (needed on Gentoo).
1950 15Aug05
1951  - Convert dvd-writepart to Python.
1952  - Increase delay from 3 seconds to 5 seconds between SIGTERM and SIGKILL when
1953    killing external programs.
1954 13Aug05
1955  - Add gettext macros in autoconf/gettext-macros.
1956  - Modify how localedir is set in configure.in.
1957  - Remove setlocale check (useless).
1958 10Aug05
1959  - Mark translatable strings in all source files.
1960 08Aug05
1961  - Create French and Italian translation files (fr.po, it.po).
1962  - Add support for translation in configure and Makefiles.
1963  - Update autoconf/aclocal.m4 so it is automatically created with aclocal
1964    (Note: autoconf/gnome-macros is not used anymore, it may be removed).
1965 30Jul05
1966  - Fix src/lib/bpipe.c:run_program and run_program_full_output to detect if the watchdog
1967    killed the program, and return an error if it is the case.
1968 26Apr05
1969  - Modify parse_config to get a LEX_ERROR_HANDLER as a parameter 
1970  - lex_open_file now returns NULL if the file can't be opened. All calling functions have
1971    been adapted.
1972  - Remove set_exit_on_error function
1973 07Apr05
1974  - Fix 'unknown device type' problem with DVD devices.
1975  - Fix crash when there is no media in the DVD drive.
1976 09Jan05
1977  - Update the documentation and ReleaseNotes.
1978 05Jan05
1979  - Add FreeSpaceCommand in Device (SD configuration file) and implement it.
1980  - Some modifications (again) on how guessed volume names are handled (now it should work).
1981  - Part files on the hard disk are removed if they are empty.
1982 04Jan05
1983  - Major fixes on how guessed volume names are handled.
1984  - Minor fix in src/stored/append.c.
1985  - Replace, when possible, POOLMEM by POOL_MEM in the new code of src/stored/dev.c.
1986  - New script, scripts/dvd-freespace, which gets the free space available on a writable DVD.
1987 03Jan05
1988  - Add WritePartAfterJob directive in Job resource (Director)
1989  - Add WritePartAfterJob directive in Schedule Resource (Director)
1990  - Implement these new directives
1991 02Jan05
1992  - New function, open_guess_name_dev in src/stored/dev.c, which tries to guess the volume
1993    name of a mounted device, so the label can be read.  
1994  - New script, scripts/dvd-writepart, which write parts to DVD+/-R(W).
1995  - Removed WriteFirstPartCommand directive in Device (SD configuration file).
1996  - Use readdir_r instead of readdir (src/stored/dev.c:open_guess_name_dev).
1997 01Jan05
1998  - Add RequiresMount, MountPoint, MountCommand, UnmountCommand directives in Device (SD configuration file).
1999  - Implement these directives (volumes can now be restored from a manually written DVD). 
2000  - Add WriteFirstPartCommand, WritePartCommand directives in Device (SD configuration file).
2001  - Implement these directives (DVD writing now works).
2002  - New function run_program_full_output in src/lib/bpipe.c.
2003  - Lots of bugfixes and cleanups in the new code.
2004 29Dec04
2005  - Add VolParts field in Media table
2006  - Add MaximumPartSize directive in Device (SD configuration file)
2007  - File Volumes can now be splitted in multiple files ('parts')
2008  - Fix SQL error in sql_list while doing 'llist jobmedia'