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