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