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