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