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