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