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