1 Technical notes on version 1.39
8 - Note!!! Your database must be updated, or you must create
9 a new database. I have not yet incremented the database level.
11 - Add LocationId, DeviceId, and MediaTypeId to Media record.
13 - Implement create/get mac record in database for adding extended
14 Migration data to the job record.
15 - Add new MAC table to update/make database scripts.
16 - Return Storage name used when getting VolumeNames for a job.
17 - Change bsr file keyword Storage to Device, which is more accurate.
18 - Ensure that Mac records are pruned/purged.
19 - Tweak SD tools to deal with changing media type.
20 - Integrate more dev.c subroutines as methods (e.g. strerror, bsr, ...)
21 - Pass pointer to dcr pointer to acquire_device_for_read() so
22 that the subroutine can switch devices, and hence dcrs.
23 - Modify the multiple MediaType read code to re-use the same
24 dcr when switching devices. This makes the code much more
26 - Integrate patch from Karl Hakimian that reads JobIds, FileIndexes
27 from a table for restore.
28 - Add Storage name to VolParams, but it really should be Device.
30 - Add disk-changer to scripts directory + configure/Makefile
31 - Eliminate PoolId from jcr -- it is in jcr->jr.PoolId
32 - Implement store_bit scanner to replace store_yesno. Mostly done.
33 - Implement new store_bool that stores in a bool.
34 - Add true/false to yes/no conf directives.
35 - Make first cut at changing appropriate store_yesno to store_bool.
36 - Complete implementation of Pool storage devices.
37 - Move starting clones to job.c
38 - Move create_restore_bootstrap_file() to job.c
39 - Make copy_storage() more general to be able to handle
41 - Cleanup a lot of migration code for manual running, including
43 - Move getting a scratch Volume into a subroutine.
44 - Make all places a Volume that is added to a pool to
46 - Fix bug in autochanger recycle code (improper edit 64 bit).
47 - Fix segfault in restore command when no value specified.
48 - Start adding code to handle multiple MediaTypes in restore.
49 - Eliminate race condition in getting Volume name for
50 two drive autochanger.
51 - More debug code in autochanger.
52 - Add storage keyword to bootstrap file, add parsing.
53 - Move slot in bsr file into Volume record as there will be
54 a different slot for each Volume.
57 - Implement Pool storage overrides.
59 - Implement first cut of Migration.
60 - Implement mysql_use_result() from patch by Karl Hakimian.
61 This reduces significantly the memory consumption during
62 the restore tree building, and hence runs faster too.
63 - Implement StorageId patch supplied by user (reggie) in bug
64 #536. This should permit Bacula to work correctly with two
66 - Implement Job listing variations suggested by a user.
67 - Move updating bootstrap code in backup.c to subroutine
68 update_bootstrap_file().
69 - Add new job status elapsed time and bytes written user
70 friendly job report output patch sent by a user.
71 - Implement a storage list in Pools.
72 - Separate out setup_job() code from run_job().
73 - Get migration working -- lots of changes in mac.c in both
75 - Apply patch from user (Eric Bollinger I think) that fixes a
76 DIR crash when no arguments are supplied to a dot command.
77 - Fix typo (strcpy->strcmp) in ua_prune.c as reported by Martin.
78 - Fix command arg name->volume in label command of gnome-console.
79 - Fix SD acquire.c to release correct DCR by explicitly testing
80 on the dcr address rather than trying to "devine" if it is a read
81 or write dcr. This failed in error conditions when the device was
85 - Apply user supplied patch for more readable rate output
87 - Continue implementing migration.
88 - Implement support for removable filesystems in SD.
89 - Ensure that btraceback scripts can be read by anyone.
90 - Replace dvd-freespace and dvd-writepart by dvd-handler.
91 - Correct bug where canceling restore before the FD contacts
92 the SD causes the drive to be left in read mode.
93 - Move ofline_or_rewind into DEVICE::close().
94 - Eliminate close_device.
95 - Convert several dev subroutines to methods (e.g. bsf,
97 - Eliminate force_close_device().
98 - Implement Device Type directive in Device resource that
99 can have values File, Tape, Fifo, DVD, or Prog.
100 - Add has_cap() method to Device.
103 - Add patch from bug #527 to allow RedHat user to specify
104 options/user/group for starting each daemon in
107 - Add two new queries to query.sql provided by Arno. One
108 list volumes known to the Storage device, and the other
109 lists volumes possibly needing replacement (error, ...).
111 - Add periodic (every 24 hours) garbage collection of memory
112 pool by releasing free buffers.
114 - Correct bug counting sized (for display only) in smartall.c
115 - Print FD mempool stats if debug > 0 rather than 5.
117 - Make db_lock() mutex error fail the job rather than abort
118 Bacula. Canceling the job caused the mutex to fail.
119 - Correct bug in alist.c that re-allocated the list if the
120 number of items goes to zero.
121 - Move the reservation system thread locking to the top level
122 so that one job at a time tries all possible drives before
124 - Implement a reservation 'fail' message queue that is built
125 and destroyed on each pass through the reservation system.
126 These messages are displayed in a 'Jobs waiting to reserve
127 a drive' list during a 'status storage='. Note, multiple
128 messages will generally print for each JobId because they
129 represent the different problems with either the same drive
130 or different drives. If this output proves too confusing
131 of voluminous, I will display it only when debug level 1
132 or greater is enabled in the SD.
134 - Add enable/disable job=<job-name>. This command prevents
135 the specified job from being scheduled. Even when disabled,
136 the job can be manually started from the console.
137 - During 'update slots' clear all InChanger flags where the
138 StorageId is zero (old Media records).
142 - Fix autochanger code to strip leading spaces from returned
143 slots number. Remove bc from chio-changer.
144 - Back port a bit of 1.39 crypto code to reduce diffs.
145 - Fix first call to autochanger that missed close()ing the
146 drive. Put close() just before each run_program(). Fixes
149 - Add PoolId to Job record when updating it at job start time.
151 - Pull in more code from 1.39 so that there are fewer file
152 differences (the new ua_dotcmds.c, base64.h, crypto.h
153 hmac.c jcr.c (dird and lib) lib.h md5.h parse_conf.c
154 util.c. Aside from ua_dotcmds.c these are mostly crypto
156 - Implement new method of walking the jcr chain. The
157 incr/dec of the use_count is done within the walking
158 routines. This should prevent a jcr from being freed
159 from under the walk routines.
164 - Start implementing Verify list output.
165 - Move the suitable_drive flag to a better place to prevent
166 premature termination of the reservation if all drives
167 are busy -- should fix Arno's diff/inc pool failures.
169 - Add mutex to single thread VSS code in Win32.
171 - Simplify code in askdir.c that waits for creating an appendable
172 volume so that it can handle multiple returns from the wait
174 - Modify the wait code to permit multiple returns.
175 - Return a zero when "autochanger drives" is called and
176 it is not an autochanger.
177 - Make rewind_dev() a method taking a DCR as an argument.
178 This permits closing and reopening the drive if the
179 rewind fails as happens if the drive was loaded while the
180 file descriptor was open. This refreshes the file descriptor.
181 - Remove the ST_OPENED flag and always rely on fd < 0 for knowing
182 if the device is open or not. This should eliminate
184 - Return error if reserve cannot find at least one suitable device.
185 - Make wait_for_sysop() return correct state information.
186 - Fix Win32 state file problem. write was not using compat
187 code. This should fix bug #500.
189 - Modify gui on command to set only GUI mode and not batch.
190 - Modify .messages command to always print messages regardless
192 - If GUI mode is on, suppress automatic printing of
194 - Delete old bnet packet code.
195 - Ignore new BNET_START_SELECT and BNET_END_SELECT signals in
197 - Modify restore command in wx-console to set gui on and to use
198 only .messages instead of messages. Hopefully this fixes bug
200 - Fix seg fault in exit of acquire when canceling a job --
201 reported by Wolfgang Denk
202 - Pull in latest reservation system changes from 1.38
203 - Make .messages command always print messages regardless
204 of the automessages flag.
206 - Fix seg fault if user labels a drive directory bug #513
207 - Remove quotes around Version as it breaks things.
209 - Merge in Aleksandar Milivojevic's mods to the spec file.
210 - Apply sparse code fix for raw drives and fifos. Bug 506
211 - Thorsten fixed Unicode cd problem with wx-console bug 505.
213 - Correct reservation system to do a last ditch try
214 for any mounted volume, then anyone anywhere.
215 - Add quotes around table Version because of
216 error in MySQL 4.1.15 -- bug report submitted.
217 - Correct some minor problems with btape in the fill
219 - Updates to ssh-tunnel from Joshua Kugler.
220 - Added a report.pl program from Jonas Bjorklund.
221 - Simplify the O_NONBLOCK open() code for tape drives,
222 and always open nonblocking.
223 - Do not wait for open() if EIO returned (shouldn't happen).
224 - Eliminate 3 argument to tape open().
225 - Correct the slot # edited in the 3995 Bad autochanger unload
227 - With -S on bscan (show progress) do not divide by zero.
229 - Make cancel pthread_cond_signal() pthread_cond_broadcast().
230 - When dcr is freed, also broadcast dev->wait_next_vol signal.
231 - Remove unused code in wait_for_device.
232 - Make wait_for_device() always return after 60 seconds of wait.
236 - Add stubs for non-crypto build.
238 - Use localhost if no network configured
240 - Eliminated duplicate MaxVolBytes in cat update -- bug 509.
241 - Remove debug print.
242 - Add bail_out in error during state file reading.
244 - Merge changes made to 1.38.3 into HEAD
245 - Add stubs for pygtk-console code
246 - Create Makefile.in for pygtk-console code
248 - Merge updates into 1.38 branch
249 - Update specs to include mysql4 define.
250 - Fix when attributes are sent, must be after binit().
251 - Stop read_record() if status not ok in second loop.
252 - Return rec->FileIndex in dcr->VolLastIndex for normal
253 and partial records in read_record(). This allows bscan
254 to get FileIndex at EOT correct.
255 - Fix butil.c to correctly set dcr -- fixes seg fault in bls.
257 - Fix Win32 built to work with new crypto code.
258 - Apply patch supplied by user (slightly modified) to fix
259 correct detection of holes in block devices and FIFOs.
261 - Apply patch supplied by user (slightly modified)
262 to fix SD hang with multiple pools and bad client
265 - Add nagios plugin to the examples directory. Submitted by
267 - Remove warning message about multiple saves of hardlinked files
268 from find_one.c as it can generate too many warning messages.
269 - Modify most restore error messages to be queued so that they
270 appear at the end of the job rather than mixted with the restore
271 listing where they could be "lost".
273 - Reset timeout values before select() per patch from
274 Frank Sweetser for problems with non-blocking sockets.
275 - Unlink the state file if either reading or writing it gets
276 errors. Hopefully this will fix Win32 exit problems.
277 - Add sanity check in append.c to ensure that dcr is not NULL.
278 This can happen if multiple drive autochanger SCSI control
279 channel and drive indicies do not correspond.
281 - Get next volume from Scratch pool before creating a volume.
282 - Set new Pool defaults in Vol when moved from Scratch Pool.
283 - Remove argument from create_bacula_database for SQLite as it
285 - Add back index code so that two drive autochangers can get
287 - Change a bunch of debug levels to aid debugging autochangers.
288 - Fix reservation so that mutexes are properly applied.
289 - Rework reservation algorithm so that two drives can be used
292 - Landon merged his data encription changes into the HEAD
293 - Apply days keyword patch from Alexander.Bergolth at wu-wien.ac.at
294 If this patch is applied, the number of days can be specified with
295 "list nextvol days=xx"
298 My use case is to be able to preview the next scheduled job (and the
299 next tape to be used) on fridays if there are no scheduled jobs during
303 - Fix font code in gnome2 console user patch. Fixes bug #501.
304 - Fix malformatted bnet error message that caused seg fault
306 - Applied user patch to improve README.vc8 in src/win32.
308 - Add Migrate, Copy, Archive Job types (some where there)
309 - Correct some more editing of JobId's (for 64 bit compatibility).
310 - Ensure that StorageId is stored in Media record when ever possible.
311 - Add Migration Job to Job.
312 - Add Migration Time, Migration High Bytes, Migration Low Bytes
313 Next Pool to Pool resource.
314 - Add more code to mac.c (migration archive copy).
315 - Change Start Storage daemon job to require read and write storage
317 - Pass read storage data to SD as well as write storage data.
318 - Remove old code from winservice.cpp
319 - Break on error in scan.
320 - Fix typo in signal.c
321 - Separate read/write DCR in SD. Add jcr->read_dcr.
322 - Cleanup how find_device() works.
323 - Add read output to Status in SD.
326 - Add red-black btree routines
328 - Remove abs() in bfile.c so that it compiles on Solaris.
331 - Fix crash in tray-monitor when daemon disconnects. Bug #479.
332 - Fix bnet-server bug found on OpenBSD. Bug #486
333 - Fix cancel failure bug. Bug #481
334 - Fix failure when Pool name has spaces. Bug #487
335 - Fix SD crash in autochanger code. Mutex failure. Bug #488
336 - Fix a couple of free()s in src/filed/acl.c
337 - Fix memory overrun in bfile.c in building OS X resource
338 fork filename. Bug #489
339 - Add Pool name to SD status output.
341 - Apply SunOS patch for ACLs submitted by David Duchscher.
342 - Make sure to set storage before trying to set drive.
343 - Add bacula_mail_summary.sh to examples directory. It makes
344 a single email summary of any number of jobs. Submitted
346 - Make sure when we do a mount to unblock the device even
347 if the drive could not be opened.
349 - Remove the USE_WIN32STREAMEXTRACTION #defines (always on)
350 and correct a few minor problems to make it build on Linux.
352 - Remove delete of CVS from all Makefiles
353 - Fix seg fault when clicking on Add button in wx-console
354 restore panel. Bug #470.
355 - Fix copyright date and URL typo -- bug #468.
356 - Change autostart install for FreeBSD to look for rc.conf
357 rather than rc.local as suggested fix for bug #466.
358 - Apply patch supplied by Eric Bollinger to fix PostgreSQL
359 grant on status. Bug #465
360 - Apply patch supplied by Eric Bollinger to fix PostgreSQL
361 update script. Bug #464
362 - Tweak #ifdefing a bit in new Win32 stream code.
363 - Fix #ifdeffing for FD_NO_SEND_TEST.
364 - Add documentation of performance #defines