1 Technical notes on version 1.39
6 - Correct some problems with database creation (new tables).
8 - Change store_bit() to store_bool() for the Spooling in
9 dird_conf.c -- bug reported by Robert Nelson.
11 - Correct Makefile bug found by Dan Langille.
13 - Correct Makefile for Solaris /bin/sh
14 - Correct mtx-changer.in for Solaris /bin/sh
15 - Abort if a conf resource does not have a Name =
17 - Change the name of the regex program to bregex.
18 - Add the bwild program to the tools directory. It is similar
19 to the bregex program.
20 - Implement create bregex.h and bregex.c in src/lib from the
21 Python regexp program.
22 - Use the new bregex.c to implement Regex expressions on Win32.
24 - More work on migration.
25 - Implement wild program in tools directory for testing
26 wild-cards. Almost identical to the regex program.
27 - Up port VSS single thread locking code.
28 - Replace N_(..) by NT_(...) to inhibit translation of
30 - Modify Makefile to change the permissions on Working Directory
31 to 770 if the directory is created.
32 - Do not fail the Makefile if changing the permissions or
33 owner/group on WorkingDir fails.
34 - Remove early selection of Scratch Volumes in the recycling
36 - Correct the old recycling algorithm so that Scratch Volumes
37 are selected when looking for a Volume in the changer.
38 - Correct a typo in the Verify SQL reported by Joe Park.
40 - Remove automatic case folding on Windows FDs. You must
41 explictly use the 'Ignore Case = yes' option.
42 - Remove the code added to 1.38.6 and 1.38.7 that pulls a
43 scratch volume in an Autochanger early in the 'recycling'
46 - Make weof() and clrerror() methods of class DEVICE.
48 - Tweak license to include Microsoft restrictions.
49 - Move mysql.reconnect to after real_connect(). Thanks to
50 Frank Sweetser for the patch.
51 - Disallow a backslash in a File = directive (Windows junk)
52 unless the string is quoted.
53 - Apply Eric's patch to ua_label.c so that daemon protocol
55 - Add NT_ definition for strings that should not be translated.
56 - Apply NT_() to ua_label.c
58 - Remove timed wait for VSS on Win2K3 as it is not yet
60 - Correct bacula.in script to reference bacula-ctl-xx in the
61 sysconfig directory rather than the bin directory.
63 - Fix a long standing bug in the bacula start/stop scripts.
64 - Attempt to add the new bacula-ctl-* files to the rpm.
65 - Switch to using typeof() for list traversing to avoid
66 as many FC5 g++ compiler warnings as possible.
68 - Split the bacula start/start script into four files:
69 bacula -- starts and stops calling other scripts
70 bacula-ctl-dir -- starts/stops the director
71 bacula-ctl-fd -- starts/stops the File daemon
72 bacula-ctl-sd -- starts/stops the Storage daemon
74 - Create datestyle fix for PostgreSQL. Fixes bug #574.
75 - Correct editing of JobId from int to int64 in fd_cmds.c
76 - Eliminate FileSet name race with bash_spaces() and multiple
77 threads by bashing in a local.
78 - Fix error return from 'use storage' to print a correct error
79 message rather than nothing.
80 - Correct false re-read last block error message when two jobs
81 are simultaneously writing at the end of a tape.
82 - Simplify exit conditions in the reserve.c code to avoid
83 possible non-release of reservation_lock().
84 - Suffle lock order in reserve to avoid deadlock between
85 reservation lock and device mutex.
87 - Initialize jcr mutex before first use. Thanks to Thorsten for
88 tracking this down for me !!!! as it broke the Win32 build.
90 - Integrate addition of line count limitation to bsmtp -l from
91 Sebastian Stark <stark at tuebingen.mpg.de>
93 - Implement regex test program in tools directory.
94 - Attempt to fix time problem with bsmtp with foreign langs.
95 - Add strip_trailing_newline() submitted by user.
96 - Implement regex matching in migrate.c
98 - Fix bug #537 to allow arbitrary time to mount a volume for
99 restore, if polling is turned on.
100 - If dir_user or dir-group is specified in ./configure apply it to
101 the working-dir. Fixes bug #533.
102 - If rescheduling a job cancel the previous incarnation with the SD.
103 Fixes bugs #566 and 557.
104 - Fix bug #567 do_message() definition type conflict.
107 - Add more jcr methods and make mutex and use_count private.
108 - Create lock/unlock methods for jcr.
109 - Fix PostgreSQL bug doing sql_data_seeek() by explicitly reading
110 records to get to seek position.
111 - Integrate patch from bug #561 to correct conio.c signal definitions.
112 - Fix Rescheduling failed Jobs. Ensure that SD message thread
113 terminates correctly by doing pthread_kill(). Do not destroy
114 SD cond wait variable between executions of the job. Use local
115 mutex for cond variable to avoid blocking jcr chain. Fix poor
116 use of jcr use count in jobq.c for restarted jobs.
117 - Fix obsolete usage of foreach_dlist() to use foreach_jcr() in
118 lib/jcr.c -- prevents locking the jcr chaing.
119 - Apply patch from bug #564, which corrects listing volumes with
120 multiple autochangers. Apply same fix to next volume list.
121 - Fix bug #562 where restore bootstrap file is not unique.
122 - More details in implementing David's migration syntax proposal.
123 - Save and restore dcr when swapping drives so that if we have
124 a write dcr it is not lost.
125 - Use new routine lock_reservations() to lock the reservations
126 system, and call it while looking for a volume in askdir.c.
127 This could possibly fix bug #543.
128 - Stop SD command loop if job is canceled.
131 - Remove old code from findlib/create_file.c
132 - Rename mac.c migrate.c
133 - Add user friendly display of VolBytes in job report.
134 - Rename target... to previous... to make it a bit easier to
136 - Add selection type and selection pattern to Migration (idea
137 given by David Boyes).
140 - The po files should now be current.
141 - Fix new sql_use_result() code to properly release the
142 buffers in all cases.
143 - Use the keyword ujobid to mean the unique job id; job or jobname
144 to mean the Job name given on the Name directive, and jobid to
145 be the numeric (non-unique) job id.
146 - Allow listing by any of the above.
147 - Add the user friendly job report code for reporting job elapsed time
148 and rates with suffexes from John Kodis <kodis at comcast.net>.
149 - Add Priority and JobLevel as Python settable items.
150 - Use TEMPORARY table creation where the table is created by
152 - Add new code submitted by Eric for waiting on specific jobid.
153 - Add ACL checking for the dot commands.
154 - Fix restore of writable FIFOs.
155 - Fix a bug in bpipe where the string was freed too early.
157 - Modify the Python class examples to inherit object -- new way
158 of defining classes. Patch from Felix Schwarz.
159 - Implement jobuid to replace old usage of job in keywords as
160 suggested by Eric Bollengier.
161 - Apply patch for enhancing wait from Eric Bollengier. On can now:
162 wait (wait for all jobs to stop)
164 wait jobuid=unique id
166 - Implement write variables for Python to set Priority (anytime), and
167 Job Level, only during JobInit event.
169 - Fix the block listing bug pointed out by Arno.
170 - Update the po files at Eric's request.
172 - Fix Maximum Changer Wait, Maximum Open Wait, Maximum Rewind Wait to
173 accept time qualifiers.
174 - Make catalog respect ACL.
175 - Add recycle count to Media record.
177 Changes to 1.39.6-beta1 24Feb04
179 - Add Rudolf Cejka's new rc-chio-changer.
180 - Implement pulling Volume from Scratch Pool if the
181 Volume is in the autochanger.
182 - Implement additional command arguments for update Volume.
186 - Back port changes to 1.38.5
187 - Fix recycle SQL for StorageId.
188 - Fix misplaced quote in mtx-changer script.
190 - Note. Your database must be updated, or you must create
191 a new database. I have not yet incremented the database level.
192 - Add Location table.
193 - Add LocationId, DeviceId, and MediaTypeId to Media record.
195 - Implement create/get mac record in database for adding extended
196 Migration data to the job record.
197 - Add new MAC table to update/make database scripts.
198 - Return Storage name used when getting VolumeNames for a job.
199 - Change bsr file keyword Storage to Device, which is more accurate.
200 - Ensure that Mac records are pruned/purged.
201 - Tweak SD tools to deal with changing media type.
202 - Integrate more dev.c subroutines as methods (e.g. strerror, bsr, ...)
203 - Pass pointer to dcr pointer to acquire_device_for_read() so
204 that the subroutine can switch devices, and hence dcrs.
205 - Modify the multiple MediaType read code to re-use the same
206 dcr when switching devices. This makes the code much more
208 - Integrate patch from Karl Hakimian that reads JobIds, FileIndexes
209 from a table for restore.
210 - Add Storage name to VolParams, but it really should be Device.
212 - Add disk-changer to scripts directory + configure/Makefile
213 - Eliminate PoolId from jcr -- it is in jcr->jr.PoolId
214 - Implement store_bit scanner to replace store_yesno. Mostly done.
215 - Implement new store_bool that stores in a bool.
216 - Add true/false to yes/no conf directives.
217 - Make first cut at changing appropriate store_yesno to store_bool.
218 - Complete implementation of Pool storage devices.
219 - Move starting clones to job.c
220 - Move create_restore_bootstrap_file() to job.c
221 - Make copy_storage() more general to be able to handle
223 - Cleanup a lot of migration code for manual running, including
225 - Move getting a scratch Volume into a subroutine.
226 - Make all places a Volume that is added to a pool to
228 - Fix bug in autochanger recycle code (improper edit 64 bit).
229 - Fix segfault in restore command when no value specified.
230 - Start adding code to handle multiple MediaTypes in restore.
231 - Eliminate race condition in getting Volume name for
232 two drive autochanger.
233 - More debug code in autochanger.
234 - Add storage keyword to bootstrap file, add parsing.
235 - Move slot in bsr file into Volume record as there will be
236 a different slot for each Volume.
239 - Implement Pool storage overrides.
241 - Implement first cut of Migration.
242 - Implement mysql_use_result() from patch by Karl Hakimian.
243 This reduces significantly the memory consumption during
244 the restore tree building, and hence runs faster too.
245 - Implement StorageId patch supplied by user (reggie) in bug
246 #536. This should permit Bacula to work correctly with two
248 - Implement Job listing variations suggested by a user.
249 - Move updating bootstrap code in backup.c to subroutine
250 update_bootstrap_file().
251 - Add new job status elapsed time and bytes written user
252 friendly job report output patch sent by John Kodis
253 <kodis at comcast.ne>.
254 - Implement a storage list in Pools.
255 - Separate out setup_job() code from run_job().
256 - Get migration working -- lots of changes in mac.c in both
258 - Apply patch from user (Eric Bollinger I think) that fixes a
259 DIR crash when no arguments are supplied to a dot command.
260 - Fix typo (strcpy->strcmp) in ua_prune.c as reported by Martin.
261 - Fix command arg name->volume in label command of gnome-console.
262 - Fix SD acquire.c to release correct DCR by explicitly testing
263 on the dcr address rather than trying to devine if it is a read
264 or write dcr. This failed in error conditions when the device was
268 - Apply user supplied patch for more readable rate output
270 - Continue implementing migration.
271 - Implement support for removable filesystems in SD.
272 - Ensure that btraceback scripts can be read by anyone.
273 - Replace dvd-freespace and dvd-writepart by dvd-handler.
274 - Correct bug where canceling restore before the FD contacts
275 the SD causes the drive to be left in read mode.
276 - Move ofline_or_rewind into DEVICE::close().
277 - Eliminate close_device.
278 - Convert several dev subroutines to methods (e.g. bsf,
280 - Eliminate force_close_device().
281 - Implement Device Type directive in Device resource that
282 can have values File, Tape, Fifo, DVD, or Prog.
283 - Add has_cap() method to Device.
286 - Add patch from bug #527 to allow RedHat user to specify
287 options/user/group for starting each daemon in
290 - Add two new queries to query.sql provided by Arno. One
291 list volumes known to the Storage device, and the other
292 lists volumes possibly needing replacement (error, ...).
294 - Add periodic (every 24 hours) garbage collection of memory
295 pool by releasing free buffers.
297 - Correct bug counting sized (for display only) in smartall.c
298 - Print FD mempool stats if debug > 0 rather than 5.
300 - Make db_lock() mutex error fail the job rather than abort
301 Bacula. Canceling the job caused the mutex to fail.
302 - Correct bug in alist.c that re-allocated the list if the
303 number of items goes to zero.
304 - Move the reservation system thread locking to the top level
305 so that one job at a time tries all possible drives before
307 - Implement a reservation 'fail' message queue that is built
308 and destroyed on each pass through the reservation system.
309 These messages are displayed in a 'Jobs waiting to reserve
310 a drive' list during a 'status storage='. Note, multiple
311 messages will generally print for each JobId because they
312 represent the different problems with either the same drive
313 or different drives. If this output proves too confusing
314 of voluminous, I will display it only when debug level 1
315 or greater is enabled in the SD.
317 - Add enable/disable job=<job-name>. This command prevents
318 the specified job from being scheduled. Even when disabled,
319 the job can be manually started from the console.
320 - During 'update slots' clear all InChanger flags where the
321 StorageId is zero (old Media records).
325 - Fix autochanger code to strip leading spaces from returned
326 slots number. Remove bc from chio-changer.
327 - Back port a bit of 1.39 crypto code to reduce diffs.
328 - Fix first call to autochanger that missed close()ing the
329 drive. Put close() just before each run_program(). Fixes
332 - Add PoolId to Job record when updating it at job start time.
334 - Pull in more code from 1.39 so that there are fewer file
335 differences (the new ua_dotcmds.c, base64.h, crypto.h
336 hmac.c jcr.c (dird and lib) lib.h md5.h parse_conf.c
337 util.c. Aside from ua_dotcmds.c these are mostly crypto
339 - Implement new method of walking the jcr chain. The
340 incr/dec of the use_count is done within the walking
341 routines. This should prevent a jcr from being freed
342 from under the walk routines.
347 - Start implementing Verify list output.
348 - Move the suitable_drive flag to a better place to prevent
349 premature termination of the reservation if all drives
350 are busy -- should fix Arno's diff/inc pool failures.
352 - Add mutex to single thread VSS code in Win32.
354 - Simplify code in askdir.c that waits for creating an appendable
355 volume so that it can handle multiple returns from the wait
357 - Modify the wait code to permit multiple returns.
358 - Return a zero when "autochanger drives" is called and
359 it is not an autochanger.
360 - Make rewind_dev() a method taking a DCR as an argument.
361 This permits closing and reopening the drive if the
362 rewind fails as happens if the drive was loaded while the
363 file descriptor was open. This refreshes the file descriptor.
364 - Remove the ST_OPENED flag and always rely on fd < 0 for knowing
365 if the device is open or not. This should eliminate
367 - Return error if reserve cannot find at least one suitable device.
368 - Make wait_for_sysop() return correct state information.
369 - Fix Win32 state file problem. write was not using compat
370 code. This should fix bug #500.
372 - Modify gui on command to set only GUI mode and not batch.
373 - Modify .messages command to always print messages regardless
375 - If GUI mode is on, suppress automatic printing of
377 - Delete old bnet packet code.
378 - Ignore new BNET_START_SELECT and BNET_END_SELECT signals in
380 - Modify restore command in wx-console to set gui on and to use
381 only .messages instead of messages. Hopefully this fixes bug
383 - Fix seg fault in exit of acquire when canceling a job --
384 reported by Wolfgang Denk
385 - Pull in latest reservation system changes from 1.38
386 - Make .messages command always print messages regardless
387 of the automessages flag.
389 - Fix seg fault if user labels a drive directory bug #513
390 - Remove quotes around Version as it breaks things.
392 - Merge in Aleksandar Milivojevic's mods to the spec file.
393 - Apply sparse code fix for raw drives and fifos. Bug 506
394 - Thorsten fixed Unicode cd problem with wx-console bug 505.
396 - Correct reservation system to do a last ditch try
397 for any mounted volume, then anyone anywhere.
398 - Add quotes around table Version because of
399 error in MySQL 4.1.15 -- bug report submitted.
400 - Correct some minor problems with btape in the fill
402 - Updates to ssh-tunnel from Joshua Kugler.
403 - Added a report.pl program from Jonas Bjorklund.
404 - Simplify the O_NONBLOCK open() code for tape drives,
405 and always open nonblocking.
406 - Do not wait for open() if EIO returned (shouldn't happen).
407 - Eliminate 3 argument to tape open().
408 - Correct the slot # edited in the 3995 Bad autochanger unload
410 - With -S on bscan (show progress) do not divide by zero.
412 - Make cancel pthread_cond_signal() pthread_cond_broadcast().
413 - When dcr is freed, also broadcast dev->wait_next_vol signal.
414 - Remove unused code in wait_for_device.
415 - Make wait_for_device() always return after 60 seconds of wait.
419 - Add stubs for non-crypto build.
421 - Use localhost if no network configured
423 - Eliminated duplicate MaxVolBytes in cat update -- bug 509.
424 - Remove debug print.
425 - Add bail_out in error during state file reading.
427 - Merge changes made to 1.38.3 into HEAD
428 - Add stubs for pygtk-console code
429 - Create Makefile.in for pygtk-console code
431 - Merge updates into 1.38 branch
432 - Update specs to include mysql4 define.
433 - Fix when attributes are sent, must be after binit().
434 - Stop read_record() if status not ok in second loop.
435 - Return rec->FileIndex in dcr->VolLastIndex for normal
436 and partial records in read_record(). This allows bscan
437 to get FileIndex at EOT correct.
438 - Fix butil.c to correctly set dcr -- fixes seg fault in bls.
440 - Fix Win32 built to work with new crypto code.
441 - Apply patch supplied by user (slightly modified) to fix
442 correct detection of holes in block devices and FIFOs.
444 - Apply patch supplied by user (slightly modified)
445 to fix SD hang with multiple pools and bad client
448 - Add nagios plugin to the examples directory. Submitted by
450 - Remove warning message about multiple saves of hardlinked files
451 from find_one.c as it can generate too many warning messages.
452 - Modify most restore error messages to be queued so that they
453 appear at the end of the job rather than mixted with the restore
454 listing where they could be "lost".
456 - Reset timeout values before select() per patch from
457 Frank Sweetser for problems with non-blocking sockets.
458 - Unlink the state file if either reading or writing it gets
459 errors. Hopefully this will fix Win32 exit problems.
460 - Add sanity check in append.c to ensure that dcr is not NULL.
461 This can happen if multiple drive autochanger SCSI control
462 channel and drive indicies do not correspond.
464 - Get next volume from Scratch pool before creating a volume.
465 - Set new Pool defaults in Vol when moved from Scratch Pool.
466 - Remove argument from create_bacula_database for SQLite as it
468 - Add back index code so that two drive autochangers can get
470 - Change a bunch of debug levels to aid debugging autochangers.
471 - Fix reservation so that mutexes are properly applied.
472 - Rework reservation algorithm so that two drives can be used
475 - Landon merged his data encription changes into the HEAD
476 - Apply days keyword patch from Alexander.Bergolth at wu-wien.ac.at
477 If this patch is applied, the number of days can be specified with
478 "list nextvol days=xx"
481 My use case is to be able to preview the next scheduled job (and the
482 next tape to be used) on fridays if there are no scheduled jobs during
486 - Fix font code in gnome2 console user patch. Fixes bug #501.
487 - Fix malformatted bnet error message that caused seg fault
489 - Applied user patch to improve README.vc8 in src/win32.
491 - Add Migrate, Copy, Archive Job types (some where there)
492 - Correct some more editing of JobId's (for 64 bit compatibility).
493 - Ensure that StorageId is stored in Media record when ever possible.
494 - Add Migration Job to Job.
495 - Add Migration Time, Migration High Bytes, Migration Low Bytes
496 Next Pool to Pool resource.
497 - Add more code to mac.c (migration archive copy).
498 - Change Start Storage daemon job to require read and write storage
500 - Pass read storage data to SD as well as write storage data.
501 - Remove old code from winservice.cpp
502 - Break on error in scan.
503 - Fix typo in signal.c
504 - Separate read/write DCR in SD. Add jcr->read_dcr.
505 - Cleanup how find_device() works.
506 - Add read output to Status in SD.
509 - Add red-black btree routines
511 - Remove abs() in bfile.c so that it compiles on Solaris.
514 - Fix crash in tray-monitor when daemon disconnects. Bug #479.
515 - Fix bnet-server bug found on OpenBSD. Bug #486
516 - Fix cancel failure bug. Bug #481
517 - Fix failure when Pool name has spaces. Bug #487
518 - Fix SD crash in autochanger code. Mutex failure. Bug #488
519 - Fix a couple of free()s in src/filed/acl.c
520 - Fix memory overrun in bfile.c in building OS X resource
521 fork filename. Bug #489
522 - Add Pool name to SD status output.
524 - Apply SunOS patch for ACLs submitted by David Duchscher.
525 - Make sure to set storage before trying to set drive.
526 - Add bacula_mail_summary.sh to examples directory. It makes
527 a single email summary of any number of jobs. Submitted
529 - Make sure when we do a mount to unblock the device even
530 if the drive could not be opened.
532 - Remove the USE_WIN32STREAMEXTRACTION #defines (always on)
533 and correct a few minor problems to make it build on Linux.
535 - Remove delete of CVS from all Makefiles
536 - Fix seg fault when clicking on Add button in wx-console
537 restore panel. Bug #470.
538 - Fix copyright date and URL typo -- bug #468.
539 - Change autostart install for FreeBSD to look for rc.conf
540 rather than rc.local as suggested fix for bug #466.
541 - Apply patch supplied by Eric Bollinger to fix PostgreSQL
542 grant on status. Bug #465
543 - Apply patch supplied by Eric Bollinger to fix PostgreSQL
544 update script. Bug #464
545 - Tweak #ifdefing a bit in new Win32 stream code.
546 - Fix #ifdeffing for FD_NO_SEND_TEST.
547 - Add documentation of performance #defines