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