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