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