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