]> git.sur5r.net Git - bacula/bacula/blob - bacula/kes-1.37
I finally found and squashed the elusive SD crash.
[bacula/bacula] / bacula / kes-1.37
1               Technical notes on version 1.37  
2                         Kern Sibbald
3
4 General:
5
6 Changes to 1.37.29:
7 13Jul05
8 - I finally found and squashed the elusive SD crash.        
9   I needed to initialize the used volume list before
10   firing off the device initialization thread.
11 Changes to 1.37.28:
12 11Jul05
13 - Make sure that bpipe results are zapped even on
14   error return.
15 - Lots of documentation.
16 - Do not prune volume marked as append when needing a
17   new Volume.
18 - Print a warning message in SD if a non-used Volume
19   is specified and autolabel not turned on.
20 - Correct a bug in chksum.c concerning SHA1 signatures 
21   (an * should have been & when checking for a bit flag).
22 - Print File:Block for all label records in label.c -- concerns
23   primarily bls when doing Job listings (-j).
24 - Correct is_volume_in_use() to return false if testing
25   on the same device where the Volume is already mounted.
26 - Define a init_done flag in the SD that is set when the
27   devices are initialized and make users connecting wait.
28   This prevents useless connect failure warning messages.
29 - Do additional device locking in ask_op_to_mount_volume()
30   to prevent race conditions with a user labeling a Volume
31   or autolabeling.
32 09Jul05
33 - Add a test for error return from bnet_wait... in heartbeat.c
34   in FD to avoid CPU loop.
35 - Implement TLS in gnome console and wx-console.
36 08Jul05
37 - Correct a NULL pointer reference in the mount command.
38 - Correct typo in Copyright
39 - Add detection of EOM for IBM drives (i.e. errno == ENOSPC)
40 07Jul05
41 - Remove temp file created in mtx-changer script.
42 - Make fsf_dev() into a class method.
43 06Jul05
44 - Modify mtx-changer.in script to return slot:barcode for
45   Volumes that are loaded in the drives.
46 - Correct some more places where dev->is_blocked() needs
47   to be checked in dircmd.c in SD.
48 - Update doc.
49 05Jul05
50 - Add code to ensure that reserved but unused volumes
51   are freed. 
52 - Correct how Volumes are mounted and handled so that the SD
53   does not get stuck if multiple volumes are used (recycling,
54   relabling, ...)
55 - Correct bug where you could relabel a volume while it
56   was being acquired -- created chaos.
57 04Jul05
58 - Correct seg fault caused by open() calling sequence change.
59 03Jul05
60 - Add new rc-chio-changer script by Rudolf Cejka to 
61   examples/autochangers
62 - Apply Rudolf's changes to bacula.in
63 - Expand the space from 8 to 10 characters in editing
64   file sizes for restore and dir of catalog, otherwise
65   GB sizes are truncated -- fixes bug report.
66 - Modify wx-console to know about 10 character widths.
67 - Allow decending into top level directory if "recurse=no"
68   is set.  Fixes a bug report.
69 - Install pthreadVCE.dll when installing console or wx-console
70   on Win32 systems. Fixes bug report.
71 02Jul05
72 - Tweak dvd-writepart script to prevent door from opening/closing
73   so much.
74 - Remove GROUP BY in several PostgreSQL commands to prevent error.
75   Resolves bug report.
76 - Ensure that < as first character of filename list is not treated
77   as a directory for restore.
78 - Add debug to heartbeat in FD as it seems to go into an
79   infinite loop from time to time during SD failure in DVD writing.
80 - Add more debug code to dvd writing.
81 - Attempt not to destroy existing fs on DVD. 
82 30Jun05
83 - Detect device mounted for DVD and suppress be sure to 
84   mount message after label.
85 - Set Cleaning tape status to "Cleaning" and force no
86   MediaType.
87 - Get DVD writing working with new standard Bacula open()
88   code.
89 - Rename get_filename() to make more sense.
90 - Detect "is already mounted on" on mount command so to avoid
91   error if device is already mounted.
92 - Eliminated guess_name() code. It may be necessary to
93   add it back later.
94 - Eliminate seg fault from printing invalid results.
95 - Make dvd_write_part() bool.
96
97 29Jun05
98 - Attempt to fix DVD writing by eliminating a number of the 
99   DVD subroutines to simplify.
100 - Modify DEVICE::open() to take dcr as first argument. This
101   will permit providing more info to DVD opening.
102 - Fix scanning for time/size items which in some cases
103   ate the next line.
104 - Eliminate read_dvd_volume_label().  New code (not yet written)
105   *must* open dvd appropriately before calling 
106   read_dev_volume_label.
107 - Modify open_first_part() open_next_part() to take DCR as 
108   argument.
109 - Make label command from console work on DVDs.
110 - Make mount command from console work on DVDs.
111   Unmount does not work yet.
112
113 Changes to 1.37.27:
114 27Jun05
115 - Add Database vendor to CatalogRes tuple for Python.
116 - Update doc
117 - Implement DoesVolumeExist(Vol) for Python.
118 - Prevent python command from seg faulting if no arg given.
119
120 Changes to 1.37.26:
121 26Jun05
122 - Add set_mode method in DEVICE.
123 - Correct set_mode method in DEVICE
124 - Add more DVD debug info 
125 23Jun05
126 - Check for incorrect duration and size modifiers in conf files.
127 22Jun05:
128 - Make Version a tuple (version, build-date)
129 - Add CatalogRes tuple (DBName, Address, User, Password,
130     Socket, Port)
131 - Add Version, ConfigFile, and WorkingDir as Python attributes
132   in the Director.
133 - Implement code (principally for Win32) that on failure to
134   create a file, it will cd into the directory and attempt
135   to create the file using a relative path. This avoids creating
136   files with paths which fail on Win32.
137 - Fix parsing of times and sizes with decimal numbers.
138 - Make free_volume_list() in SD work if vol list is not
139   initialized (./bacula-sd -t).
140 21Jun05:
141 - Add debug error printout when open() fails.
142 - If open() of DVD fails in mount.c, return false.
143 - Split open() code for DVD into separate subroutine in dev.c
144
145 Changes to 1.37.25 released on 20 Jun 05:
146 20Jun05:
147 - Remove (cd gnome-console; make clean) from src/Makefile.in
148 - Fix bug where Storage daemon gets confused about what
149   tape is mounted. (one line of code was inadvertently 
150   deleted).
151
152 Changes to 1.37.24:
153 18Jun05
154 - DVD writing/reading seems to be mostly working.
155 - Set execute bits on dvd-freespace and dvd-writepart
156 - Make dvd-freespace use existing dummy file.
157 - Modify dvd-freespace to pickup size from Track Size:
158 16Jun05
159 - Add Date, Job, level to updates to .bsr file in 
160   dird/backup.c
161 - Add debug info to dvd-freespace.in
162 - Fix hard coded bacula.sql in make_catalog_backup reported
163   by a user.
164 - Make sure a verify volume to catalog never reports an error
165   if there are zero files to verify.
166 - Remove confusing debug info in filed/backup.c on network
167   error.
168 - Make sure output from console is not sent to system log.
169 - Convert open_dev() into a class method.
170 - Change VolHdr.VolName to VolHdr.VolumeName.
171 - Add a flag in the device state word to indicate that
172   we found Media in the drive (DVD). 
173 - Make mount_dev() and unmount_dev() return bool.
174
175 Changes to 1.37.22:
176 14Jun05
177 - Fix the same state variable problem in open_next_part().
178 - C++ify the SD code a bit more.
179 13Jun05
180 - Add more debug code and clarify debug code for DVDs.
181 - Do not save and restore state in open_first_part() 
182   since state should be properly set after open_dev().
183 - Make default mandir /usr/share/man
184 - Install Bacula man page.
185 - Implement passing of FileSet Enable VSS to FD.
186 - Move main body of reserve drive code into subroutine
187   so that it can be called multiple times.
188 12Jun05
189 - Eliminate getpass() for Win32 builds in console as the
190   function does not exist.
191 10Jun05
192 - Correct some reservation problems in SD when no devices
193   are available.
194 - Start removing #ifdef HAVE_TLS by sneaky tricks.
195 - Begin implementation of TLS in wx-console
196 - Remove ignoring SIGCHLD from console.
197 - Rework the dlist binary search routines for implemenation
198   of the Volume reservation code -- make it more general.
199 - Strip double slashes // from Win32 filenames in an attempt
200   to resolve restore problems on some systems.
201 - Fix a minor bugs in the trace code that caused the first
202   line output to be lost.
203 - Implement a good first cut at adding Volume reservation code
204   to the storage daemon (in file reserve.c).
205 - Remove old unused code from the tree.c routines.
206
207 Changes to 1.37.21:
208 06Jun05
209 - Fix compile problems on Win32
210 - Start writing Volume reservation list (already exists, but
211   is not really very good).
212 - Implement attribute caching to put Signature into database     
213   at the same time as the file attributes thus eliminating a
214   number of database accesses.
215 - Correct a reservation problem.
216 - Implement full Dir Storage use.
217 - Reduce a bit of TLS #ifdeffing.
218
219 Changes to 1.37.20:
220 04Jun05
221 - Minor changes
222 01Jun05
223 - Add more documentation to mtx-changer.in
224 - Correct link to manual in authenticate.c in various
225   directories.
226 - Create a new src/stored/reserve.c file where the 
227   Use Storage command is processed and drives are
228   reserved.
229 - Modify src/stored/autochanger.c to keep track of each
230   Slot that is loaded for each device.
231 - Ensure that changer_command and changer_name are picked
232   up from Autochanger resource if not specified, and if
233   neither is specified, err.
234 30May05
235 - Fix bextract.c compile problem
236 - Create bacula.man 
237 - Make make distclean clean a bit better
238 29May05
239 - Remove old code in jcr.c
240 - Make testls release jcr chain when terminating.
241 27May05
242 - Implement Maximum Job Spool Size (actually DCR based)
243 26May05
244 - Use light weight non-recursive locking on jcr chain.
245 - Make JCR a class and implement inc_use_count() and
246   dec_use_count() methods that ensure that the jcr is
247   locked when inc/dec the use count.
248 - Remove the global jcr lock when traversing the jcr
249   chain.   
250 - Use dlist to implement the jcr chain rather than hand
251   crafted next and prev links.
252 - Lock the jcr chain inside each function that modifies
253   the chain.
254
255 Changes to 1.37.19:
256 26May05
257 - Fix compile problem of ua_restore.c on broken compilers.
258 - Apply patch from bug 326 to permit bacula status by any user.
259 - Fix bug 325 -- conversion of 12:30pm to 24hour time.
260 25May05
261 - Put Dmsg() on inside if() to avoid calling subroutine.
262 - Make restore.bsr have unique name.
263 - Allow user to define bsr filename on restore command line
264   with bootstrap=xxx.bsr
265 - Add limit=nnn to "list jobs" command.
266 - Remove old restore code that did not use .bsr file.
267 - unlink automatically generated bsr file.
268 - Cleanup heartbeat code so that duped fd is almost sure
269   to be released. Previously under certain conditions, the
270   memory was not released due to race conditions.
271 - Shorten copyright.
272 20May05
273 - Unify the reserve_device() for a single device into one subroutine.
274 18May05
275 - Modify wait during use_device to happen only after all devices
276   have been examined rather than in the reserve_device code.  
277 - Correct updating count of number of Volumes in a pool.
278
279 Changes to 1.37.18:
280 16May05
281 - Add more debug to SD for Autochangers + status output.
282 - Add Scratch to PoolType in PostgreSQL make...tables and do not
283   permit NULL PoolTypes. Fix for bug 319 reported by Eric.
284 - Update LICENSE.
285 - Add quotes around filename in parse_config error message. Bug
286   reported by Eric.
287 15May05
288 - Change nested \include to \input so that sections are properly
289   included in the pdf manual -- update the Web site.
290 - Set reconnect flag in MySQL packet to 1 to ensure that connection
291   is re-established.  MySQL 5 changed default to 0. Fixes bug report.
292 - Fix Scratch pool handling as reported in a bug by Eric Bollengier
293   by applying his patch.
294 - Remove delete job in favor of delete jobid.
295 - Add = NULL to configfile definitions as reported by Eric in a bug
296   report.
297 - Update winbacula.nsi.in to reflect new manual file structure.
298 10May05
299 - Correct a minor build problem with wx-console.
300 - Add cancel() to Dir Python scripting.
301 - Re-correct bug in parse-config error handling.
302 - Reorganization of use_command in SD to permit
303   waiting and multiple drive autochanger support.
304 09May05
305 - Correct bug in parse_config error handling.
306 - Where ever possible mark a volume in error or not   
307   InChanger in mount.c
308 - Fix bug in changing tape pools after first backup. Reported
309   by Peter Sjoberg.
310 - Enhance mtx-changer to use Working Directory as temp.
311 - Remove all but initial setup locking of Res in SD.
312 08May05
313 - Add Client OS type to Job report.
314 - Add version to manual 
315 - Update the Web site to have a single page for
316   the documentation links.
317
318 Changes to 1.37.18 release 08May05:
319 08May05
320 - Correct attribute definition compile error in 1.37.17
321 - Correct inverted order of CreateTime and MD5 pointed out
322   by a user in a bug report in FileSet db routine causing
323   the MD5 to print in the output instead of the time/date.
324
325 Changes to 1.37.17:
326 07May05
327 - Implement cstrlen() in sql list routines.
328 - Implement caching of attributes to add the        
329   signature so that only one DB call will be made
330   per file. Not yet turned on.
331 - Fix Win32 build for TLS.
332 - Optimize File pruning to eliminate one database call. 
333 - Fix bug that prevented File pruning from working.
334 - Implement a cstrlen() which returns the character
335   length of a UTF-8 string.
336 06May05
337 - Move test for MaxStartDelay as suggested by Peter.
338 - Implement Python methods (I had to read the Python source
339   code).
340 - Implement run() method in Director.
341 - Add Priority and Scheduled time to Job report.
342 - Add JobInit and JobRun events.
343 - Add Priority as Python read/write attribute to Job.
344 - Correct typo in bsmtp reported by Jo.
345
346 Changes to 1.37.16 released 05May05
347 03May05
348 - Make a few tls ifdef tweaks.
349 - Fix create_file.c Win32 problem pointed out by
350   Peter Sjoberg.
351 - Fix really ugly bstrncpy() but found by Thorsten.
352 - Move winapi.h/c from findlib to lib for inclusion in 
353   multiple places.
354 02May05
355 - Thorsten Engel finished his work on Win32 Unicode. We
356   now have a single executable that runs on all Win32 machines.
357 - Move job initialization code after job scheduling so that
358   Verify jobs check for the prior JobId after they are really
359   started rather than before.
360 - Fix lib/fnmatch.c so that it does proper testing before folding.
361 - More documentation -- at tls and ansi labels chapters.
362 - Fix fileset_convert.pl to handle empty Exclude statements.
363 - Turn regex back off in Win32
364 01May05
365 - Fix sign extension problem in lex.c that reads UTF-8 
366   with Chinese characters incorrectly.
367
368 Changes to 1.37.14:
369 30Apr05
370 - Remove a few HAVE_TLS #ifdefs
371 - Implement final Python style interface. More implemention to
372   be done, but the interface should change little if at all.
373 28Apr05
374 - Make default no tls support. You must add 
375   --with-openssl to get tls support.
376 27Apr05
377 - Update Web header to include google search in the search
378   box -- thanks to input from Michel Meyers.
379 - Fix md5sum so that it builds with the new openssl stuff.
380 - Take some enhancements to the md5sum test program proposed
381   by a user.
382 26Apr05
383 - Make option 2 of restore work better (list last 20
384   locations for a file).
385 - Make SD re-open a device with the right permissions if
386   it was previously opened with something different.  This
387   should allow reading read-only Volumes under all circumstances.
388 - Implement restore of a single directory.
389 - Apply Tru64 patch supplied by Pascal Pederiva <freebsd@paped.com>
390 - Apply Unicode fixes for Win32 from "Thorsten Engel" 
391   <thorsten.engel@matrix-computer.com>
392 - More work on Python read feature in FD.
393 22Apr05
394 - Fix (hopefully) the ftello() overflow reported by Peter.
395 - Landon Fuller committed his TLS patch.
396 - Fixed two minor warnings in console.c with TLS turned off.
397 - Updated the Makefile.in for wx-windows and tray-monitor
398   to handle TLS. I can only build the tray-monitor.
399 - Fix bscan to open tape in read-only mode (actually fix
400   it so that it doesn't use the standard open routine).
401 - Correct what appears to be an error in setting the
402   return value in dvd.c
403 21Apr05
404 - Get FD Python running -- design Python backup interface.
405 - Fix seg fault in SD when referencing Alert Command.
406 - More documentation.
407 - Fix one more thing in Win32 build.
408 20Apr05
409 - Doc updates
410 - Fix Win32 build
411 - Put in production here
412
413 Changes to 1.37.13:
414 19Apr05
415 - Fix SQLite and PostgreSQL table creation script syntax
416   problems.
417 - Fix new Python code to work for Director.
418 - Move lib/python.c to lib/pythonlib.c so that debug output
419   is easier to read (can distinguish lib from dird, ...).
420 - Cleanup Python build so that Python is not dragged
421   into programs that don't use it.
422
423 Changes to 1.37.12:
424 18Apr05
425 - Make Bacula build without Python
426 - Drop Status table in drop_ scripts -- bug 283.
427 17Apr05
428 - First cut of new Python implementation.
429 - Doc updates
430 - Correct SuSE autostart installation directory name --
431   supplied by a user.
432 - Fix director crash if Name directive not supplied
433   in a Job.
434 - More cleanup of changing %u to %s for DB IDs.
435 - Replace dev_can_write(dev) with dev->can_write().
436 11Apr05
437 - Make fsr_dev() a method dev->fsr()
438 - Remove Created new FileSet message as it always comes out in
439   the daemon messages.
440 - eliminate dev_is_tape() in favor of method dev->is_tape()
441 - Turn on disk seeking during restore for Disk Volumes. This
442   required some changes to bscan -- they seem a bit suspect as
443   they are not symmetrical for tape/files.
444 - Remove some of the recursion in stored/parse_bsr.c
445 - Move rescue out to a new Bacula project.
446 08Apr05
447 - Update of web site to replace old released doc with LaTeX 
448   version.
449 - Replace logo in doc with new bat logo.
450 - Make a good number of updates to the manual.
451 - Implement Python scripting using a Python object.
452   This makes interfacing with Bacula cleaner (object
453   oriented).
454 - Add Phil's Status table to the database -- used
455   for getting a text description of the status     
456   codes.
457 - Modify FileSet so that an empty Options (no
458   pattern matching) with an exclude will exclude
459   all files.                       
460 - Modify FileSet so that no top level included File
461   item can be excluded by a matching pattern.
462 - Suppress Created new FileSet record in daemon output.
463 - Implement Python in FD.
464 - Turn off old bfile reader code -- to be replaced
465   by Python.
466 05Apr05
467 - Remove more recursion in src/dird/bsr.c as pointed out
468   by Peter.
469 04Apr05
470 - Increase the index width of Filename and Path entries
471   to 255 chars -- suggestion of Meno Abels.
472 - Change remaining VARCHARS to TINYBLOBs.
473 - Remove recursion from is_volume_selected() following
474   bug report from Peter.
475 - Implement mostly correct handling of use_storage in the
476   SD with full lists, ...
477 02Apr05
478 - Reset NumVols in Pool record from database on every update
479   Pool.
480 - Modify DB to support multiple simultaneous copies and
481   RAIT stiping.
482 - Pass copy and stripe between DIR and SD and put into
483   the JobMedia DB record.
484 - Update and test SQLite and MySQL datebase creation and
485   update scripts.
486 - Implement version 9 of the DB.
487 31Mar05
488 - Convert more atoi to str_to_int64() for DB.
489 - Implement filling in NumVols by querying DB rather
490   than trying to keep track of it.
491 - Add storage name to string passed to in use storage=
492 - Fix newVolume() so that the Python script is always
493   called.
494 - Fix handling of pool,PoolId, and storage in ua_output.
495 - Same fix in ua_status.c
496 - Remove required locking of resources
497 - Replace pthread_cond_signal() by pthread_cond_broadcast()
498   hoping to fix the /lib/tls hang problems (lost signal).
499 - Move resource locking seaching from parse_conf.c to res.c
500   in src/lib.
501 - Modify end of volume handling so that fixup_... does not
502   redo what block.c has already done -- writing Vol info to
503   DIR. This fixes a bug with bad numbers of files on a tape
504   when it filled as reported by Peter.
505 - In release_device() do not update the DIR on the Volume
506   info if the the information was already written at the
507   end of the tape.
508 28Mar05
509 - NOTE!!!! This version has a new DIR <--> SD protocol. Both 
510   must be updated at the same time.
511 - Begin implementation of passing all the Storage and Device
512   possibilities to the SD for examination during the reserve 
513   phase.
514 - Modify the reserve and acquire code in the SD to make a 
515   job wait if the device is not available.
516 - Implement New Volume Each Job in DIR and pass to SD, not yet
517   used.
518 - Remove init/update of the Device resource in DIR
519 - Remove passing PoolId to SD and back.
520 26Mar05
521 - Remove \a and -e from error echos in most Makefiles.
522 - Add more debug code when there are errors on the tape 
523   to try to find Peter's tape problem.
524 - Add wait.c (oops forgot previously).
525 - Move all the reserve/acquire_device_for_read/append to have
526   only a DCR as the argument.
527 - Rework the reserve_device_for_append() in stored to wait
528   if the drive is not available.  Note! This is a short
529   term solution.
530 25Mar05
531 - Comment out Multiple Connections in the document.
532 - Move the P() and V() to subroutines so that they can be accessed
533   from class methods. The reference to strerror() caused problems.
534 - Implement new DEVICE class methods block() and unblock() that
535   do what was previously done in 3 lines of code.
536 - Implement wait_for_device(), which will wait for any device
537   to be released then return. This requires a new global mutex
538   and condition variable, and is implemented in src/stored/wait.c
539 - Change the code in reserve_device_for_read(), which previously
540   failed the job to use the new device wait code.
541 22Mar05
542 - Apply reschedule patch to 1.37 code.
543 - Add copyright to title page of manual so it is clear.
544 - Create patch for rescheduling problem found by Ludovic. Storage
545   pointers were lost during rescheduling.
546 - Attempt to fix 2.6 rescue disk -- failed!
547 - Start working on adding a wait routine in the SD.
548 - Cleanup some old invalid doc in watchdog.
549 - Convert a number of references to dev->dev_name to dev->print_name().
550 - Add new wait.c file to SD.
551 - Add a few more methods to DEVICE in SD to cleanup code a
552   bit -- implement a few of the methods.
553 18Mar05
554 - Fix more print_name()s for printing device name.
555 - Modify open_dev to try 10 times every 6 seconds to
556   open the device if it gets an I/O error (meaning no
557   volume mounted). This gives a bit of settling in time
558   for an autochanger and avoids spurious messages.
559 - Change all yes/no to yes|no in the manual.
560 - Fix win32 create_file.c typo.
561 - Fix a typo in an error message.
562 17Mar05
563 - Detect if fseeko exists with autoconf. If so, use it 
564   and ftello.
565 - Remove old bacula-*.conf from examples directory (out
566   of date).
567 - Remove latex-fr index files from CVS.
568 - Rewrite code that stops reading the tape so that the
569   tape is marked at EOT, then once the work is done,
570   the EOT flag is removed.
571 - Flush output to file after every send in console.
572 - Make setting VolFiles to smaller number fatal.
573 - Disable Multiple Connections code.
574 - Add patch from user for NetBSD statvsfs() fix to
575   fstype.c
576 - Take more care with errors in acquire.c
577 - Don't run through dvd code in append.c if bad status
578   returned.
579 - Modify code so that an autochanger fault is fatal.
580 - Use dev->print_name() in more places.
581 - Implement dev->can_steal_lock() to simplify code.
582 - Make btape re-read first 10000 records on fill command.
583 - Check error return and fail job from fseeko and ftello
584   in spool.c.  Don't let a -1 slip in as size.
585
586 Changes to 1.37.7:
587 15Mar05
588 - Apply NetBSD patch from kardel in bug 258.
589 14Mar05
590 - Add a second job and a second client to the default
591   bacula-dir.conf file.
592 - Remove old style Include/Excludes.
593 - Fix ANSI labels to put EOF1 and EOF2 after each file mark.
594 - Add Python to SD and FD.
595 12Mar05
596 - Implement IBM labels
597 - Implement EOF and EOV labels at the end of a volume.
598 - Fix a rather ugly problem with the PoolId not getting
599   passed correctly. Now the DIR passes the Pool name and
600   Media Type to the SD, who passes them back when requesting
601   the next Volume. The DIR then looks up the correct PoolId.
602   This takes more time, but always works, AND allows wild
603   card Media Types (i.e. the SD can decide).
604 - The DIR <==> SD protocol has changed.
605
606 Changes to 1.37.6:
607 11Mar05
608 - Fix scanf of PoolId in catreq to handle 64 bit Ids.
609 10Mar05
610 - Add new ua_update.c file and move update_cmd there.
611 - Modify "update slots" to obtain actual number of slots.
612 - Tweak autochanger code to handle new slots request.
613 - Modify autochanger code to lock/unlock around slots and
614   update slots code.
615 09Mar05
616 - Patch the FD so that it does not issue an error message if
617   it attempts to restore the permissions on a Win32 drive.
618 - Edit "Resource-name" (physical-name) for the device name
619   everywhere in the SD.
620 - Remove .linked.tex files in preparation for cutover to
621   using .tex in place of .wml.
622 08Mar05
623 - Copy latest config.sub and config.guess from autoconf.
624 - Try new way of identifying drives with:
625    "resource-name" (physical-name)
626   More work need to a complete conversion.
627 07Mar05
628 - Rework some of the autochanger data so that the DIR has   
629   the number of drives.
630 - Modify the way the Device info is returned so that it comes
631   back as a special message type and can be sent anytime the
632   Device status changes.
633 - Copy the change name and changer command into the device
634   record if none is specified.
635 - Require the change command and changer name to be specified in
636   and AutoChanger resource.
637 - Force all the Media Type records of all devices in an Autochanger
638   to be the same.
639 06Mar05
640 - Add new "run" command to Job resource in DIR. This permits
641   cloning a job as many times as you want.
642 - Pass PoolId to SD on Query request. It is now used in the
643   Find_media catalog request.
644 - Reworked the Device resource in the DIR. Eliminated num_waiting
645   and use_count, but added max_writers, reserved, and PoolId.
646 - This DIR is nolonger compatible with previous SDs.
647 - Add since and cloned keywords to the Console run command
648   to support cloning.
649 - Implemented store_alist_str() to allow multiple string items
650   to be specified in a .conf file.
651 - Added %s (since time) to Job code editing.
652 - Reworked reserving drives in the SD. It now does it much simpler
653   and correctly. 
654 05Mar05
655 - Integrate HP-UX patch from  Olivier Mehani <olivier.mehani@linbox.com>
656 - Fix FD job.c to test correctly for no level.
657
658 Changes to 1.37.4:
659 04Mar05
660 - Change Developers to Developer's Guide as requested by Michael.
661 - Fix developers link in manual
662 - Add additional dcr changes in SD to allow multiple dcrs.
663 02Mar05
664 - Fix a few problems with the MySQL table create in 1.37.
665 - Delete the new tables in the table delete files.
666 - Increase the number of items permitted in a conf table.
667 - Make Director loop over alternative Devices specified in the
668   Storage resource until one is reserved by SD.
669 - Fix storing of StorageId in Media records.
670 - Add AutoSelect = yes|no in bacula-sd.conf
671 - Add Autochanger support to Label command.
672 - Do not autoselect devices with autoselect set false 
673 01Mar05
674 - Implement setting DIR Storage device to Autochanger
675   name. 
676 - Select first available device in Autochanger.
677 - Pass back actual device name used.
678 - Allow Query of AutoChanger.
679 - Modify Query to include name of AutoChanger if 
680   Device belongs to one.
681 - Remove old Pool code in jobq.c
682 - Add Autoselect flag to query and DEVICE class (still
683   need Directive).
684 28Feb05
685 - Lock autochanger script when running.
686 - Mark Volume not InChanger if correct volume is not     
687   autoloaded.
688 - Corrected some typos in the make_xxx_tables.in files.
689 - Made preliminary split of pre-run and run code for each
690   job type. This will permit early opening of SD for reserving
691   drives.
692 - Add offline and autochanger fields to Device Query record.
693 - Correct pthread_mutex_init() for autochanger in SD.
694 - Tweak Makefile for LaTeX manual, plus add nav buttons.
695 26Feb05
696 - Clean up drive reservation system. Add more sanity checks.
697 - Implement a few more methods for the DEVICE class in SD.
698 - Add latex directories to make clean
699 - move DEV_BSIZE to B_DEV_BSIZE to avoid conflicts with
700   certain header files (FreeBSD).
701 24Feb05
702 - Fix an ASSERT that was triggering in stored/acquire.c
703   attempt to fix a bug report.
704 23Feb05
705 - Corrected SunOs to SunOS in btraceback (user submitted).
706 - Applied patch from Roger HÃ¥kansson <hson@ludd.luth.se>
707   to warn the user of defective AWKs during ./configure.
708 20Feb05
709 - Add some changes submitted by a user for HP client build.
710   Not all changes accepted.
711 - Rework code in filed/backup.c to ease #ifdefing and make
712   program flow more obvious.
713 - Split DVD code out of dev.c into dvd.c
714 - Tweak #ifdefing to add back all the performance measurement
715   #defines in version.h
716 - Put most of MTIOCGET code in a subroutine to simplify the
717   mainline code.
718 - Make clean remove old CVS files
719 - Remove unnecessary image files from Latex directory
720 - Implement remaining parts of Storage DB record and
721   its use in the Director.
722 - Implement
723   FullMaxWaitTime, Differential Max Wait Time, and               
724   Incremental Max Wait time in Job resource.
725 - Start work on SD Autochanger code.
726 19Feb05
727 - Add back JobId index for MySQL as default -- speeds up 
728   pruning.
729 - Add more database fields and fix the update scripts to
730   include the new items.
731 - Pass actual level to FD so that ClientRun editing can reflect
732   correct level -- ditto for job status. This makes the DIR
733   incompatible with older clients!
734 - Move jobq.c acquire resources to static subroutine so that
735   the code logic becomes clearer. This is in preparation for
736   actually using the new Device resources.
737 - Fix some lower case problems in sql_cmds.c reported by
738   Debian.
739 - Correct a seg fault in the SD reported by a user. Occurred
740   only when a high debug level was set.
741 - Modify init_dev() in dev.c to take JCR as first arg so that
742   proper error messages can be reported in next item.
743 - Modify the query and use device SD commands to attempt to
744   open the device if it could not previously be opened.
745 - Correct error message for Could not reserve device.
746 - Correct some minor details with Autochanger resource in SD.
747 18Feb05
748 - Fix seg fault if debug level 900 set in SD.
749 - Truncate Win32 child return code to 8 bits.
750 - Remove some old lld's.
751
752 Changes to 1.37.3:
753 16Feb05
754 - Make another attempt at fixing the ClientRunXXX return code 
755   bug on Win32 machines.
756 - Apply ua_status patch from Carsten Paeth <calle@calle.in-berlin.de>
757   which enforces console ACLs in the status command for Jobs.
758 15Feb05
759 - Fix Media LabelDate and FirstWritten to be correctly set.
760 - Fix deadlock in multiple simultaneous jobs.
761 - Fix tape "truncation"/"number of files" after restore bug.
762 10Feb05
763 - Ensure that correct error messages are returned when
764   reading an ANSI label.
765 09Feb05
766 - Modified ANSI label code to preserve any ANSI label 
767   already found by skipping over it rather than rewriting
768   it.
769 - Split the ANSI label code into ansi_label.c
770 - Do not let user relabel an ANSI labeled tape.
771 - Applied a patch for the console help command supplied
772   in a bug report. 
773 - Added some new dev methods. Most notably was
774   set_eof(), which handles setting all the dev variables
775   when an EOF is just read. This is now used most everywhere
776   in the code.
777 07Feb05
778 - Added code to detect that no files were inserted into the 
779   tree for a restore. If a specific JobId was specified, the
780   user has the option of restoring everything.
781 - More progress in implementing 64 bit DB Ids.
782 - Modified the daemon start messages for RH.
783 - Implement update scripts for all database types.
784 - First cut at implementing restore directory (it will not
785   recurse).
786 04Feb05
787 - OK, I think ANSI labels work.
788 - Added Label Type = ANSI|IBM|Bacula to Device resource in SD.
789   If this is set, it will force writing of the appropriate
790   label type.
791 - Added Check Labels = yes|no to Device resource in SD. If this
792   is set, Bacula will check for ANSI labels and accept them,      
793   otherwise, ANSI labels will not be accepted when the tape
794   is first mounted.
795 02Feb05
796 - Second cut ANSI labels.
797 01Feb05
798 - Merge Preben's patch for ACLs and for Mac OS X resource forks.
799 - Some doc updates.
800 - Display more informative message when a device was not
801   found or could not be opened.
802 - Add the sqlite3 database scripts. 
803 - Add some patches for 1.36.1 (note, I have now prepared
804   a 1.36.2 with all the patches and some new features --
805   to be documented).
806 - Some minor doc updates.
807 - Add Arno's baculareport.pl script to the examples directory.
808 29Jan05 -- after vacation
809 - Add support for SQLite3 (it seems to run at 1/2 the speed
810   of SQLite2).  Use --with-sqlite3 instead of --with-sqlite
811   to get SQLite3.
812 - Add target for running qemu to boot Rescue CDROM
813 - Add code to support kernel 2.6 in Rescue CDROM -- does NOT yet
814   boot correctly.
815 - Implement ANSI labels -- not yet tested.
816   This required changes to DB format. No upgrade script yet.
817   Note, more work needed to modify "update" command to handle
818   changing label types, also must restrict volume name lengths
819   to 6 characters.
820 - Add new Device, Storage, and MediaType records to DB. No
821   upgrade script yet.
822 - Add MediaType to bsr file record types. Not yet used in SD.
823 - Permit multiple device specifications in Storage resource in 
824   Dir conf file.
825 - Implement Device resources. Director requests Device resource
826   info from SD on startup. 
827 - Note!!!! DIR->SD incompatible with previous versions.
828 - Remove multiple Storage definitions in Job resource.  One can
829   still specify multiple Storage resources, but they all go into
830   a single alist, and imply sending data to each Storage daemon 
831   simultaneously.
832 - Implement Device query command between DIR and SD.
833 - Allow DIR to "reserve" a Device. It will then be acquired
834   when the FD connects to the SD.
835 - Turn all DIR resources into classes, and implement a few class
836   methods -- more to come.
837 - Turn DEVICE in SD into a class, and implement a number of inline
838   class methods -- more to come.
839 - I had serious problems with ACL errors on my Laptop, and so had
840   to add the following patch:
841   @@ -181,7 +181,7 @@
842       }
843       /***** Do we really want to silently ignore errors from acl_get_file
844         and acl_to_text?  *****/
845   -   return -1;
846   +   return 0;
847    }
848 - Added edit_int64()
849 - Reworked and tested a bit the htable routines.
850 - Major changes to SD acquire.c -- DIR can now reserve devices. Needs
851   lots of testing!!!!
852 - Made a special state code for DVD -- this simplifies the logic
853   of the code, but I probably broke it. Testing needed!!!!
854 - Add AutoChanger resource to SD, but not yet used.
855
856 Changes to 1.37.2:
857 12Jan05
858 - Integrate Preben 'Peppe' Guldberg <peppe@wielders.org>'s
859   acl patch. Fix case where configured but no ACL exists.
860   Rework calling arguments to be shorter and positioned
861   more typically in Bacula usage.
862 11Jan05
863 - Fix scripts/bacula.in to have awk on an environment variable
864   and add comments for Solaris users.
865 - Turn off inet_aton in src/lib/address_conf.c for Win32
866 - Add new files to win32 build and eliminate a compiler warning.
867 - Add sample DVD Device resource to bacula-sd.conf
868 08Jan05
869 - Integrate Nicolas' patch for direct DVD support.        
870 07Jan05
871 - Fix fstype error returns.
872 - Apply Preben's cleanup.patch which puts back much of the
873   cleanup code in src/filed/restore.c
874 06Jan05
875 - Apply all of Preben's patches, but revert to old backup.c
876   and old restore.c in filed. Also turn off code in new
877   acl.c because of errors.  The new code, when fully implemented
878   moves platform specific code into acl.c.
879   One of the patches also implements WildFile and WildDir -- thanks.
880 01Jan05
881 - Implement Python in the SD (no events yet though).
882 - Fix some typos in the previous commit.
883 30Dec04
884 - Enhance CDROM boot to include some documentation at boot time.
885 - NOTE!!!!! The CDROM will not boot 2.6 kernels because the
886     boot sequence has changed significantly. Updates to come
887     later.
888 - Add memtest option to CDROM boot.
889 - Include Nicolas' changes to fix llist JobMedia records.
890 - Make sure that ClientRunBefore/After messages from the program
891   are terminated with a newline. Add strerror to output error
892   messages.
893 - Return program exit status code in Win32.
894 29Dec04
895 - Add memtest86 to Bacula Rescue disk
896 - Enhance Rescue disk startup screen
897 24Dec04
898 - Move some variables to eliminate Solaris 2.6 compiler warnings.
899 - Fix the seg fault at the end of a job in the FD when using
900   old style include/excludes.
901 22Dec04
902 - Apply Preben's ACL patch.
903 - Integrate Preben's restore patch.
904 - Integrate Preben's verify teaks.
905 - Fix doc/latex/Makefile to copy/remove .eps files when building
906   html and web outputs.
907 21Dec04
908 - Fix Bacula so that it does not exit if there is a syntax error
909   in its conf file during a reload command. Bug 182.
910 - Apply fixes suggested for old Solaris networking.
911   Fixes bug 190.
912 - Apply Preben 'Peppe' Guldberg <peppe@wielders.org>
913   three patches that clean up white space:
914   ws.patch.02.strings:
915     Breaks strings that span lines into concatenated strings. I am not sure
916     if you like this one. Other code works with concatenated strings, though.
917   ws.patch.03.trailing:
918     This removes trailing whitespace. No changes resulted from this for
919     my setup.
920   ws.patch.04.leading:
921     This replaces space runs at the start of line with tabs. No changes
922     again.
923 - Fix overriding storage specification to be done
924   through a subroutine.
925 - Fix autoconf so it runs with FC3. 
926 - Add Python4.3 to configure search paths.
927 - Always copy and delete storage definitions into jcr.
928 - Check that VolumeName supplied by Python is valid. 
929   Return 0 if not.
930 19Dec04
931 - Fix undefined in non-Python build.
932 - Update rescue disk to include mkinitrd
933 - Fix umount_drives in rescue disk (only one arg to umount)
934 - Ensure that if SD is manually set in Console, it is used.
935 - Put generate_event on pointer and plug it in init. This
936   permits using it in /lib
937 - Correct despooling size reported to be Job specific rather
938   than for the whole drive.
939 18Dec04
940 - Fix bug 207. jcr use count off by one when manually
941   scheduling jobs.
942 - Remove FNMATCH test in configure.in and always use
943   the one in our library to get the FN_CASEFOLD GNU
944   extensions on all platforms.
945 - While using the rescue CDROM after my computer would not
946   boot, I realized that it would be very useful to have
947   a umount_disks. So, it is not implemented, along with
948   updates to the READMEs and some minor tweaks.
949 - Moved mounting the CDROM in the rescue boot from /cdrom
950   to /mnt/cdrom (more standard location).
951 - Reboot in CDROM rescue should now work -- requires -d
952   option (no write) to work.
953 - Hopefully fixed all the IPV6/4 problems and buffer
954   problems with networking in lib. Bugs 190 and 204.
955   Cleaned up a lot of #ifdefing problems by using routines
956   in address_conf.c
957 17Dec04
958 - Apply Preben 'Peppe' Guldberg <peppe@wielders.org>
959   alist fix patch.
960 - Remove duplicate code from chksum.h (mentioned by Preben).
961 13Dec04
962 - Integrate Tim Oberfoell <oberfoell@web.de> patch to ACLs
963   to handle both the "standard" and "default" ACLs.
964 12Dec04
965 - Integrated Preben 'Peppe' Guldberg <peppe@wielders.org>
966   three cleanup patches (btest, verify, find).
967 - Integrated Preben 'Peppe' Guldberg <peppe@wielders.org>
968   three cleanup patches (backup, chksum, and verify)
969 09Dec04
970 - Integrated Preben 'Peppe' Guldberg <peppe@wielders.org>
971   patch to avoid doing MTIOCGET on OSes that do not support
972   it such as OpenBSD.
973 - Integrated Preben 'Peppe' Guldberg <peppe@wielders.org>
974   patch to add filesystem type matching to FileSets in the
975   Options resource.
976 - Integrated Preben 'Peppe' Guldberg <peppe@wielders.org>
977   patch to add Mac OSX resource fork support (save/restore)
978   to Bacula -- HFS Plus support.
979 - Add FileSet to client Job listing query.
980 06Dec04
981 - Integrated Preben 'Peppe' Guldberg <peppe@wielders.org>
982   patch to backup directories skipped (due to no file system
983   changes or no recursion), and to add a slash to the end
984   of the directory name during the match process.
985 - Implement Jamie ffolliott <jamieff@inline.net>
986   patch to dird_conf.c that enables Multiple Connections and
987   fixes a typo in show. The rest of his patch awaits my suggested
988   changes.
989 05Dec04 
990 - Implement run command in Python
991 04Dec04 
992 - Implement conversion of the manual, and some minor
993   tweaks to the script tags.
994 - Apply a patch supplied by Preben 'Peppe' Guldberg that implements
995   ignore case in wild cards and regexes.
996 - Fix a truncated line in the above patch due to my cut and paste.
997 03Dec04
998 - Fix it so that the InChanger flag is only changed for Volumes
999   in the same Pool.
1000 - Add PIDOF configuration path and apply to bacula.in
1001 - Add user supplied patch to add inet_aton() of old Solaris
1002   systems.
1003 - Require pools to match before allowing multiple simultaneous
1004   accesses to same storage resource.
1005 - Add patch supplied by Martin to correct buffer overrun in
1006   bsnprintf() with no library snprintf().
1007 02Dec04
1008 - Apply user supplied patch that implements No Hard Links.
1009 - Document Python interface
1010 - Add hardlink keyword patch supplied by David R Bosso <dbosso@lsit.ucsb.edu>
1011 01Dec04
1012 - Fix non-python prototypes in dummy routines.
1013 - Add python 2.3 to config search list (user submitted patch)
1014 - Add JobStatus to Python variables.
1015 28Nov04
1016 - Add "python restart" command in Console.
1017 - Make built-in variables table driven.
1018 - First cut of Python Events for Bacula. Director only.
1019   StartJob, EndJob, NewVolume events.
1020
1021 Version 1.36.1 Released 26Nov04:
1022 24Nov04
1023 - Take Dan's fix to the fix_postgresql_tables (thanks Dan)
1024 - Increase Maximum Concurrent Jobs to 20 in SD and FD!
1025 - Fix improper handling of autochanger Volumes that are not
1026   marked InChanger. Bug 170.
1027 22Nov04
1028 - Update authentication failure message to indicate possible
1029   problem with Maximum Concurrent Jobs. Add to doc too.
1030 - Commit PostgreSQL BIGINT fix -- apparently some people didn't
1031   get it.
1032 - Do not use a slot unless it is InChanger in the autochanger
1033   code, otherwise autochanger gets upset not finding the Volume.
1034   Bug 170 (need fix above too).
1035 21Nov04
1036 - Make authentication timeout compile time configurable.
1037   The value is set in src/baconfig.h
1038 - Fix removing items from watchdog queue, which apparently
1039   screwed up if there was more than one item.
1040 - Rework mediaformat part of manual to separate out old
1041   tape format for easier reading.
1042 - Add a lot of debug code to the authentication code.
1043 - Add seconds to the start/end times printed in the job report.
1044 19Nov04
1045 - Fix mutex deadlock in dequeue of messages.
1046 - Add debug code to FD authorization.
1047 18Nov04
1048 - Increase authentication timeouts to 10 minutes.  
1049 15Nov04
1050 - Fix cancel bug in FD on /lib/tls with zero pid in 
1051   pthread_kill.
1052 - Add date/time to all messages.
1053 - Make Qmsg use time message was queued rather than time
1054   printed.
1055 - Indent job output two spaces.
1056 13Nov04
1057 - Fix web page links for new manual.
1058 - Grant postgresql permission to cdimages.
1059 - Correct crash after "list nextvol" "list media" bug 160
1060 12Nov04
1061 - Fix scripts/Makefile.in missing ;\  -- thanks Martin
1062 - A bit of work on btape to keep if from going into infinite
1063   loops when things do not work well, and to print a bit
1064   better info.
1065 11Nov04
1066 - JobDefs Storage resource completely overrode anything
1067   specified in Job resource -- bug 159 -- fixed.
1068 - Fix syntax of renaming postgresql per Dan.
1069 - Add working_directory to be /tmp for wx_console.
1070 10Nov04
1071 - Allow both a JobId and a filename or list of files to be
1072   specified on a restore command line.
1073 - Save old mtx-changer before installing new one: bug 156
1074 - Fix errors in CDROM file pointed out by Scott.
1075 09Nov04
1076 - Fix exepath when Bacula executed without path.
1077 - Move test for socket libraries for Solaris in configure.in
1078   before tcp wrapper tests so that linking works.
1079 - Add "make copy-static-fd" to makefile in CDROM file to
1080   copy existing static fd to CDROM rather than building it.
1081 08Nov04
1082 - More doc updates
1083 - Fix ps command for OpenBSD
1084 - Rework the creation of indexes for SQL -- fall back
1085   to the old code, but document what can be added.
1086 06Nov04
1087 - Add new Daemon message handler in default DIR conf.
1088 05Nov04
1089 - Fix Seg Fault with -D100 in bpipe.c.    
1090 - Fix Seg Fault in run specifying a JobId.
1091 - Make mail from daemon with a Messages Resource use
1092   the MailCommand with editing rather than the default
1093   sendmail.
1094 - Replace Jmsg in dispatch_message() with Qmsg.
1095 - Make edit_job_codes handle NULL jcr.
1096 04Nov04
1097 - Add M_ALERT class and put tape alerts into it.
1098 - Fix Verify count vs found by not double counting files
1099   that are split across files/Volumes.
1100 30Oct04
1101 - Fix count returned from write_bsr_file() to handle multiple
1102   volumes. This fixes most cases of the Verify VolumeToCatalog.
1103 - Cleanup a bit the make clean for the rescue cdrom and remove
1104   unneeded files from the CVS.
1105 28Oct04
1106 - Fixed acquiring a tape so that it does not block all acquires
1107   when operator intervention is needed.
1108 - Platform build script updates from Scott
1109 - Doc updates
1110 - Add patch to force Linux LD_ASSUME_KERNEL to avoid using the
1111   new /lib/tls. This is done in the startup scripts.
1112 - Modify mtx-changer so that it checks for ONLINE while
1113   waiting.
1114 - Modify make_postgresql_tables.in so that EndBlock is stored
1115   as a bigint. Prevents job failures when a disk volume is
1116   larger than 2GB.
1117 24Oct04
1118 - Add grep ONLINE to wait_for_drive() in mtx-changer.in
1119 - More doc.
1120 - Rebuild Scott's new configure