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