1 Changes to 1.37.36 released 22 Aug 05
3 - Landon's fix for NLS detection
4 - Eliminate incorrect compiler warning on FreeBSD.
5 - Move Win32 errno message build into berrno constructor.
8 - A number of minor Win32 fixes.
9 - Remove a PostQuitMessage() as suggested by Thorsten so that
10 BartPE restore can work correctly.
11 - Fix for create JobMedia so that VolIndex remains valid even
12 during a delete Job or pruning -- bug 402.
13 - Minor tweak for Win32 build.
15 - Win32 fix -- remove debug O_NONBLOCK code.
16 - Fix bug 399 -- make_catalog_backup does not work for sqlite3
17 - Implement unloading a volume in a different drive if it
18 is needed in the current drive.
19 - Implement search for unused autochanger drive.
20 - Implement search for exact Volume in reservation before
22 - Fix picking up drive in Dir so that it is not done in
24 - Eliminate double check on "loaded" for autochanger.
26 - Start coding better reservation algorithm
27 - Always look for slot for label command.
28 - Add more debug code for autochangers.
29 - Apply fix from Stephan Leemburg <sleemburg@jvc.nl> for
30 improper scanning of schedule resource:
31 Run = Level=Full Pool=Catalog daily at 1:20
32 - Apply patch from Chris Lee <labmonkey42@gmail.com> for
33 adding --enable-build-dird --enable-build-stored.
34 - Tweak datadir definition in configure.in
36 - Fix bug that missed drive=nn specification.
37 - Eliminate nonblocking kludge in heartbeat of FD as
38 it caused high CPU usage.
39 - Pickup loaded slot when doing open() of tape drive.
40 - Make autochanger reservation code go through full list
41 first pass until exact match found.
43 - Fix how FileSet is saved in job record to correct continual
45 - Make datadir print on config.out listing.
46 - Move get FileSet record up in backup init to eliminate continual
47 Full save seen by Peter Sjoberg.
48 - Add VolumeName to read-only Python variables.
49 - Add VolumePurged event for Python.
50 - Suppress /dev/ Filesystem change prohibited INFO messages.
51 - Do not delete FT_RAW files before restore (allows FIFOs
52 to be used for restore).
54 - Add drive specification to mount, unmount, release, label,
55 and relabel for Autochangers. Note Dir<->SD protocol has
60 - Disable parts of NLS as the configure does not work here.
61 - In job backup init (backup.c) define definitive Job level and
62 since time, *then* apply Job Pool override selection if any.
64 - Modified bconsole script so that it is improperly
65 installed, it will refuse to execute. This avoids
70 - Apply David's ACL fix to src/filed/acl.c
72 - Apply patches sent by David Duchscher <kreios@gmail.com> for
73 making ACLs work on MacOS X and FreeBSD.
75 - Apply patch in bug#397 that improved configure
76 - find readline under $with_readline/include/readline
77 - no libutil under Solaris
78 - no need for -ldl under Solaris
79 - Make reservation system single threaded during the
80 search to avoid two threads competing for the same
82 - Correct a return code in find_suitable_device_for_job()
83 Possibly cause of "busy writing to another volume".
85 - Modify open() for tape so nonblocking really works.
86 - Use fcntl() to reset blocking status rather than close()
88 - Make sure dev->open() is always called so that any change
89 in read/write permissions will occur.
90 - Open drives initially in daemon in read-only mode.
91 - Ensure that each time the VolHdr.VolumeName is zapped
92 or changed that free_volume() is called on the old name.
96 - Require 5 arguments to mtx-changer except list and slots
97 - Turn -EPIPE status returns from bpipe to ETIME
98 - Include Slot in SD status output
99 - Do not term_dev() during initialization in SD if the device
100 could not be opened. In the case of a tape drive, there may
101 be no tape in the drive.
105 - Correct PostgreSQL database scripts as suggested by a user.
106 - Add additional info to FATAL message generated when a device
107 is busy writing to another volume.
108 - Suppress an inappropriate NULL Volume name message after a cancel.
109 - Correct a warning message in reserve.c
111 - Apply user's patch to make mutiple modifiers for times
113 - Make read_dev_volume_label() handle ANSI/IBM labels
114 correctly -- ie space over any label at the beginning
117 - Make ANSI/IBM writing of HDR1/2 labels ignore any
118 errors if at end of tape.
119 - Apply Martin's patch to improve Python detection in
121 - Temporarily turn off disk seeking until I find the
122 cause of the problem.
124 - Add OSF1 patch supplied by user.
125 - Use number of files selected from write_bsr() only
126 if it is not defined.
127 - Explicitly seek to end of file when getting size for
129 - Correctly set EndBlock position in JobMedia record
131 - Remove unnecessary set StartBlock in bscan. Caused bscan
134 - Modify mtx-changer to wait a maximum of 300 seconds.
135 - Do restart of failed jobs only for Backups job types.
136 - A number of DVD updates from Nicolas.
138 - Turn off old service helper code in Win32.
139 - Correct Messages bug found by Phil in stored.
141 - Complete (almost) documentation of 1.38.
142 - Add error messages for error conditions with VSS.
143 - Fix additional problems with VSS backup that I introduced.
146 - Correct compiler complaints in wx-console and tray-monitor.
147 - Correct VSS problems recognizing c:
148 - Add VSS before job status
149 - Fix output of status from being one big line.
150 - Change cd xx; make to cd xx && make as suggested by Phil.
151 - Cleanup projects file
152 - Remove unnecessary casting of FF_PKT in filed.
153 - Apply Thorsten's bugfix for vss_generic.cpp
154 - Add check for df path for dvd_freespace
155 - Use df to get space used on DVD.
156 - Change sense of flag indicating erase DVD or not before writing.
157 - Fix bpipe so that it never modifies the result pointer.
158 - Replace more dev_name by print_name().
159 - Rewrite edit_device_codes_dev() so it does not overwrite the
161 - Update printing of labels (for bls) so that critical information
162 is printed (Job name and timestamp).
163 - Cleanup old spool files when starting the SD.
164 - Modify vss.cpp to allow C: as a path name. Otherwise VSS
165 doesn't work when only a drive name is given.
166 - Modify vss.c to eliminate double / in filenames.
167 - Update doc -- particularly the restore chapter.
169 - Make all files in working directory have .xxx at end.
170 - Work on DVD writing.
171 - Fix keepatime bug (bugs database).
172 - Move Python variables from Job to Bacula. They are
173 DirName, Version, ConfigFile, and WorkingDir
174 - Fix delete of bootstrap to only occur on Bacula created
176 - Allow cancelling a Job name that is not active. It is
179 - Fix name space pollution by OpenSSL 0.9.8 reported by
180 Matthias Kurz -- applied his patch.
181 - Fix bpipe.c so that it does not modify results pointer.
182 ***FIXME*** calling sequence should be changed.
183 - Remove some remaining references to dev_name.
184 - Fix calls to mount_dev() and unmount_dev() to
185 correspond to returned value (bool instead of int).
186 - Try without success to make DVD writing work.
189 - Convert dvd-writepart to Python.
190 - Increase delay from 3 seconds to 5 seconds between SIGTERM and SIGKILL when
191 killing external programs.
193 - Add gettext macros in autoconf/gettext-macros.
194 - Modify how localedir is set in configure.in.
195 - Remove setlocale check (useless).
197 - Mark translatable strings in all source files.
199 - Create French and Italian translation files (fr.po, it.po).
200 - Add support for translation in configure and Makefiles.
201 - Update autoconf/aclocal.m4 so it is automatically created with aclocal
202 (Note: autoconf/gnome-macros is not used anymore, it may be removed).
204 - Fix src/lib/bpipe.c:run_program and run_program_full_output to detect if the watchdog
205 killed the program, and return an error if it is the case.
207 - Modify parse_config to get a LEX_ERROR_HANDLER as a parameter
208 - lex_open_file now returns NULL if the file can't be opened. All calling functions have
210 - Remove set_exit_on_error function
212 - Fix "unknown device type" problem with DVD devices.
213 - Fix crash when there is no media in the DVD drive.
215 - Update the documentation and ReleaseNotes.
217 - Add FreeSpaceCommand in Device (SD configuration file) and implement it.
218 - Some modifications (again) on how guessed volume names are handled (now it should work).
219 - Part files on the hard disk are removed if they are empty.
221 - Major fixes on how guessed volume names are handled.
222 - Minor fix in src/stored/append.c.
223 - Replace, when possible, POOLMEM by POOL_MEM in the new code of src/stored/dev.c.
224 - New script, scripts/dvd-freespace, which gets the free space available on a writable DVD.
226 - Add WritePartAfterJob directive in Job resource (Director)
227 - Add WritePartAfterJob directive in Schedule Resource (Director)
228 - Implement these new directives
230 - New function, open_guess_name_dev in src/stored/dev.c, which tries to guess the volume
231 name of a mounted device, so the label can be read.
232 - New script, scripts/dvd-writepart, which write parts to DVD+/-R(W).
233 - Removed WriteFirstPartCommand directive in Device (SD configuration file).
234 - Use readdir_r instead of readdir (src/stored/dev.c:open_guess_name_dev).
236 - Add RequiresMount, MountPoint, MountCommand, UnmountCommand directives in Device (SD configuration file).
237 - Implement these directives (volumes can now be restored from a manually written DVD).
238 - Add WriteFirstPartCommand, WritePartCommand directives in Device (SD configuration file).
239 - Implement these directives (DVD writing now works).
240 - New function run_program_full_output in src/lib/bpipe.c.
241 - Lots of bugfixes and cleanups in the new code.
243 - Add VolParts field in Media table
244 - Add MaximumPartSize directive in Device (SD configuration file)
245 - File Volumes can now be splitted in multiple files ("parts")
246 - Fix SQL error in sql_list while doing "llist jobmedia"
248 Changes to 1.37.30 released 16 July 2005:
250 - Fix "dir" command scanning field misalignment in
252 - Switch to using the wxWidgets Unicode library.
253 - Include msvcr71.dll in distribution.
254 - Add VSS to status line in Win32 FD if enabled.
255 - Get VSS build scripts working with Thorsten's help.
256 - Unlink the bootstrap file after sending it to
258 - Remove sending include/exclude lists to the FD during
259 a restore -- deprecated code.
260 - Cleanup the bootstrap files in the FD.
264 - Remove old commented out code from configure.in
265 - Add baculavssfd.mak file for building VSS version of
267 - Correct date (year) in vss.cpp and vss_generic.cpp
269 - I finally found and squashed the elusive SD crash.
270 I needed to initialize the used volume list before
271 firing off the device initialization thread.
274 - Make sure that bpipe results are zapped even on
276 - Lots of documentation.
277 - Do not prune volume marked as append when needing a
279 - Print a warning message in SD if a non-used Volume
280 is specified and autolabel not turned on.
281 - Correct a bug in chksum.c concerning SHA1 signatures
282 (an * should have been & when checking for a bit flag).
283 - Print File:Block for all label records in label.c -- concerns
284 primarily bls when doing Job listings (-j).
285 - Correct is_volume_in_use() to return false if testing
286 on the same device where the Volume is already mounted.
287 - Define a init_done flag in the SD that is set when the
288 devices are initialized and make users connecting wait.
289 This prevents useless connect failure warning messages.
290 - Do additional device locking in ask_op_to_mount_volume()
291 to prevent race conditions with a user labeling a Volume
294 - Add a test for error return from bnet_wait... in heartbeat.c
295 in FD to avoid CPU loop.
296 - Implement TLS in gnome console and wx-console.
300 - Correct a NULL pointer reference in the mount command.
301 - Correct typo in Copyright
302 - Add detection of EOM for IBM drives (i.e. errno == ENOSPC)
304 - Remove temp file created in mtx-changer script.
305 - Make fsf_dev() into a class method.
307 - Modify mtx-changer.in script to return slot:barcode for
308 Volumes that are loaded in the drives.
309 - Correct some more places where dev->is_blocked() needs
310 to be checked in dircmd.c in SD.
313 - Add code to ensure that reserved but unused volumes
315 - Correct how Volumes are mounted and handled so that the SD
316 does not get stuck if multiple volumes are used (recycling,
318 - Correct bug where you could relabel a volume while it
319 was being acquired -- created chaos.
321 - Correct seg fault caused by open() calling sequence change.
323 - Add new rc-chio-changer script by Rudolf Cejka to
324 examples/autochangers
325 - Apply Rudolf's changes to bacula.in
326 - Expand the space from 8 to 10 characters in editing
327 file sizes for restore and dir of catalog, otherwise
328 GB sizes are truncated -- fixes bug report.
329 - Modify wx-console to know about 10 character widths.
330 - Allow decending into top level directory if "recurse=no"
331 is set. Fixes a bug report.
332 - Install pthreadVCE.dll when installing console or wx-console
333 on Win32 systems. Fixes bug report.
335 - Tweak dvd-writepart script to prevent door from opening/closing
337 - Remove GROUP BY in several PostgreSQL commands to prevent error.
339 - Ensure that < as first character of filename list is not treated
340 as a directory for restore.
341 - Add debug to heartbeat in FD as it seems to go into an
342 infinite loop from time to time during SD failure in DVD writing.
343 - Add more debug code to dvd writing.
344 - Attempt not to destroy existing fs on DVD.
346 - Detect device mounted for DVD and suppress be sure to
347 mount message after label.
348 - Set Cleaning tape status to "Cleaning" and force no
350 - Get DVD writing working with new standard Bacula open()
352 - Rename get_filename() to make more sense.
353 - Detect "is already mounted on" on mount command so to avoid
354 error if device is already mounted.
355 - Eliminated guess_name() code. It may be necessary to
357 - Eliminate seg fault from printing invalid results.
358 - Make dvd_write_part() bool.
361 - Attempt to fix DVD writing by eliminating a number of the
362 DVD subroutines to simplify.
363 - Modify DEVICE::open() to take dcr as first argument. This
364 will permit providing more info to DVD opening.
365 - Fix scanning for time/size items which in some cases
367 - Eliminate read_dvd_volume_label(). New code (not yet written)
368 *must* open dvd appropriately before calling
369 read_dev_volume_label.
370 - Modify open_first_part() open_next_part() to take DCR as
372 - Make label command from console work on DVDs.
373 - Make mount command from console work on DVDs.
374 Unmount does not work yet.
378 - Add Database vendor to CatalogRes tuple for Python.
380 - Implement DoesVolumeExist(Vol) for Python.
381 - Prevent python command from seg faulting if no arg given.
385 - Add set_mode method in DEVICE.
386 - Correct set_mode method in DEVICE
387 - Add more DVD debug info
389 - Check for incorrect duration and size modifiers in conf files.
391 - Make Version a tuple (version, build-date)
392 - Add CatalogRes tuple (DBName, Address, User, Password,
394 - Add Version, ConfigFile, and WorkingDir as Python attributes
396 - Implement code (principally for Win32) that on failure to
397 create a file, it will cd into the directory and attempt
398 to create the file using a relative path. This avoids creating
399 files with paths which fail on Win32.
400 - Fix parsing of times and sizes with decimal numbers.
401 - Make free_volume_list() in SD work if vol list is not
402 initialized (./bacula-sd -t).
404 - Add debug error printout when open() fails.
405 - If open() of DVD fails in mount.c, return false.
406 - Split open() code for DVD into separate subroutine in dev.c
408 Changes to 1.37.25 released on 20 Jun 05:
410 - Fix bug where Storage daemon gets confused about what
411 tape is mounted. (one line of code was inadvertently
416 - DVD writing/reading seems to be mostly working.
417 - Set execute bits on dvd-freespace and dvd-writepart
418 - Make dvd-freespace use existing dummy file.
419 - Modify dvd-freespace to pickup size from Track Size:
421 - Add Date, Job, level to updates to .bsr file in
423 - Add debug info to dvd-freespace.in
424 - Fix hard coded bacula.sql in make_catalog_backup reported
426 - Make sure a verify volume to catalog never reports an error
427 if there are zero files to verify.
428 - Remove confusing debug info in filed/backup.c on network
430 - Make sure output from console is not sent to system log.
431 - Convert open_dev() into a class method.
432 - Change VolHdr.VolName to VolHdr.VolumeName.
433 - Add a flag in the device state word to indicate that
434 we found Media in the drive (DVD).
435 - Make mount_dev() and unmount_dev() return bool.
437 Changes from Nicolas Boichat:
439 - Modify parse_config to get a LEX_ERROR_HANDLER as a parameter
440 - lex_open_file now returns NULL if the file can't be opened. All calling functions have
442 - Remove set_exit_on_error function
444 - Fix "unknown device type" problem with DVD devices.
445 - Fix crash when there is no media in the DVD drive.
447 - Update the documentation and ReleaseNotes.
449 - Add FreeSpaceCommand in Device (SD configuration file) and implement it.
450 - Some modifications (again) on how guessed volume names are handled (now it should work).
451 - Part files on the hard disk are removed if they are empty.
453 - Major fixes on how guessed volume names are handled.
454 - Minor fix in src/stored/append.c.
455 - Replace, when possible, POOLMEM by POOL_MEM in the new code of src/stored/dev.c.
456 - New script, scripts/dvd-freespace, which gets the free space available on a writable DVD.
458 - Add WritePartAfterJob directive in Job resource (Director)
459 - Add WritePartAfterJob directive in Schedule Resource (Director)
460 - Implement these new directives
462 - New function, open_guess_name_dev in src/stored/dev.c, which tries to guess the volume
463 name of a mounted device, so the label can be read.
464 - New script, scripts/dvd-writepart, which write parts to DVD+/-R(W).
465 - Removed WriteFirstPartCommand directive in Device (SD configuration file).
466 - Use readdir_r instead of readdir (src/stored/dev.c:open_guess_name_dev).
468 - Add RequiresMount, MountPoint, MountCommand, UnmountCommand directives in Device (SD configuration file).
469 - Implement these directives (volumes can now be restored from a manually written DVD).
470 - Add WriteFirstPartCommand, WritePartCommand directives in Device (SD configuration file).
471 - Implement these directives (DVD writing now works).
472 - New function run_program_full_output in src/lib/bpipe.c.
473 - Lots of bugfixes and cleanups in the new code.
475 - Add VolParts field in Media table
476 - Add MaximumPartSize directive in Device (SD configuration file)
477 - File Volumes can now be splitted in multiple files ("parts")
478 - Fix SQL error in sql_list while doing "llist jobmedia"
481 - Renamed to make unique version for open_next_part()
485 - Renamed to make unique version for open_next_part()
490 - Fix the same state variable problem in open_next_part().
491 - C++ify the SD code a bit more.
493 - Add more debug code and clarify debug code for DVDs.
494 - Do not save and restore state in open_first_part()
495 since state should be properly set after open_dev().
496 - Make default mandir /usr/share/man
497 - Install Bacula man page.
498 - Implement passing of FileSet Enable VSS to FD.
499 - Move main body of reserve drive code into subroutine
500 so that it can be called multiple times.
502 - Eliminate getpass() for Win32 builds in console as the
503 function does not exist.
505 - Correct some reservation problems in SD when no devices
507 - Start removing #ifdef HAVE_TLS by sneaky tricks.
508 - Begin implementation of TLS in wx-console
509 - Remove ignoring SIGCHLD from console.
510 - Rework the dlist binary search routines for implemenation
511 of the Volume reservation code -- make it more general.
512 - Strip double slashes // from Win32 filenames in an attempt
513 to resolve restore problems on some systems.
514 - Fix a minor bugs in the trace code that caused the first
515 line output to be lost.
516 - Implement a good first cut at adding Volume reservation code
517 to the storage daemon (in file reserve.c).
518 - Remove old unused code from the tree.c routines.
522 - Fix compile problems on Win32
523 - Start writing Volume reservation list (already exists, but
524 is not really very good).
525 - Implement attribute caching to put Signature into database
526 at the same time as the file attributes thus eliminating a
527 number of database accesses.
528 - Correct a reservation problem.
529 - Implement full Dir Storage use.
530 - Reduce a bit of TLS #ifdeffing.
536 - Add more documentation to mtx-changer.in
537 - Correct link to manual in authenticate.c in various
539 - Create a new src/stored/reserve.c file where the
540 Use Storage command is processed and drives are
542 - Modify src/stored/autochanger.c to keep track of each
543 Slot that is loaded for each device.
544 - Ensure that changer_command and changer_name are picked
545 up from Autochanger resource if not specified, and if
546 neither is specified, err.
548 - Fix bextract.c compile problem
550 - Make make distclean clean a bit better
552 - Remove old code in jcr.c
553 - Make testls release jcr chain when terminating.
555 - Implement Maximum Job Spool Size (actually DCR based)
557 - Use light weight non-recursive locking on jcr chain.
558 - Make JCR a class and implement inc_use_count() and
559 dec_use_count() methods that ensure that the jcr is
560 locked when inc/dec the use count.
561 - Remove the global jcr lock when traversing the jcr
563 - Use dlist to implement the jcr chain rather than hand
564 crafted next and prev links.
565 - Lock the jcr chain inside each function that modifies
570 - Fix compile problem of ua_restore.c on broken compilers.
571 - Apply patch from bug 326 to permit bacula status by any user.
572 - Fix bug 325 -- conversion of 12:30pm to 24hour time.
574 - Put Dmsg() on inside if() to avoid calling subroutine.
575 - Make restore.bsr have unique name.
576 - Allow user to define bsr filename on restore command line
577 with bootstrap=xxx.bsr
578 - Add limit=nnn to "list jobs" command.
579 - Remove old restore code that did not use .bsr file.
580 - unlink automatically generated bsr file.
581 - Cleanup heartbeat code so that duped fd is almost sure
582 to be released. Previously under certain conditions, the
583 memory was not released due to race conditions.
586 - Unify the reserve_device() for a single device into one subroutine.
588 - Modify wait during use_device to happen only after all devices
589 have been examined rather than in the reserve_device code.
590 - Correct updating count of number of Volumes in a pool.
594 - Add more debug to SD for Autochangers + status output.
595 - Add Scratch to PoolType in PostgreSQL make...tables and do not
596 permit NULL PoolTypes. Fix for bug 319 reported by Eric.
598 - Add quotes around filename in parse_config error message. Bug
601 - Change nested \include to \input so that sections are properly
602 included in the pdf manual -- update the Web site.
603 - Set reconnect flag in MySQL packet to 1 to ensure that connection
604 is re-established. MySQL 5 changed default to 0. Fixes bug report.
605 - Fix Scratch pool handling as reported in a bug by Eric Bollengier
606 by applying his patch.
607 - Remove delete job in favor of delete jobid.
608 - Add = NULL to configfile definitions as reported by Eric in a bug
610 - Update winbacula.nsi.in to reflect new manual file structure.
612 - Correct a minor build problem with wx-console.
613 - Add cancel() to Dir Python scripting.
614 - Re-correct bug in parse-config error handling.
615 - Reorganization of use_command in SD to permit
616 waiting and multiple drive autochanger support.
618 - Correct bug in parse_config error handling.
619 - Where ever possible mark a volume in error or not
621 - Fix bug in changing tape pools after first backup. Reported
623 - Enhance mtx-changer to use Working Directory as temp.
624 - Remove all but initial setup locking of Res in SD.
626 - Add Client OS type to Job report.
627 - Add version to manual
628 - Update the Web site to have a single page for
629 the documentation links.
631 Changes to 1.37.18 release 08May05:
633 - Correct attribute definition compile error in 1.37.17
634 - Correct inverted order of CreateTime and MD5 pointed out
635 by a user in a bug report in FileSet db routine causing
636 the MD5 to print in the output instead of the time/date.
640 - Implement cstrlen() in sql list routines.
641 - Implement caching of attributes to add the
642 signature so that only one DB call will be made
643 per file. Not yet turned on.
644 - Fix Win32 build for TLS.
645 - Optimize File pruning to eliminate one database call.
646 - Fix bug that prevented File pruning from working.
647 - Implement a cstrlen() which returns the character
648 length of a UTF-8 string.
650 - Move test for MaxStartDelay as suggested by Peter.
651 - Implement Python methods (I had to read the Python source
653 - Implement run() method in Director.
654 - Add Priority and Scheduled time to Job report.
655 - Add JobInit and JobRun events.
656 - Add Priority as Python read/write attribute to Job.
657 - Correct typo in bsmtp reported by Jo.
659 Changes to 1.37.16 (07May05): released 07May05
661 - Implement cstrlen() in sql list routines.
662 - Implement caching of attributes to add the
663 signature so that only one DB call will be made
664 per file. Not yet turned on.
665 - Fix Win32 build for TLS.
666 - Optimize File pruning to eliminate one database call.
667 - Fix bug that prevented File pruning from working.
668 - Implement a cstrlen() which returns the character
669 length of a UTF-8 string.
671 - Move test for MaxStartDelay as suggested by Peter.
672 - Implement Python methods (I had to read the Python source
674 - Implement run() method in Director.
675 - Add Priority and Scheduled time to Job report.
676 - Add JobInit and JobRun events.
677 - Add Priority as Python read/write attribute to Job.
678 - Correct typo in bsmtp reported by Jo.
680 Changes to 1.37.16 (03May05): released 05May05
682 - Make a few tls ifdef tweaks.
683 - Fix create_file.c Win32 problem pointed out by
685 - Fix really ugly bstrncpy() but found by Thorsten.
686 - Move winapi.h/c from findlib to lib for inclusion in
689 - Thorsten Engel finished his work on Win32 Unicode. We
690 now have a single executable that runs on all Win32 machines.
691 - Move job initialization code after job scheduling so that
692 Verify jobs check for the prior JobId after they are really
693 started rather than before.
694 - Fix lib/fnmatch.c so that it does proper testing before folding.
695 - More documentation -- at tls and ansi labels chapters.
696 - Fix fileset_convert.pl to handle empty Exclude statements.
697 - Turn regex back off in Win32
699 - Fix sign extension problem in lex.c that reads UTF-8
700 with Chinese characters incorrectly.
704 - Remove a few HAVE_TLS #ifdefs
705 - Implement final Python style interface. More implemention to
706 be done, but the interface should change little if at all.
708 - Make default no tls support. You must add
709 --with-openssl to get tls support.
711 - Update Web header to include google search in the search
712 box -- thanks to input from Michel Meyers.
713 - Fix md5sum so that it builds with the new openssl stuff.
714 - Take some enhancements to the md5sum test program proposed
717 - Apply Tru64 patch supplied by Pascal Pederiva <freebsd@paped.com>
718 - Apply Unicode fixes for Win32 from "Thorsten Engel"
719 <thorsten.engel@matrix-computer.com>
720 - More work on Python read feature in FD.
722 - Fix (hopefully) the ftello() overflow reported by Peter.
723 - Landon Fuller committed his TLS patch.
724 - Fixed two minor warnings in console.c with TLS turned off.
725 - Updated the Makefile.in for wx-windows and tray-monitor
726 to handle TLS. I can only build the tray-monitor.
727 - Fix bscan to open tape in read-only mode (actually fix
728 it so that it doesn't use the standard open routine).
729 - Correct what appears to be an error in setting the
730 return value in dvd.c
732 - Get FD Python running -- design Python backup interface.
733 - Fix seg fault in SD when referencing Alert Command.
734 - More documentation.
735 - Fix one more thing in Win32 build.
739 - Put in production here
743 - Fix SQLite and PostgreSQL table creation script syntax
745 - Fix new Python code to work for Director.
746 - Move lib/python.c to lib/pythonlib.c so that debug output
747 is easier to read (can distinguish lib from dird, ...).
748 - Cleanup Python build so that Python is not dragged
749 into programs that don't use it.
753 - Reset NumVols in Pool record from database on every update
755 - Modify DB to support multiple simultaneous copies and
757 - Pass copy and stripe between DIR and SD and put into
758 the JobMedia DB record.
759 - Update and test SQLite and MySQL datebase creation and
761 - Implement version 9 of the DB.
763 - Convert more atoi to str_to_int64() for DB.
764 - Implement filling in NumVols by querying DB rather
765 than trying to keep track of it.
766 - Add storage name to string passed to in use storage=
767 - Fix newVolume() so that the Python script is always
769 - Fix handling of pool,PoolId, and storage in ua_output.
770 - Same fix in ua_status.c
771 - Remove required locking of resources
772 - Replace pthread_cond_signal() by pthread_cond_broadcast()
773 hoping to fix the /lib/tls hang problems (lost signal).
774 - Move resource locking seaching from parse_conf.c to res.c
776 - Modify end of volume handling so that fixup_... does not
777 redo what block.c has already done -- writing Vol info to
778 DIR. This fixes a bug with bad numbers of files on a tape
779 when it filled as reported by Peter.
780 - In release_device() do not update the DIR on the Volume
781 info if the the information was already written at the
784 - NOTE!!!! This version has a new DIR <--> SD protocol. Both
785 must be updated at the same time.
786 - Begin implementation of passing all the Storage and Device
787 possibilities to the SD for examination during the reserve
789 - Modify the reserve and acquire code in the SD to make a
790 job wait if the device is not available.
791 - Implement New Volume Each Job in DIR and pass to SD, not yet
793 - Remove init/update of the Device resource in DIR
794 - Remove passing PoolId to SD and back.
796 - Remove \a and -e from error echos in most Makefiles.
797 - Add more debug code when there are errors on the tape
798 to try to find Peter's tape problem.
799 - Add wait.c (oops forgot previously).
800 - Move all the reserve/acquire_device_for_read/append to have
801 only a DCR as the argument.
802 - Rework the reserve_device_for_append() in stored to wait
803 if the drive is not available. Note! This is a short
806 - Comment out Multiple Connections in the document.
807 - Move the P() and V() to subroutines so that they can be accessed
808 from class methods. The reference to strerror() caused problems.
809 - Implement new DEVICE class methods block() and unblock() that
810 do what was previously done in 3 lines of code.
811 - Implement wait_for_device(), which will wait for any device
812 to be released then return. This requires a new global mutex
813 and condition variable, and is implemented in src/stored/wait.c
814 - Change the code in reserve_device_for_read(), which previously
815 failed the job to use the new device wait code.
817 - Apply reschedule patch to 1.37 code.
818 - Add copyright to title page of manual so it is clear.
819 - Create patch for rescheduling problem found by Ludovic. Storage
820 pointers were lost during rescheduling.
821 - Attempt to fix 2.6 rescue disk -- failed!
822 - Start working on adding a wait routine in the SD.
823 - Cleanup some old invalid doc in watchdog.
824 - Convert a number of references to dev->dev_name to dev->print_name().
825 - Add new wait.c file to SD.
826 - Add a few more methods to DEVICE in SD to cleanup code a
827 bit -- implement a few of the methods.
829 - Fix more print_name()s for printing device name.
830 - Modify open_dev to try 10 times every 6 seconds to
831 open the device if it gets an I/O error (meaning no
832 volume mounted). This gives a bit of settling in time
833 for an autochanger and avoids spurious messages.
834 - Change all yes/no to yes|no in the manual.
835 - Fix win32 create_file.c typo.
836 - Fix a typo in an error message.
838 - Detect if fseeko exists with autoconf. If so, use it
840 - Remove old bacula-*.conf from examples directory (out
842 - Remove latex-fr index files from CVS.
843 - Rewrite code that stops reading the tape so that the
844 tape is marked at EOT, then once the work is done,
845 the EOT flag is removed.
846 - Flush output to file after every send in console.
847 - Make setting VolFiles to smaller number fatal.
848 - Disable Multiple Connections code.
849 - Add patch from user for NetBSD statvsfs() fix to
851 - Take more care with errors in acquire.c
852 - Don't run through dvd code in append.c if bad status
854 - Modify code so that an autochanger fault is fatal.
855 - Use dev->print_name() in more places.
856 - Implement dev->can_steal_lock() to simplify code.
857 - Make btape re-read first 10000 records on fill command.
858 - Check error return and fail job from fseeko and ftello
859 in spool.c. Don't let a -1 slip in as size.
863 - Apply NetBSD patch from kardel in bug 258.
865 - Add a second job and a second client to the default
866 bacula-dir.conf file.
867 - Remove old style Include/Excludes.
868 - Fix ANSI labels to put EOF1 and EOF2 after each file mark.
869 - Add Python to SD and FD.
871 - Implement IBM labels
872 - Implement EOF and EOV labels at the end of a volume.
873 - Fix a rather ugly problem with the PoolId not getting
874 passed correctly. Now the DIR passes the Pool name and
875 Media Type to the SD, who passes them back when requesting
876 the next Volume. The DIR then looks up the correct PoolId.
877 This takes more time, but always works, AND allows wild
878 card Media Types (i.e. the SD can decide).
879 - The DIR <==> SD protocol has changed.
883 - Fix scanf of PoolId in catreq to handle 64 bit Ids.
885 - Add new ua_update.c file and move update_cmd there.
886 - Modify "update slots" to obtain actual number of slots.
887 - Tweak autochanger code to handle new slots request.
888 - Modify autochanger code to lock/unlock around slots and
891 - Patch the FD so that it does not issue an error message if
892 it attempts to restore the permissions on a Win32 drive.
893 - Edit "Resource-name" (physical-name) for the device name
894 everywhere in the SD.
895 - Remove .linked.tex files in preparation for cutover to
896 using .tex in place of .wml.
898 - Copy latest config.sub and config.guess from autoconf.
899 - Try new way of identifying drives with:
900 "resource-name" (physical-name)
901 More work need to a complete conversion.
903 - Rework some of the autochanger data so that the DIR has
904 the number of drives.
905 - Modify the way the Device info is returned so that it comes
906 back as a special message type and can be sent anytime the
907 Device status changes.
908 - Copy the change name and changer command into the device
909 record if none is specified.
910 - Require the change command and changer name to be specified in
911 and AutoChanger resource.
912 - Force all the Media Type records of all devices in an Autochanger
915 - Add new "run" command to Job resource in DIR. This permits
916 cloning a job as many times as you want.
917 - Pass PoolId to SD on Query request. It is now used in the
918 Find_media catalog request.
919 - Reworked the Device resource in the DIR. Eliminated num_waiting
920 and use_count, but added max_writers, reserved, and PoolId.
921 - This DIR is nolonger compatible with previous SDs.
922 - Add since and cloned keywords to the Console run command
924 - Implemented store_alist_str() to allow multiple string items
925 to be specified in a .conf file.
926 - Added %s (since time) to Job code editing.
927 - Reworked reserving drives in the SD. It now does it much simpler
930 - Integrate HP-UX patch from Olivier Mehani <olivier.mehani@linbox.com>
931 - Fix FD job.c to test correctly for no level.
935 - Change Developers to Developer's Guide as requested by Michael.
936 - Fix developers link in manual
937 - Add additional dcr changes in SD to allow multiple dcrs.
939 - Fix a few problems with the MySQL table create in 1.37.
940 - Delete the new tables in the table delete files.
941 - Increase the number of items permitted in a conf table.
942 - Make Director loop over alternative Devices specified in the
943 Storage resource until one is reserved by SD.
944 - Fix storing of StorageId in Media records.
945 - Add AutoSelect = yes|no in bacula-sd.conf
946 - Add Autochanger support to Label command.
947 - Do not autoselect devices with autoselect set false
949 - Implement setting DIR Storage device to Autochanger
951 - Select first available device in Autochanger.
952 - Pass back actual device name used.
953 - Allow Query of AutoChanger.
954 - Modify Query to include name of AutoChanger if
955 Device belongs to one.
956 - Remove old Pool code in jobq.c
957 - Add Autoselect flag to query and DEVICE class (still
960 - Lock autochanger script when running.
961 - Mark Volume not InChanger if correct volume is not
963 - Corrected some typos in the make_xxx_tables.in files.
964 - Made preliminary split of pre-run and run code for each
965 job type. This will permit early opening of SD for reserving
967 - Add offline and autochanger fields to Device Query record.
968 - Correct pthread_mutex_init() for autochanger in SD.
969 - Tweak Makefile for LaTeX manual, plus add nav buttons.
971 - Clean up drive reservation system. Add more sanity checks.
972 - Implement a few more methods for the DEVICE class in SD.
973 - Add latex directories to make clean
974 - move DEV_BSIZE to B_DEV_BSIZE to avoid conflicts with
975 certain header files (FreeBSD).
977 - Fix an ASSERT that was triggering in stored/acquire.c
978 attempt to fix a bug report.
980 - Corrected SunOs to SunOS in btraceback (user submitted).
981 - Applied patch from Roger HÃ¥kansson <hson@ludd.luth.se>
982 to warn the user of defective AWKs during ./configure.
984 - Add some changes submitted by a user for HP client build.
985 Not all changes accepted.
986 - Rework code in filed/backup.c to ease #ifdefing and make
987 program flow more obvious.
988 - Split DVD code out of dev.c into dvd.c
989 - Tweak #ifdefing to add back all the performance measurement
990 #defines in version.h
991 - Put most of MTIOCGET code in a subroutine to simplify the
993 - Make clean remove old CVS files
994 - Remove unnecessary image files from Latex directory
995 - Implement remaining parts of Storage DB record and
996 its use in the Director.
998 FullMaxWaitTime, Differential Max Wait Time, and
999 Incremental Max Wait time in Job resource.
1000 - Start work on SD Autochanger code.
1002 - Add back JobId index for MySQL as default -- speeds up
1004 - Add more database fields and fix the update scripts to
1005 include the new items.
1006 - Pass actual level to FD so that ClientRun editing can reflect
1007 correct level -- ditto for job status. This makes the DIR
1008 incompatible with older clients!
1009 - Move jobq.c acquire resources to static subroutine so that
1010 the code logic becomes clearer. This is in preparation for
1011 actually using the new Device resources.
1012 - Fix some lower case problems in sql_cmds.c reported by
1014 - Correct a seg fault in the SD reported by a user. Occurred
1015 only when a high debug level was set.
1016 - Modify init_dev() in dev.c to take JCR as first arg so that
1017 proper error messages can be reported in next item.
1018 - Modify the query and use device SD commands to attempt to
1019 open the device if it could not previously be opened.
1020 - Correct error message for Could not reserve device.
1021 - Correct some minor details with Autochanger resource in SD.
1023 - Fix seg fault if debug level 900 set in SD.
1024 - Truncate Win32 child return code to 8 bits.
1025 - Remove some old lld's.
1029 - Make another attempt at fixing the ClientRunXXX return code
1030 bug on Win32 machines.
1031 - Apply ua_status patch from Carsten Paeth <calle@calle.in-berlin.de>
1032 which enforces console ACLs in the status command for Jobs.
1034 - Fix Media LabelDate and FirstWritten to be correctly set.
1035 - Fix deadlock in multiple simultaneous jobs.
1036 - Fix tape "truncation"/"number of files" after restore bug.
1038 - Ensure that correct error messages are returned when
1039 reading an ANSI label.
1041 - Modified ANSI label code to preserve any ANSI label
1042 already found by skipping over it rather than rewriting
1044 - Split the ANSI label code into ansi_label.c
1045 - Do not let user relabel an ANSI labeled tape.
1046 - Applied a patch for the console help command supplied
1048 - Added some new dev methods. Most notably was
1049 set_eof(), which handles setting all the dev variables
1050 when an EOF is just read. This is now used most everywhere
1053 - Added code to detect that no files were inserted into the
1054 tree for a restore. If a specific JobId was specified, the
1055 user has the option of restoring everything.
1056 - More progress in implementing 64 bit DB Ids.
1057 - Modified the daemon start messages for RH.
1058 - Implement update scripts for all database types.
1059 - First cut at implementing restore directory (it will not
1062 - OK, I think ANSI labels work.
1063 - Added Label Type = ANSI|IBM|Bacula to Device resource in SD.
1064 If this is set, it will force writing of the appropriate
1066 - Added Check Labels = yes|no to Device resource in SD. If this
1067 is set, Bacula will check for ANSI labels and accept them,
1068 otherwise, ANSI labels will not be accepted when the tape
1071 - Second cut ANSI labels.
1073 - Merge Preben's patch for ACLs and for Mac OS X resource forks.
1075 - Display more informative message when a device was not
1076 found or could not be opened.
1077 - Add the sqlite3 database scripts.
1078 - Add some patches for 1.36.1 (note, I have now prepared
1079 a 1.36.2 with all the patches and some new features --
1081 - Some minor doc updates.
1082 - Add Arno's baculareport.pl script to the examples directory.
1083 29Jan05 -- after vacation
1084 - Add support for SQLite3 (it seems to run at 1/2 the speed
1085 of SQLite2). Use --with-sqlite3 instead of --with-sqlite
1087 - Add target for running qemu to boot Rescue CDROM
1088 - Add code to support kernel 2.6 in Rescue CDROM -- does NOT yet
1090 - Implement ANSI labels -- not yet tested.
1091 This required changes to DB format. No upgrade script yet.
1092 Note, more work needed to modify "update" command to handle
1093 changing label types, also must restrict volume name lengths
1095 - Add new Device, Storage, and MediaType records to DB. No
1097 - Add MediaType to bsr file record types. Not yet used in SD.
1098 - Permit multiple device specifications in Storage resource in
1100 - Implement Device resources. Director requests Device resource
1101 info from SD on startup.
1102 - Note!!!! DIR->SD incompatible with previous versions.
1103 - Remove multiple Storage definitions in Job resource. One can
1104 still specify multiple Storage resources, but they all go into
1105 a single alist, and imply sending data to each Storage daemon
1107 - Implement Device query command between DIR and SD.
1108 - Allow DIR to "reserve" a Device. It will then be acquired
1109 when the FD connects to the SD.
1110 - Turn all DIR resources into classes, and implement a few class
1111 methods -- more to come.
1112 - Turn DEVICE in SD into a class, and implement a number of inline
1113 class methods -- more to come.
1114 - I had serious problems with ACL errors on my Laptop, and so had
1115 to add the following patch:
1118 /***** Do we really want to silently ignore errors from acl_get_file
1119 and acl_to_text? *****/
1123 - Added edit_int64()
1124 - Reworked and tested a bit the htable routines.
1125 - Major changes to SD acquire.c -- DIR can now reserve devices. Needs
1127 - Made a special state code for DVD -- this simplifies the logic
1128 of the code, but I probably broke it. Testing needed!!!!
1129 - Add AutoChanger resource to SD, but not yet used.
1133 - Integrate Preben 'Peppe' Guldberg <peppe@wielders.org>'s
1134 acl patch. Fix case where configured but no ACL exists.
1135 Rework calling arguments to be shorter and positioned
1136 more typically in Bacula usage.
1138 - Fix scripts/bacula.in to have awk on an environment variable
1139 and add comments for Solaris users.
1140 - Turn off inet_aton in src/lib/address_conf.c for Win32
1141 - Add new files to win32 build and eliminate a compiler warning.
1142 - Add sample DVD Device resource to bacula-sd.conf
1144 - Integrate Nicolas' patch for direct DVD support.
1146 - Fix fstype error returns.
1147 - Apply Preben's cleanup.patch which puts back much of the
1148 cleanup code in src/filed/restore.c
1150 - Apply all of Preben's patches, but revert to old backup.c
1151 and old restore.c in filed. Also turn off code in new
1152 acl.c because of errors. The new code, when fully implemented
1153 moves platform specific code into acl.c.
1154 One of the patches also implements WildFile and WildDir -- thanks.
1156 - Implement Python in the SD (no events yet though).
1157 - Fix some typos in the previous commit.
1159 - Enhance CDROM boot to include some documentation at boot time.
1160 - NOTE!!!!! The CDROM will not boot 2.6 kernels because the
1161 boot sequence has changed significantly. Updates to come
1163 - Add memtest option to CDROM boot.
1164 - Include Nicolas' changes to fix llist JobMedia records.
1165 - Make sure that ClientRunBefore/After messages from the program
1166 are terminated with a newline. Add strerror to output error
1168 - Return program exit status code in Win32.
1170 - Add memtest86 to Bacula Rescue disk
1171 - Enhance Rescue disk startup screen
1173 - Move some variables to eliminate Solaris 2.6 compiler warnings.
1174 - Fix the seg fault at the end of a job in the FD when using
1175 old style include/excludes.
1177 - Apply Preben's ACL patch.
1178 - Integrate Preben's restore patch.
1179 - Integrate Preben's verify teaks.
1180 - Fix doc/latex/Makefile to copy/remove .eps files when building
1181 html and web outputs.
1183 - Fix Bacula so that it does not exit if there is a syntax error
1184 in its conf file during a reload command. Bug 182.
1185 - Apply fixes suggested for old Solaris networking.
1187 - Apply Preben 'Peppe' Guldberg <peppe@wielders.org>
1188 three patches that clean up white space:
1189 ws.patch.02.strings:
1190 Breaks strings that span lines into concatenated strings. I am not sure
1191 if you like this one. Other code works with concatenated strings, though.
1192 ws.patch.03.trailing:
1193 This removes trailing whitespace. No changes resulted from this for
1195 ws.patch.04.leading:
1196 This replaces space runs at the start of line with tabs. No changes
1198 - Fix overriding storage specification to be done
1199 through a subroutine.
1200 - Fix autoconf so it runs with FC3.
1201 - Add Python4.3 to configure search paths.
1202 - Always copy and delete storage definitions into jcr.
1203 - Check that VolumeName supplied by Python is valid.
1206 - Fix undefined in non-Python build.
1207 - Update rescue disk to include mkinitrd
1208 - Fix umount_drives in rescue disk (only one arg to umount)
1209 - Ensure that if SD is manually set in Console, it is used.
1210 - Put generate_event on pointer and plug it in init. This
1211 permits using it in /lib
1212 - Correct despooling size reported to be Job specific rather
1213 than for the whole drive.
1215 - Fix bug 207. jcr use count off by one when manually
1217 - Remove FNMATCH test in configure.in and always use
1218 the one in our library to get the FN_CASEFOLD GNU
1219 extensions on all platforms.
1220 - While using the rescue CDROM after my computer would not
1221 boot, I realized that it would be very useful to have
1222 a umount_disks. So, it is not implemented, along with
1223 updates to the READMEs and some minor tweaks.
1224 - Moved mounting the CDROM in the rescue boot from /cdrom
1225 to /mnt/cdrom (more standard location).
1226 - Reboot in CDROM rescue should now work -- requires -d
1227 option (no write) to work.
1228 - Hopefully fixed all the IPV6/4 problems and buffer
1229 problems with networking in lib. Bugs 190 and 204.
1230 Cleaned up a lot of #ifdefing problems by using routines
1233 - Apply Preben 'Peppe' Guldberg <peppe@wielders.org>
1235 - Remove duplicate code from chksum.h (mentioned by Preben).
1237 - Integrate Tim Oberfoell <oberfoell@web.de> patch to ACLs
1238 to handle both the "standard" and "default" ACLs.
1240 - Integrated Preben 'Peppe' Guldberg <peppe@wielders.org>
1241 three cleanup patches (btest, verify, find).
1242 - Integrated Preben 'Peppe' Guldberg <peppe@wielders.org>
1243 three cleanup patches (backup, chksum, and verify)
1245 - Integrated Preben 'Peppe' Guldberg <peppe@wielders.org>
1246 patch to avoid doing MTIOCGET on OSes that do not support
1248 - Integrated Preben 'Peppe' Guldberg <peppe@wielders.org>
1249 patch to add filesystem type matching to FileSets in the
1251 - Integrated Preben 'Peppe' Guldberg <peppe@wielders.org>
1252 patch to add Mac OSX resource fork support (save/restore)
1253 to Bacula -- HFS Plus support.
1254 - Add FileSet to client Job listing query.
1256 - Integrated Preben 'Peppe' Guldberg <peppe@wielders.org>
1257 patch to backup directories skipped (due to no file system
1258 changes or no recursion), and to add a slash to the end
1259 of the directory name during the match process.
1260 - Implement Jamie ffolliott <jamieff@inline.net>
1261 patch to dird_conf.c that enables Multiple Connections and
1262 fixes a typo in show. The rest of his patch awaits my suggested
1265 - Implement run command in Python
1267 - Implement conversion of the manual, and some minor
1268 tweaks to the script tags.
1269 - Apply a patch supplied by Preben 'Peppe' Guldberg that implements
1270 ignore case in wild cards and regexes.
1271 - Fix a truncated line in the above patch due to my cut and paste.
1273 - Fix it so that the InChanger flag is only changed for Volumes
1275 - Add PIDOF configuration path and apply to bacula.in
1276 - Add user supplied patch to add inet_aton() of old Solaris
1278 - Require pools to match before allowing multiple simultaneous
1279 accesses to same storage resource.
1280 - Add patch supplied by Martin to correct buffer overrun in
1281 bsnprintf() with no library snprintf().
1283 - Apply user supplied patch that implements No Hard Links.
1284 - Document Python interface
1285 - Add hardlink keyword patch supplied by David R Bosso <dbosso@lsit.ucsb.edu>
1287 - Fix non-python prototypes in dummy routines.
1288 - Add python 2.3 to config search list (user submitted patch)
1289 - Add JobStatus to Python variables.
1291 - Add "python restart" command in Console.
1292 - Make built-in variables table driven.
1293 - First cut of Python Events for Bacula. Director only.
1294 StartJob, EndJob, NewVolume events.