2 Release Notes for Bacula 1.35.8
4 Bacula code: Total files = 396 Total lines = 116,211 (*.h *.c *.in)
11 - Bacula CD Image Manager
12 - Lots of improvements in the Rescue scripts -- better
13 network detection, better mounting code, ...
14 - General bug fixes/stabilization
15 - French translation of manual by Ludovic Strappazon well
17 - UTF-8 is supported in conio (some minor cleanup is needed).
18 - Improved conf scanning code allowing FileSet components to
19 be put on a single line (previously everything had to be on
21 - Win32 files restored to an alternate directory will have the
22 colon following the drive letter turned into a / e.g. c:
23 becomes c/. Previously the c: was stripped. This applies only
24 to files written to an alternate directory (i.e. using a where=).
25 - Certain open files (Word for example) can now be saved on
27 - Default for Wild-cards on Win32 systems is to fold case.
30 - Added "Rerun Failed levels = yes/no" in the Job resource
31 of the Director. It will upgrade the current job to a
32 higher level (Full or Differential) if a previous job
34 - Added "Ignore FileSet Changes = yes/no" in the FileSet
35 directive of the Director. It prevents the Director from
36 immediately upgrading the job to a Full save if you modify
37 the contents of the FileSet. Not recommended.
38 - Added "Block positioning = yes/no" in Device resource in SD.
39 If set to no, Bacula should (as yet untested) be able to
40 recover data from tapes where the drive was set to fixed
41 blocksize but Bacula is in variable block size.
42 - Added "Multiple connections = yes/no" in Catalog record for
43 allowing multiple simultaneous connections to the database.
44 This is a major performance improvement for PostgreSQL.
47 - As of 1.35.5 you MUST do a database update.
49 cd scripts-dir (or src/cats)
50 ./update_bacula_tables
52 - All daemons should be compatible with 1.34 with the exception
53 of the new FileSet features such as regular expressions.
54 - Regular expressions are not supported in the Win32 FD.
61 - Incremented the release number because this version requires
62 an update to the database.
65 ./update_bacula_tables
66 to update an existing database.
67 - Implemented EndFile and EndBlock in the Media record. This will
68 allow Bacula to know exactly when to stop reading a tape if the
69 stupid tape driver does not give a logical end of tape indication
70 and Bacula writes to the end of the tape getting an I/O error.
71 - Added new routines to update the database, and there are
72 new database creation routines to add the two new Media columns.
73 - The Media record is updated each time a JobMedia record is created.
74 This keeps the Media record up to date.
75 - Undid the code to use automatic type converions to char * in
76 POOL_MEM. This is due to the ugly consequences of essentially
77 destroying the class type nature of the class.
78 - Removed all the old mp_char() #define code.
83 - Implement automatic POOL_MEM type conversion to char *. Thanks
84 to Martin Simmons for the suggestion.
85 - Remove some unneeded function overloading -- need removed by
86 automatic type conversion.
88 - Correct segfault in message.c with debug=200 (new code).
89 - Fix bug 109 verify with no options prints garbage.
90 - Add ioctl(MTIOCGET) call to clrerror_dev() in dev.c. As reported
91 by Frank Kardel, this should clear error conditions on NetBSD.
93 - Modify the rescue script to create mount_drives with
94 the order specified by Philip Nash (mkdir, mount).
95 - Tweak install chapter of French manual to add new paragraph
97 - Tweak restore tree message to be a bit clearer.
98 - Modify watchdog to wakeup after 60 seconds, or wakeup if
100 - Modify watchdog stop routine to "ping" watchdog so that it
101 stops immediately rather than after sleep time.
102 - Fix btape to use new dcr blocks rather than its own.
103 - Fix butil.c to correctly handle Volume names for the
104 utility routines (broke when updating to dcrs).
105 11-19Sep04 (vacation)
106 - Implement multiple Storage specifications in the Job resource
107 (AND) each containing multiple specifications (OR). Not yet functional.
108 Note, this needs more work as most things now use
109 job->storage[0]->first() rather than looping through devices.
110 - Implement "Multiple connections = yes/no" in Catalog record for
111 allowing multiple simultaneous connections to the database.
112 - Add new mac.c (Migrate, Archive, Copy) to dird -- not yet implemented.
113 - Implement a new POOL_MEM class that automatically allocates
114 and deallocates a pool buffer.
115 - Overload a number of utility routines to permit using both
116 POOLMEM and POOL_MEM.
117 - Start converting to using POOL_MEM.
118 - There were a number of Bacula console ACL checks missing in
119 ua_run.c. It allowed users to run jobs they really should not.
120 - Correct a number of dates on the Copyright.
121 - Overload pm_strcpy() and pm_strcat() to handle new POOL_MEM
123 - Overload bash/unbash_spaces to handle new POOL_MEM class.
124 - Make a *MASSIVE* pass through the Storage daemon eliminating
125 all use of jcr->VolumeName and jcr->VolCatInfo in favor of
127 - Eliminate all all redundant arguments from calling sequences
128 in SD. This poses a number of problems due to the old way blocks
129 and records were allocated and released all the time. They are
130 now contained in the dcr. The problem is that old habits die hard
131 and there are still places where everything is not right.
132 - Implement "Block positioning = yes/no" in Device resource in SD.
136 - Add "Multiple Connections = yes/no" in catalog record. Only
137 the variable is implemented, no code yet.
138 - Close *all* FD unless debug on.
140 - Add first cut of UTF-8 support to conio. It "seems" to be working
141 pretty well. Moving by words will definitely not work though.
142 - Improve detection and setting of gateway in the
143 network_start script.
145 - Modify scan code so that in most places scanning will
146 continue across the end of a line.
148 - Begin major phase of 1.35 documentation.
149 - All outstanding bugs are fixed.
150 - Implement changes and improvements to rescue scripts as
153 - Add correction to Phil's previous patch.
154 - Send all queued messages in SD and FD prior to closing down
156 - Send queued messages in Jobs before terminating the job
157 so that the messages print before the job report.
158 - Add a destructor so that the Console ACLs are properly
161 - Implement isolinux boot disk.
162 - Integrate Phil Stracchino's code (thanks for Matt's help).
163 It permits lists and ranges of jobids on the delete as in:
164 delete job jobid=1,3,5,11-16
166 - Apply Mike Acar's suggestion when looking for the next volume
167 to check purged volumes for recycling before doing a purge.
168 - Make some improvements to CDROM disk.
169 - Take another crack at ignoring drive open() errors during
172 - Add eliminate orphaned job records; eliminate admin records,
173 and eliminate restore records to dbcheck.
174 - replace sprintf by bsnprintf() in dbcheck.
175 - Added scan target to makefile in rescue cd to print scsi
177 - Added argument to berrno::strerror() to pass errno.
178 - Cleaned up a few more old strerror() calls and eliminated a
179 few of the now unnecessary set_errno() calls.
180 - Fixed a bug in the polling code that prevented more than 100
181 label reads (insanity check disabled if polling).
182 - Ignore bad return from open_device() if polling.
183 - Short circuit code if fatal error return from read_label() in
186 - Add index file to JobId field of File records for PostgreSQL.
187 - Correct several bugs in the job queue scheduler concerning
188 rescheduled jobs: 1. The SD status was not cleared causing a
189 wrong status to be displayed by Dir after rescheduling. 2. All
190 rescheduled jobs became zombies because the jcr use_count was
191 not decremented properly.
192 - Make the Catalog resource required in Client records.
193 - Order the listing of where a file is (item 2 on the restore
195 - Clarify when a filename only and a full path + filename must
196 be entered in items 2 and 8 of the restore menu.
197 - Fix logic error in resolution of names on IPv4 systems.
199 Changes to 1.35.2 released 01Sep04:
201 - Inhibit printing of FileSet for a restore as it is misleading.
202 - Cleaned up a number of minor scripting problems with the CDROM
204 - Fixed a race condition causing a Director crash on termination,
205 if a large number of SIGHUPs were sent during a multiple concurrent
208 - Completed integration of Rescue CD scripts with Bacula source.
210 - Added Ignore FileSet Changes = yes
211 - Added more error checking to the spooling code.
213 - Applied a patch from Peter Eriksson that removes a dynamic stack
214 allocation (replaced by alloca) and fixes some const problems.
215 - Fixed a free() of a static variable in the new IP code bnet.c
216 - Got the new Bacula Rescue CDROM booting.
217 - Replaced a dynamic template by a simple store when using the
219 - Reworked some of the block.c error handling.
220 - Changed a Dmsgx(000, to Dmsgx(100 in dev.c that was dumping
221 debug output on a user.
222 - Integrated patch from 1.34.6 block.c to 1.35
224 - Fix conio.c problem on Solaris.
225 - Add debug code to lock_jcr_chain().
226 - Lock jcr chain around less code.
227 - Implement call by reference for Mmsg() and pm_strxxx() to
229 - New IP address specification is used as follows:
230 [sdaddresses|diraddresses|fdaddresses] = { [[ip|ipv4|ipv6] = {
231 [[addr|port] = [^ ]+[\n;]+] }] }
233 so it could look for example like this:
234 SDaddresses = { ip = {
235 addr = 1.2.3.4; port = 1205; }
237 addr = 1.2.3.4; port = http; }
250 addr = 2001:220:222::2
253 addr = bluedot.thun.net
256 as a consequence, you can now specify multiple IP addresses and
257 ports to be used. In the case of a server, it will listen on
258 all those that you specify. In the case of connecting to the server,
259 Bacula will attempt connecting to one at a time until it succeeds.
260 And, in a few other special cases, Bacula will use only the first
263 The default port numbers are still the same and the services and hosts
264 are also resolved by name. So now you could use the real names for the
267 Release 1.35.1 16 August 2004:
268 - Added Tape Alert feature (see Alert Command).
269 - New IPv6 code (untested)
270 - New way of specifying Addresses and Ports -- permits having
271 server listen on multiple ports.
272 - Regular expressions in Options directive.
273 - Reader/writer programs in Options (not yet fully implemented,
275 - Fixed specification of bind address on Win32 (thanks to
277 - Update all Volumes from Pool record.
278 - Update License to terminate rights of anyone suing a GPL licensor.
279 - Improved error messages for Win32 and when running external
280 programs (e.g. RunBeforeJob).
281 - Implement reload of conf file in Directory on SIGHUP.
282 - Building restore tree is much faster on large filesets
283 due to binary insert.
284 - Alert Command in Device resource of Storage Daemon.
285 - New IP address and port directives.
286 - reader = xxx, writer = yyy in Options within FileSet of
287 Director's conf file.
288 - regex = xxx in Options within FileSet of Director's
290 - New command options: update AllFromPool updates all
291 Volumes with Pool defaults.
292 - .backups client=xxx (for GUI programs).
293 - A duration specification may have any number of integer/modificator
294 specifications. E.g.:
295 1 week 2 days 3 hours 10 mins
296 1 month 2 days 30 sec
297 - Print error message if Alert Command fails in bpipe_open().
299 - Eliminate unnecessary class in findlib/attribs.c
300 - Add necessary empty files to new tray-monitor directory.
301 - Implement Class with template in findlib/attribs.c to do casting
302 of uint64_t into stat packet types to avoid compiler warnings.
303 Thanks to Meno for this idea.
304 - Make some modifications to satisfy VC++.
305 - Apply Martin Simmons' second patch to compat.cpp to fix the line
307 - Apply Meno's fix to bnet that corrects use of ipaddr after free_addresses,
308 back out my kludges, and it works.
309 - Modified configure.in to by default add -Wall.
310 - Found some problems with printing IP addresses -- will notify Meno.
311 - Added printing Pool to Job report.
312 - Fixed several places where dlists were not being released
313 (term_job_server, ...)
314 - Started implementing New() for dlists. Spent a lot of time,
315 but could not get it to work.
316 - Fixed a mutex deadlock between the job queue scheduler and the
318 - Made add_address() static.
319 - Added bsnprintf to address_conf.c
320 - Apply Marin Simmons patch to inet_aton() in compat.
321 - Build on Win32 -- required a few changes because of new IP code.
322 - Implement program reader code in Dir and FD -- not tested, and
323 a few corrections for writer code are needed in FD.
324 - Rework SQL for pruning. Add Admin pruning. Prune failed
325 jobs in Verify and Restore.
326 - Don't put commas in listing produced in restore so that users
327 can cut and past JobIds without having commas in the way.
328 - Change size_t to socklen_t in filed.c -- reindent a bit.
329 - Remove addr_list->size from buf size definition in bnet.c
330 - Create a Developer's document.
331 - Add prompt for Update volume from pool and update all
333 - Implement user friendly time duration input editing.
334 - Add buf len argument to edit_utime().
335 - Added eliminate orphaned Client records to dbcheck.
336 - Implement Alert Command in SD Device conf.
337 - Fix updating a Volume from the pool record -- it never changed
339 - Implement updating all Volumes from pool record.
340 - Add patch by Denis Shaposhnikov that fixes excludes of directories
341 in new style FileSets.
342 - Merge Meno's IPv6-1 code.
343 - Update License to terminate rights of anyone suing a GPL licensor.
344 - Add Pruning doc sent by Bryce Denney
345 - Correct inconsistencies in restore command doc pointed out by user.
346 - Don't edit commas in SQL intergers if they are not stricly integer.
347 - Update all pools in all DBs when starting the Director.
348 - Implement final cut of berrno and update Win32 code.
349 - Update copyright to include a termination clause. Add copyright to
351 - Implement .backups client=xxx for Nicolas.
352 - Make first cut at implementing berrno class to handle Unix, Win32
353 and bpipe errors. Bpipe still needs to be implemented.
354 This fixes (not yet tested) the Win32 errno problems in the compat lib.
355 - Fix btape compile problem reported by Martin Simmons -- thanks.
356 - Add ./configure detection of sys/tape.h
357 - Apply two fixes to recent changes to dev.c submitted by
359 - Add checks in btape for correct size of off_t, and correct editing
360 of 32 and 64 bit values.
361 - Move supported OS/hardware into a chapter by itself.
362 - Fix bscan, which did not handle walking dcr list.
363 - Remove old attach_jcr_to_device() code.
364 - Fix config from Andy Wettstein's patch to use bitypes.h and detect
365 uint32_t, ... definitions.
366 - Fix a few compiler warnings because of casting pointers to int and
368 - Do some minor cosmetics to query.sql. nothing changed.
369 - Don't call stop_thread_timer() in backup.c if timer not started.
370 - Fix bug with out of order JobIds on restore.
371 - Make watchdog examine queues once every 10 seconds instead of once
373 - Add more bools to dev.c
374 - Fix walking attached DCRs in bscan.c
376 - Start work on rescue files. Integrated RAID changes.
377 - Print a message when query.sql moved to query.sql.old during install.
378 - Move setting of FreeBSD chflags() to after utime() to avoid error
379 messages is immutable bit is set.
380 - Turn off heartbeat in FD when -s is given so that we can
381 debug without a flood of signals.
382 - Close and reopen the device during an append test in
383 btape. This better tests appending as if Bacula stops/restarts.
384 - Remove old attach/detach_jcr_to_device() code
385 - Add new attached_dcrs code.
386 - Remove unnecessary subroutine for bsnprintf.
387 - Replace sprintf() by home-grown code in edit_uint64 ...
388 - Begin implementation of dev->attached_dcrs.
389 - Remove scripts/fd.in from configure.in
390 - Add printing of JobId when a Job is started from the console.
391 - Remove fd/fd.in from scripts directory.
392 - Fix a number of bugs in dbcheck concerning the -c option
393 (i.e. with a config file).
394 - Made RH start scripts use -u and -g options.
395 - Many more DCR changes.
396 - Add job message indicating that the job has been rescheduled
398 - Fix job end time so that it is always updated. Previously it
399 was not updated when a job was rescheduled.
400 - Correct SQL for restoring job by path/name. It could sometimes
401 pickup the wrong JobId -- submitted by a user.
402 - Add a number of "%s" in editing database errors -- security issue.
403 - Ensure that the NumVols is incremented and decremented in the
404 pool record when Volumes are created or deleted.
405 - Cleanup error handling when labeling a tape. If vol was read-only,
406 the device would still be marked as having found a label.
407 - Put ftCreationTime into st_ctime of stat packet. Hopefully
408 this will fix the problem of noticing files have been moved
409 into the save path after a Full save.
410 - Fix bug in "status dir" where not all entries are listed.
411 - Cleanup some improper result printing in configure.
412 - Optimize a couple of insertions in binary_insert of dlists.
414 Release 1.35.0 08 July 2004:
415 - Apply Christopher Hull's const patch for PostgreSQL
416 - Add code to block.c to detect if block header is destroyed.
417 - Add debug code for memset checking for zeroing 1900-3000 bytes
418 which is what happened to the block headers.
419 - If block header is destroyed, read the next block. Probably
420 should return with new status similar to the SHORT block
422 - Add more debug info to bls for bad blocks.
423 - More implementation of DCRs.
424 - Eliminate argument passing in SD by using dcr.
425 - More int->bool conversions.
426 - Add file:block to a number of read/write error messages.
427 - More int -> bool conversions.
428 - Modify the SD piece by piece to use DCRs everywhere.
429 - Cleanup some printout for query command.
430 - Fix typo in cats/mysql.c
431 - Work on cleaning up tape driver a bit (use bools, better calling
433 - Attempt to fix multi-Volume disk backup. Needs to be tested.
434 - Add Regular expressions to FileSet options.
435 - Correct configure.in to use ${MAKE} for doing the dependencies.
436 - Make MySQL and PostgreSQL try for 30 seconds to connect before
438 - Correct Gnome 1.4 Makefile to build without cats library.
439 - Correct a crash reported (with patch) by Jonathan Soong
440 when attempting to backup an ACL on a symlinked file.
441 - Fixed an off by one bug in the new resources pointer code.
442 res_head array was one too small.
443 - Added Errors to last_job list. This allows detecting jobs
444 that terminated in a warning.
445 - Implement setting the Win32 icon to yellow instead of red
446 when the job terminated OK but with warnings.
447 - Fix the Win32 makefile and VC project file. The links were
448 not including the Win32 dlls.
449 - Delete some old Win32 code that was turned off.
450 - Eliminate a few more Win32 compiler warnings.
451 - Reduce the output produced by NIS (Win32 install builder).
452 - Simplify some of the #ifdefing in compat.h
453 - Rewrite spooling error handling when I/O error occurs. It is
454 a bit tricky, requiring to truncate the file so that a despooling
455 will work correctly. Needs to be tested.
456 - Make better subroutines for setting up for a new job.
457 - Start putting all DB ids on #defines (going to 64 bits).
458 - Fix gnome-console Makefile.in to work again.
459 - All "level=Incremental/Decremental" to the estimate command. This
460 required some re-arrangement of subroutines at a fairly low level.
461 - Apply Piotr Jaworski's patch (patch-r-status.diff) to update the
462 catalog status when a backup job starts running.
463 - Add (char*) cast to readline call in console.c for old readlines.
464 - Copy Makefile.in from gnome2-console to gnome-console (to eliminate
465 need for cats library).
466 - Modify spooling code to handle write error (e.g. spooling disk full)
467 more gracefully. Previously despooling would fail.
468 - Reduce casting in smartall.c a bit and add counters for
469 bytes, max_bytes, buffers and max_buffers.
470 - Fixed reload algorithm to stack both job end callback and the
472 - Fixed the orphaned buffer after reload (job_end_push had to be
474 - Destroy cond var (jcr->term_wait) only if initialized.
475 - Sort the Scheduled Jobs list by start-time, priority.
476 - Implement resources on a pointer.
477 - Fix Gnome console crash on up/down arrow with no history.
478 - Finish first cut of SIGHUP code. To make really work need res
479 on a single pointer rather than in fixed memory.
480 - Fix a number of places in query.sql where multiple JobIds are
481 printed (due to JobMedia records).
482 - Add new query: List jobs on Volume given Volume name.
483 - Correct socket close on Win32 in bnet.c (in addition to compat.cpp).
484 Caused fd leak in Win32 for each connection.
485 - Remove vol labeled test in askdir update_volume_info so that non-labeled
486 Volume in catalog can be marked in error.
487 - Close socket in SD when connection rejected. Caused fd leaks.
488 - Initialize job_start_wait cond variable after every new_jcr() otherwise
489 NetBSD gets error in library when trying to delete it without being inited.
490 - Fix typo (9 instead of 0) return status in write_new_volume_label.
491 - Fix mount.c to call routine that correctly marks a volume in error.
492 - Move code to rewrite volume label to subroutine -- a bit cleaner.
493 - Finish implementation and testing of new restore tree code.
494 - Implement feedback while tree is loading.
495 - Eliminate printing INFO message in UpdateDB (cats) -- it generates
496 "false" error messages.
497 - Eliminate some GTK error messages when running the Gnome2 console.
498 - Begin restructuring tree.c for inclusion of the binary_insert()
500 - Apply Peter Eriksson's lib file order changes in linking for IRIX.
501 - Abort configure if Internal is selected as the database.
502 - Add testimonials to the Web page
503 - Add the bugs list to the Web page "lists".
504 - Clarify the English in SuSE and Slackware when SD not running.
505 - Applied another extern "C" patch from Peter Eriksson.
506 - Fixed a bunch of VC warning messages.
507 - Applied the patches sent by Andreas Jellinghaus: build Gnome and
508 wx-console in client-only build if configured; add ./configure option
509 to permit setting of sbin modes -- default is 0745 as before; remove
510 cats library from Gnome console build; remove old version from Gnome
511 About box. Thanks Andreas.
512 - Applied Peter Eriksson's const changes to the source code. Thanks Peter.
513 - Implemented a binary_insert() method for dlists -- intended to be used
514 in the restore tree routines.
515 - Turned on my bsscanf() code, which replaces sscanf() by my routines, which
516 are a subset of sscanf() used by Bacula, but which have known 32/64 bit
517 behavior rather than vendor dependent !@#$%*.