]> git.sur5r.net Git - bacula/bacula/blob - bacula/technotes-2.1
The button was not showing up correctly on on of my development machines. I
[bacula/bacula] / bacula / technotes-2.1
1               Technical notes on version 2.1
2
3 General:
4 07Jul07
5 kes  Correct a problem when selecting a scratch volume and moving
6      it to another pool that lost some columns.
7 kes  Tweak some code in ua_update.c to use POOL_MEM instead of POOLMEM.
8 kes  Enhance Autochanger error messages to include Volume and device name.
9 kes  Rework prune_volumes() code to take account of InChanger flag,
10      and to handle recycling volumes going to the Scratch pool and
11      current pool because the RecyclePool directive.
12 kes  Implement a better and more efficient db_get_query_dbids() to
13      handle creating and passing back a list of DBIds.
14 03Jul07
15 kes  Start work on new more efficient DBId subroutine. First use
16      will be for recycling volume to Scratch inchanger.
17 kes  Increase number of JobIds in pruning from 1000 to 10000. 
18      This to be replaced by above routine.
19 kes  Begin implementation of building Qt4 on Win32.
20 kes  Correct typo in fix I added for bad TLS shutdown.
21 kes  Pull 2.0.3 patches into patches directory.
22 kes  Update Release notes.  Include qt-console in line count.
23 kes  Update Projects file.
24 30Jun07
25 kes  Integrate patch from Sergey Svishchev <svs@ropnet.ru> that fixes 
26      bug in migration code where a job that spanned two volumes
27      was migrated twice.
28 29Jun07
29 kes  Implement new BST_DESPOOLING blocked state. Change from locking
30      during despooling in SD to blocking. This means that other threads
31      can work with the device structure, in particular the reservations
32      system while despooling.
33 28Jun07
34 kes  Fix return in reservation message queue that missed clearing
35      the jcr lock (implemented 26Jun07 below).
36 kes  Rename a number of dev methods to make locking function names
37      a bit clearer.
38 kes  Document locking in lock.c. Move lock structures to new file
39      lock.h.
40 26Jun07
41 kes  Move reservations message lock to lock jcr only this
42      fixes bug #861.
43 kes  Move main SD locking code into lock.c (new file).
44 kes  Update Win32 build to include lock.c
45
46 Release 2.1.22 beta
47 26Jun07
48 kes  Dirk committed the qwt library code for drawing graphs in bat.
49 kes  Tweak install of qwt so that it is integrated with ./configure.
50 25Jun07
51 kes  Fix HAVE_BATCH_INSERT to be HAVE_BATCH_FILE_INSERT, pointed
52      out by Eric (my typo).
53 ebl  Fix configure.in to get batch mode enable
54 kes  Return correct string from authenticate.cpp in bat when connecting
55      to Dir.
56 kes  Apply patch suggested by Frank Sweetser to fix bug #888 --     
57      spurious line drops when using TLS.  
58 kes  Do not file reparse points when restoring a file that already
59      exists -- Win32.
60 24Jun07
61 kes  Implement Windows reparse points -- similar to directories, but
62      we do not descend into it. This is a first cut. They seem to 
63      be backed up, but restore is not yet tested.
64 kes  Remove restore_blocking in tls code when shutting a socket to leave
65      it in blocking mode. Hopefully this will fix the encryption bug  
66      reported by Frank Sweetser.
67 kes  When opening a file for backup, tell the OS that we are going to
68      read it sequentially -- optimization.
69 kes  Change variable names in authenticate_director() to not conflict
70      with member names in bat. Caused great confusion with compiler,
71      but no warnings.
72 23Jun07
73 kes  Queue openssl error messages in case of comm problem.
74 kes  Do shutdown() call if socket terminated.
75 kes  Remove some duplicated code in tls.c
76 kes  Move more of the bsock member variables into private and access
77      them with methods.
78 kes  Add Frank Sweetser's tls-test to the regression suite.
79 22Jun07
80 kes  Add Swedish sv.po file
81 21Jun07
82 kes  Don't print clock skew message in FD if less than 3 seconds diff.
83 kes  Add a bit of VSS info to status client.
84 kes  Implement a first cut of Vista VSS, using Win2003 code.
85
86 Release: 2.1.20 beta
87 20Jun07
88 kes  Fixed bug #886 (multidrive autochanger: SD doesn't use drive with
89      loaded tape but uses first drive).
90 kes  Fixed bug #807 Restore encrypted backup failed on Windows 2003
91      This was indeed a Win32 issue.
92 19Jun07 
93 kes  Simplify search of autochanger for in-use Volume.  
94 kes  Fix exit condition of check for in-use volume.  kes Remove
95      inappropriate my_postgresql_free_result() in db_close()
96      routine.
97 kes  Fix bad return in FD when encryption signature not found.
98      Probably caused a crash.
99 kes  Inhibit missing encryption signature error messages for 
100      file types where no signature computed.
101 kes  Correct inverted check on autochanger in reservation system.
102 kes  Tweak debug code in autochanger reservation.
103 18Jun07
104 kes  Add some additional locking in the cats directory in subroutines
105      that modify packet variables called from batch insert.
106 kes  Rework how dcrs are allocated. new_dcr() can now be called
107      with an existing pointer, and it will simply clean it up.
108      This allows the reservation system to test various different
109      devices, and will permit easy device changes.
110 kes  A bunch of changes all over to handle new new_dcr() calling
111      sequence.
112 kes  Work more on the Volume management in the SD. Remember Volumes
113      for tape drives and for autochangers (even virtual disk changers).
114 kes  When looking at the Volume list to reserve a drive, handle 
115      autochanger names correctly by interating through the changer 
116      devices.  Also call the Director to see if a Volume is suitable
117      for the current job.
118 kes  Fix some bugs in bscan. Make sure all media records are written.
119      Make sure that valid JobMedia records are written for disk files.
120      Previously they were completely wrong.
121 kes  Move source tar files for depkgs-mingw32 to www.bacula.org so
122      that the URLs don't change and so that the developers will all
123      work off the same copy. Rebuild from scrach.
124 kes  Upgrade Win32 SQLite3 from 3.3.8 to 3.3.17.
125
126 Release: 2.1.18 beta
127 16Jun07
128 kes  Fix seg fault in FD from incorrect digest size. 
129 kes  Fix argument to non-OpenSSL crypto.c subroutine.      
130
131 Release: 2.1.16 beta
132 16Jun07
133 kes  Remove a few malloc()s from the encryption code.
134 kes  Use the class calls to bsock in filed/backup.c and restore.c in
135      place of the old bnet_xxx code.
136 kes  Implement code that does an on the fly calculation of the  
137      signing digest during restore of encrypted files.  It makes
138      a best guess at the algorithm, and if it is not correct, will
139      then revert to the old code which reads the file after it is
140      restored.
141 kes  Implement at least one missing crypto stream in stream_to_ascii()
142 kes  Apply patch from William <chowmeined@gmail.com> that fixes bug
143      #877 where a reload with bad syntax causes Dir to exit.
144
145 Cut: 2.1.14 beta (not released)
146 14Jun07
147 kes  Do not free a volume on a tape drive until another volume is
148      mounted and read, or the autochanger unloads the volume.
149      This should help the SD re-use volumes that are already mounted,
150      and should fix bug #886.
151 kes  Apply patch from user brettedgar that allows gnome2-console include
152      the OpenSSL libraries, and hence work with SSL.  Fixes bug #885.
153 kes  Apply patch from Lucien Weller that fixes day of week calculation
154      because of DST flag problem. Fixes bug #887.
155 10Jun07
156 kes  Move find_next_appendable_volume() to after acquiring a valid device
157      in reserve.c.  This fixes bug #864 -- confirmed by reporter.
158 09Jun07
159 kes  Unable to reproduce bug 872. However added additional testing for
160      integer.
161 kes  Bug #874 resolved by documenting SQLite limitations.
162 kes  Bug #882 resolved by documenting mtx-changer script for new drive code.
163 kes  Bug #881 resolved by removing typo in mtx-changer script.
164 kes  Made Frank Sweetser's wiki the official Bacula wiki with his
165      approval. Added a link to the wiki on the web page, and implemented
166      a backup from http://paramount.ind.wpi.edu                                          
167 08Jun07
168 kes  Fix update allfrompool to pass pool name.
169 07Jun07
170 kes  Convert to pure GPL v2 license.
171 kes  Fix sscanf problems reported by Peter Buschman that caused
172      a bus error on Solaris.
173 kes  Rework (simplify) the select prompt in bat.
174 kes  Move get_jobid_from_tid() into lib and create a 
175      get_jcr_from_tid().
176 kes  Use get_jcr_from_tid() to conver all tls Emsg() to Jmsg().  This
177      should definitely fix the problem of lost error messages in the
178      encryption code.
179 kes  Remove over zellous addition of FSFE copyright in a few eggxxx files.
180 kes  Eliminate tcpd.h from the project. Enclose the #include from the
181      library with extern C ...
182 kes  Add print of signal name when a signal is trapped.
183
184 Release: 2.1.12 beta
185 04Jun07
186 kes  Fix a seg fault in the PostgreSQL driver dereferencing a NULL pointer.
187 03Jun07
188 kes  Implement SQLITE3_INIT_QUERY in version.h that can do an initial
189      query for SQLite3. Use it to set PRAGMA synchronous = OFF. This
190      makes SQLit3 run 30 times faster, though a bit less safe.
191 kes  Implement --with-batch-insert in configure and detection of thread
192      safe libraries.  It is on by default, but turned off if no thread
193      safe library (e.g. SQLite 2) is available.
194 02Jun07
195 kes  Fix Bacula PostgreSQL buffer overruns.
196 kes  Do better checking for NULL results returned from PostgreSQL;
197      implement retry for failed queries; clear results buffer after
198      failed query. Hopefully this will correct the PostgreSQL failures.
199 01Jun07
200 kes  Implement algorithm to handle only one appendable volume with
201      Prefer Mounted Volumes = no.
202 kes  Fix a Bacula PostgreSQL bug dereferencing a NULL pointer      
203      returned from a query.
204 kes  Make volume lock recursive.
205 kes  Implement an additional volume reservation algorithm that
206      starts by considering all reserved volumes then uses the
207      old brute force algorithm of searching the resources to
208      find a suitable device.
209 kes  Add new reservations debug code and refine the old code.
210 kes  Update the win32/dll/bacula.defs file.
211 29May07
212 kes  Tweak reservations algorithm to permit a few more cases, i.e.
213      volume reserved, but on different drive, ...
214 kes  Enhance SD status to include Pool and Media Type for drive in a
215      more readable format (a bit longer). 
216 kes  Fix PostgreSQL double free.
217 28May07
218 kes  Minor refactoring of restore decryption code.
219 kes  Add code to smartall.c to detect double free of a buffer.
220 27May07
221 kes  Add < > around %r in from field on mail command of bacula-dir.conf.in
222      so that bsmtp will create a correct email address (mailbox only).
223 kes  Modify 'memory' command so that the buffers are listed as 'In use'
224      to avoid confusion with Orphaned buffers.
225 kes  I reworked the OpenSSL include/lib flags to be handled in     
226      the standard Bacula way, which should fix bug #863 concerning
227      non-standard OpenSSL libraries.
228 26May07
229 kes  Implement Help Browser window for bat.
230 kes  Fix reload bug that reset StorageId to zero.
231 25May07
232 kes  Fix TLS #ifdefing when TLS turned off.
233 kes  Ensure that when labelling a tape with Slot=0 that InChanger
234      is not set.
235 kes  Use DISTINCT to make MySQL and PostgreSQL uar_list_temp query        
236      the same.
237 kes  Add StartTime to final uar_sel_jobid_temp query so that we can
238      add DISTINCT (required by PostgreSQL).
239 kes  Implement BSOCK authenticate_director() method. Eventually will
240      authenicate all daemons.
241 kes  Move several more functions into the BSOCK class.
242 24May07
243 kes  Add code to tell the OS that we no longer need a cached
244      file that we were reading. In findlib/bfile.c.  Also,
245      only cache files that we are reading. Thanks to
246      Tobias Oetiker <tobi@oetiker.ch> for the idea.
247 kes  Tweak to bsmtp to eliminate compiler warnings on Win32.
248 kes  Implement script to automatically generate cats and dll .def
249      files for Win32 dll.
250 kes  Update README.mingw32 to include new .def file generation.
251 kes  Correct typo in UTF-8 error message as reported by:
252      jhernandez <julianhernandez@gmail.com>
253 kes  Add additional sm_check() code on debug level 1.
254 kes  Set default debug level to 1.
255 kes  Trap SIGABRT in attempt to get traceback.
256 23May07
257 kes  Reduce bat connect timeout from 30 to 15 seconds.
258 kes  More restructuring and implementing BSOCK class in place of
259      old bnet.c code.
260 kes  Remove a few unnecessary malloc() tests in crypto code.
261 kes  Turn off crypto calls for > 128 bits in crypto.c if HAVE_SHA2
262      not defined. Bug reported by Allan Black <Allan.Black@btconnect.com>
263 kes  Remove duplicate HAVE_CRYPTO definition in config.h.in
264 22May07
265 kes  Fix Verify InitCatalog mysql_escape_string() trashing memory.
266      Make buffer bigger.
267 kes  Fix Verify InitCatalog. The attributes were not pointing to the
268      correct saved location.
269 kes  Implement message callback so that GUI is sure to get all
270      daemon messages. Currently displayed in a dialog in bat.
271 kes  Ignore SIGUSR2 (Bacula timer) in bat.
272 kes  Apply regress patch from bug #859 to allow regress to work 
273      with Solaris compiler.
274 21May07
275 kes  Begin adding TLS support to bat.
276 kes  Apply UTF-8/16 patch from Yves Orton <demerphq@gmail.com> to
277      clean up lex.c and make it more readable.
278 20May07
279 kes  Move more bnet functions into the BSOCK class.
280 kes  Fix tray-monitor by not requiring a timer interval in bnet_connect()
281 kes  Complete change of berrno strerror() method to bstrerror() 
282
283 Release: 2.1.10 beta
284 18May07
285 kes  Cleanup incorrect email addresses in bsmtp.
286 kes  Make bat display initial messages rather than discard them.
287 16May07
288 kes  First cut of adding .mod to the run command.    
289 kes  Implement auto display of messages in bat.
290 kes  Enhanced preferences to allow all Bacula output to be
291      displayed in bat.
292 15May07
293 kes  Try to make bsmtp date routines more generic.
294 kes  Fixed bug #856 autochanger documentation.
295 kes  Rework bsmtp date editing for Win32. This fixes bug #854.
296 kes  Add new cats entry point so Win32 builds.
297 14May07 
298 kes  Attempt to fix bsmtp date editing on OSes without %z editing. 
299      Fixes bug #854.
300 kes  Do better checking for the MySQL 64 bit libraries looking for both
301      .a and .so libraries.
302 kes  Add a kludge for Ubuntu's non-standard locations for MySQL -- allow
303      /usr/include/mysql/mysql.h AND /usr/lib/... rather than /usr/lib/mysql/...
304 kes  Require the thread safe version of MySQL during configure. Thanks
305      to Andre Noll for pointing this out.
306 kes  Ensure that calls to find_jobids_from_mediaid_list() check count before
307      continuing in migration code.
308 kes  Apply implementation of tray-monitor font derived from gnome-console
309      submitted by Andreas Piesk <a.piesk@gmx.net>
310 13May07
311 kes  Eliminate important memory loss in SQLite
312 kes  Fixed the batch insert MySQL thread specific data that was not
313      being freed. See cats/mysql.c:db_thread_cleanup().
314 kes  Fix restore before command.
315 kes  Convert old hdr.name to name() in a few places.
316 kes  Implement update jobid command.
317 kes  Return all time_t dates in db_get_job_record()
318 kes  Stop watchdog in SD earlier.
319 kes  Put Pool just after Storage in please mount message.
320 kes  Fix pointer usage bugs in Verify InitCatalog pointed out by
321      Eric.
322 12May07
323 kes  Update the po files.
324 kes  Fix Verify InitCatalog by making it cache attributes.
325 11May07
326 kes  Change name bacula-bat to bat for man 1 page to correspond to
327      Makefile.
328 kes  Check for client and store NULL pointers in status command.  This
329      fixes bug #845.
330 kes  Fix non-ssl build so that it works (add JCR *jcr to crypto structures).
331 kes  Fix sign extended editing of %p.
332 kes  Clean out a little old #ifdefing in cats/mysql.c
333 10May07
334 kes  If time diff between DIR and FD is more than 600 seconds convert
335      INFO message to WARNING.
336 kes  Implement heap size display in status for all daemons.
337 kes  Attempt to fix MySQL db open memory loss (not successfull).
338 kes  Don't set SIGKILL and SIGSTOP neither can be trapped.
339 kes  Eliminate memory loss in MySQL (possibly other SQLs) during
340      Query. This looks like a MySQL but but by doing extra releases,
341      the memory goes away.  This should fix bug #847.
342 09May07 
343 kes  When backup fails, cancel SD before waiting for sd termination.
344 kes  If SD is waiting for FD to connect during cancel, wake up the 
345      thread.
346 kes  Fix fsf code so that errno is correctly reported.
347 kes  Apply migration patch (with changes) from Sergey Svishchev <svs@ropnet.ru>
348 08May07
349 kes  Make lack of Pool directive in Job an ERROR_TERM rather than FATAL
350      so that Bacula doesn't later stumble into a seg fault.
351 kes  Use the term Restore Client in the restore Job report.
352 kes  Merge patch from Sergey Svishchev <svs@ropnet.ru> that preserves 
353      the original job's FileSetId.
354 kes  Merge patch from Sergey Svishchev <svs@ropnet.ru> that implements
355      spooling in migration jobs.  Not yet tested.
356 kes  Merge patch from Jorj Bauer <jorj@seas.upenn.edu> that implements
357      reading conf file from a pipe.  However, do it with open_bpipe()
358      rather than popen.  Not yet tested.
359 07May07 
360 kes  Fix an ugly bug where the VolCatBytes were getting updated
361      during a restore.
362 kes  Implement bconsole memory command that prints current memory
363      usage, plus smartalloc dump.
364 kes  Clarify some error messages in backup, admin, and migrate.
365 kes  Shrink label dialog to smaller size.
366 kes  Invert Cancel OK buttons on restore to be OK Cancel.
367 kes  More strerror() to bstrerror() conversions.
368 06May07 
369 kes  Start implementing bstrerror() in place of strerror().
370 kes  Stripping path -- seems to work.
371 04May07
372 kes  Prevent door and port files from being restored (mostly
373      Solaris stuff).
374 kes  Free an unreleased buffer in compat code.
375 kes  Change console Job name from *Console* to -Console- to eliminate
376      Win32 filename problems.  Put Win32 path separator when creating
377      Console file.  This fixes bug #846.
378 kes  Change berrno::strerror() to berrno::bstrerror().  Not yet full
379      implemented.
380 kes  Pass jcr to crypt_sign_decode because it creates a new SIGNATURE
381      structure.
382 kes  Define b_errno_win32 on Linux to be zero so that it can be or'ed in
383      to force Win32 error message.
384 03May07
385 kes  First cut strip path. The data should be passed to the FD,
386      but nothing is done with it yet.
387 kes  Enhance the digest and signature routines in the crypto
388      library to accept a JCR and to use it to print error messages
389      so that they will go in the Job report rather than the daemon's
390      messages.
391 kes  Simplify some of the verify signature code.
392 kes  Simplify a few of the alternative returns in the signature 
393      code.
394 02May07
395 ebl  Use only POSIX regex instead of GNU regex in breg.c for
396      File relocation. It fix broken freebsd compilation.
397 kes  Convert all other Dir files to use new ua class message 
398      routines for bat.
399 kes  Tentative fix for missing digest signature in bug 807.
400 kes  Correct handle problem in new win32_ftruncate routine.
401 kes  Convert ua_purge.c and ua_update.c to use new ua class
402      message routines for bat.
403 29Apr07 
404 kes  Correct incorrect installation of LICENSE in Win32 installer.
405 kes  Display LICENSE at the beginning of the Win32 install.
406 kes  Attempt to correct the need for the png files to be installed 
407      for bat.
408 kes  Reapply my bat.conf install script in qt-console. I think I 
409      editted bat.pro instead of bat.pro.in and it was lost.
410 kes  Apply CentOS patches someone sent me. Checks for /var/run/subsys,
411      the /var/lock/subsys for subsysdir.  Also corrects typos in the
412      doc.
413 28Apr07
414 kes  First cut update job.
415 kes  Correct configure to include qmake of src/qt-console directory.
416 26Apr07
417 kes  Make restore job yes/mod/no print in one command so GUI works.
418 kes  First cut implementing backup and restore client.
419 kes  Correct editing in Verify output that caused a seg fault.
420 25Apr07
421 kes  Insure that bat.conf is not overwritten during installation.
422 kes  Fix important bug in db_sql_query() in mysql.c.  It was introduced
423      while I was implementing migration in March 2006 !
424 24Apr07
425 ebl  Cleanup file relocation, using char *RegexWhere instead of
426      char *where + bool where_use_regexp
427 kes  Update some manpages and add bat manpage.
428 kes  Make a first cut at converting bacula.spec.in for bwx-console
429      and bgnome-console.
430 kes  Apply patch from John Goerzen to add hostname as fourth argument
431      to make_catalog_backup script.
432 kes  Fix typos I introduced into bsmtp.c
433 kes  Make pm_strxxx() routines handle input of NULL pointer. This
434      is to protect from NULL pointers returned from SQL databases.
435 kes  Correct typo in bacula-sd manpage as pointed out by John Goerzen.
436 kes  Add more debug to FIFO code -- fix fifo regression test.
437 23Apr07
438 kes  Implement posix_fadvise in FD, and for reading spool files in SD.
439 kes  Add thread timer to bnet_connect() to break from OS if wait time
440      expires.
441 22Apr07
442 kes  Update Win32 build to include new files, new symbols, and    
443      renamed files.
444 kes  Implement socket level heartbeat (tcp_keepidle)
445 ebl  Commit File relocation patch
446 kes  Make bat have 'make install' target.
447 kes  Warn during install if old gnome-console binary found.
448 kes  Warn during install if old wx-console binary found.
449 kes  Add -8 option to bsmtp command line to add content type utf-8. 
450      Fixes bug #809. (Character coding problem in bsmtp).
451 kes  If < is found in target (from, to, cc) then do not enclose the
452      target in < >  in bsmtp. Fixes bug #772  (malformed address).
453 kes  When printing certain items in dbcheck, stop after 300000.
454      Fixes bug #822. (dbcheck loops).
455 kes  Incorrect status in Dir after waiting for mount with poll set.
456      Fixes bug #825.
457 21Apr07 
458 kes  Extend idea of Prefer Mounted Volumes to mean a volume about
459      to be mounted.
460 kes  Print waiting to reserve a device every 5 mins.           
461 20Apr07
462 kes  Don't call close_part in label.c if tape and relabel.
463 kes  Don't free volume if busy in close() -- should help with
464      bug 801.
465 ebl  Fix #824 RunScript bug (After script could be execute twice)
466      Now, Before Script can use RunsOnSuccess and RunsOnFailure options
467      By default (like before) RunsOnSuccess=true and RunsOnFailure=false
468      Add a regression script to test RunScript
469 19Apr07
470 kes  Correct usage of MTIOCLRERR ioctl for clearing persistant errors
471      on Solaris.
472 18Apr07
473 kes  The bgnome-console (gnome-console) and bwx-console (wx-console) are
474      deprecated. No additional bugs will be fixed, and they will be dropped
475      in a future release (probably 2.4.0).
476 kes  Change name of wx-console to bwx-console to make it more Bacula
477      unique.
478 kes  Change the name of gnome-console to bgnome-console to make it
479      more Bacula unique.
480 14Apr07
481 kes  Some time in March, a Feature Request with patch from Jorj Bauer
482      <jorj@seas.upenn.edu> was committed by Landon (with my approval).
483      It implements:
484      The ability for the director to validate a Client (FD) CN against
485      an arbitrary set of patterns rather than the hostname, with
486      A new 'TLS Allowed CN' set of directives which are implemented
487      in the Client resource.  Then pattern matching is used in place
488      of hostname matching against the Certificate's CN. As an example, we
489      have certificates which (a) use a local CA, and (b) have a CN of the
490      form client_123.
491 kes  Add new/changed entry points to Win32 build
492 kes  Create unaccepted-projects for projects that are not accepted.
493 kes  Simplify locking in the reservations system.
494 kes  Add more debug code in reservations.
495 kes  Make sure error condition on reserving a volume is handled correctly.
496 kes  Correct handling of volume_in_use.
497 kes  Correct handling of initializing a device.
498 kes  Move handling of broadcasting releasing a device into release_device().
499 kes  Correct attaching dcr to dev so that it is only done if device
500      is properly initiated.
501 12Apr07
502 kes  Locking debug level tweaks in SD.
503 kes  Tweak new Volume code.
504 11Apr07
505 kes  Add exec external-command [wait-seconds] to bconsole. This
506      executes the external-command.  Note! normally external-command
507      should be enclosed in double quotes.
508 kes  Turn the .die command on only if DEVELOPER is defined -- i.e.
509      it should normally be off in a production system.
510 10Apr07
511 kes  Implement die command for SD so that we can force it to dump.
512 kes  Implement SD lock debug code.
513 kes  Implement new algorithm for keeping Volume list in SD.  It
514      is now owned by the device.
515 04Apr07
516 kes  Implement new code for freeing in use volumes that should 
517      resolve if not all, some of the problems of multiple drive
518      tape conflicts described in bug 801.
519 03Apr07
520 kes  Fix gui/bacula-web/images files in svn.
521 kes  Turn on FreeBSD/OpenBSD code to set EOT model on tape.
522 02Apr07
523 ebl  Fix a bug in batch mode (in string escape)
524 kes  Correct migration prune SQL typo that crept in in a    
525      recent 2.1.x change.
526 01Apr07
527 kes  Move bnet_despool() into class in bsock.c
528 kes  Modify job report to include director name and Build OS.
529 kes  Move drop root privilege and check_catalog() before fork.
530 kes  Add update database scripts (version 9 to 10) to updatedb directory.
531 31Mar07
532 ebl  Check size and age of each file after its backup to see if
533      it has changed during backup, if 'checkfilechanges' is set.
534      The FD will do an extra check (stat(2)) after
535      each file backup. mtime, ctime and size are compared with
536      'before backup' information. If time or size mismatch, an
537      error message will be generated. You must upgrade FD to use it.
538 30Mar07
539 kes  Make database name and user configurable
540      --with-db-name=xxx --with-db-user=xxx
541 kes  Add back database type to message.c for debugging.
542 29Mar07
543 kes  Implement dir_sql() which issues an SQL query.
544 kes  Modify bat medialist to use dir_sql() and do some minor C++
545      formatting as well as eliminating a number of pointers, simplifing
546      the code.
547 28Mar07
548 kes  Fix some of the mtx-changer grep commands for tape label readers.
549 kes  Convert a number of bsendmsg into the appropriate send/warning/error
550      message class calls.
551 kes  Suppress the using database message in the .sql command.
552 kes  Correct an incorrect bnet_tls_client prototype -- patch from Martin.
553 27Mar07
554 kes  Add context menu for floating a window.
555 kes  Some minor cleanup and name changes in qt-console
556 kes  Add doing mt setblk 0 in Win32 mtx-changer.
557 kes  Apply Martin's bug fix to move definition of ENODATA for 
558      FreeBSD to bsock.c
559 ebl  Add a BUSY handler to sqlite to be able to use multi_db = 1 with
560      sqlite2 and sqlite3.
561 26Mar07
562 kes  More pruning cleanup.
563 kes  Turn on wait_for_drive by default in mtx-changer.
564 kes  Turn on Batch insert code by default as it now passes regression.
565 kes  Add ./configure --enable-bat to enable building of Bat.   
566      No install yet though.
567 25Mar07
568 kes  Implement a new .sql command for bat.
569 kes  Implement code to turn off pruning in obtaining the next volume.
570      Pruning is turned off for the status dir command, but turned on
571      for SD requests and for the list nextvolume command.
572 24Mar07
573 kes  Correct Qmsg() that was not updated correctly when committing a
574      previous change (probably the recent TLS patch).
575 23Mar07
576 kes  Write new subroutine is_volume_purged() that explicitly checks
577      if the Volume is purged, and if so marks it as such. This should
578      resolve problems reported about needing to mount twice to recycle
579      volumes.
580 kes  Rewrite pruning algorithm to do more work in the SQL engine, and
581      to pass a list of JobIds to be deleted to SQL.  Also, minimize the
582      amount of duplicated code.     
583 kes  Do volume pruning only for the Media Type desired (reduces pruning time
584      if multiple Media Types are in the same pool).
585 kes  Implement more detailed info in the Job report for the Bacula version
586      and architecture.
587 kes  Switch from POOLMEM to POOL_MEM (a real class) in ua_prune.c and
588      ua_purge.c.
589 ebl  Add bbatch tool to bench database and insert mode.
590      Fix sql quote stuff in batch mode
591      Fix sql stuff for mysql
592 22Mar07
593 kes  Correct problems with am/pm scheduling. Fixes bug #808.
594 kes  Implement new prunning code that prunes up to 1000 jobs at
595      the same time.  The same technique can be applied to a number
596      of other prune/purge subroutines.
597 kes  Add an insanity check when starting a new tape job to ensure
598      that the tape position has not been changed. If so fail the
599      job.
600 kes  Fix Win32 build for dlls to add the folllowing:
601      src/lib/bsock.c -- new file with new entry points
602      src/lib/dlist.c  -- new entry points
603      src/cats/sql_create.c -- new entry point
604      src/cats/sql_cmds.c -- new DATA item exported
605 21Mar07
606 ebl  batch mode cleanup bscan-test is ok now.
607 kes  Implement SD code to check length of disk volume before appending.
608 18Mar07
609 kes  Correct return status on db_batch... routines.
610 kes  Add call to db_write_batch_file_records() to migration code.
611 ebl  Fix AfterJob timing
612 kes  Move the checking of the database in initializion of the Director
613      to after we drop privileges.  This avoids the need for both root
614      and bacula access to the DB.
615 kes  Correct a misplaced variable definition in src/filed/backup.c
616 kes  Correct how the new batch insert db_create_attributes_record()
617      uses the arguments.  Caused a seg fault in bscan.
618 kes  Implement lock() and unlock() methods in DEVICE class.
619      Implement block() and set_block(xx) methods in DEVICE class.
620 kes  Modify bnet_connect() so that it uses time() to check for the
621      wait time expiring (on some OSes, some system calls may not
622      return immediately).
623 kes  Modify Verify to obtain the previous JobId when it is actually
624      running rather than at schedule time (as it was in 1.38.x).     
625 kes  Fix src/job.c to handle MaxWaitTime correctly.  This should
626      fix bug #802.
627 kes  When checking pid in pid file, continue running if the pid is
628      the same as ours. This occurs on IRIX after a system crash.
629      Fixes bug #797.
630 10Mar07
631 kes  Extend new GUI API.
632 kes  Make the ua structure a class, and implement send_msg(),
633      error_msg(), warning_msg(), and info_msg().
634 08Mar07
635 kes  Apply fix from for building wx-console on the Mac from
636      bug #798.
637 kes  Implement new select mechanism for GUI programs.
638 kes  Reorganize initialization of stackedWidgets in bat.
639 07Mar07
640 kes  Add updated nagios plugin supplied by Christian Masopust.
641 05Mar07
642 kes  More bat implementation.
643 kes  File migrate bug with Pool Occupancy using mediaid instead
644      of jobids.  Fixes bug #795.
645 kes  Fix orphaned buffers in filed backup and verify due to
646      crypto buffers not freed during errors.  Fixes bug #789.
647 kes  Extend new GUI api code to tree commands.
648 kes  Ensure that tree and dot commands check console ACLs.
649 kes  Permit marking directory with trailing slash.
650 kes  Allow 20 console connections (instead of only 10).
651 04Mar07
652 kes  Add smartctl call to bacula-sd.conf as an example of getting
653      tape alert info.
654 02Mar07
655 kes  Modify jobq.c to let simultaneous restore jobs run. This may 
656      cause them to fail if they cannot get a drive.
657 kes  Add Client Connect Wait to Storage daemon to permit users to
658      modify the time the SD waits for a FD connection.
659 29Feb07
660 kes  Correct virtual changer check which was backwards. This caused
661      volumes to be unloaded into slots already occupied.
662 28Feb07
663 kes  Apply Command ACL filter to JobId list in restore command.
664 kes  Correct typeo in var.c patch.
665 27Feb07
666 kes  Don't let Bacula prune File or Job records for the current Job.
667 kes  Fix variable substitution pad + inc bug reported (with patch)
668      in bug #791.
669 26Feb07
670 kes  Correct SQLite log table index as reported by Luca Berra.
671 24Feb07
672 ebl  fix fifo stuff, bacula tries to rewind the fifo... Thanks to Andreas
673 22Feb07
674 kes  Begin implementing new comm signals for API.
675 kes  Fix a few places in lib/message.c where the open fd may 
676      not be zeroed.
677 kes  Continue implementing lib/bsock.c (real class).  Make jcr,
678      who, host, and port private. There are new methods to access
679      them for non-class use. This required touching a number of files.
680 21Feb07
681 kes  Add LANG=C to autoconf/randpass so it works with languages other
682      than English.  Fixes bug #788.
683 20Feb07
684 ebl  Revert ClientRunBeforeJob to old position as in 1.38.X.
685      This fixes bug #780
686      You will not be able to generate Include/Exclude list any more.
687      It will be fixed soon.
688      If you want to use this, you can apply
689      trunk/bacula/patches/testing/clientrunbeforejob_can_generate_include_exclude_list.patch
690 19Feb07
691 kes  Restore of sockets created false error messages because Bacula
692      no longer restores sockets, but the code was still trying to
693      set the attributes on a non-existent file. Reported by a user.
694 ebl  finish RecyclePool feature
695      Media will takes Pool.RecyclePool
696      when moving from Scratch to a Pool or when user will do
697      update volume=xxx frompool
698      To use it, add RecyclePool = aPool to your Pool resource
699         Pool {
700                 Name = Default
701                 RecyclePool = Scratch
702                 ...
703         }
704      TODO: update manual
705 kes  Expand new BSOCK class adding signal() and new BNET signals.
706 kes  Begin enhancing the dot commands adding a new API function
707      that returns more information and will make it easier
708      to interface to the Director from a program.
709 18Feb07
710 kes  Make DEVICE fd private. Its new name is m_fd, and can be
711      obtained with dev->fd() outside the class.  This is the
712      first of many DEVICE members to be made private.
713 kes  Implement Michael Renner's idea on having a virtual disk
714      changer. I made some minor modifications (e.g. I did not
715      implement the Virtual Changer directive, but simply set
716      the Changer Command to an empty string.
717 17Feb07
718 kes  Implement a BSOCK send() method that writes the whole record
719      in a single write() request rather than in two.
720 ebl  add update volume=xxx recyclepool=yyyy
721      volume takes recyclepool from pool when using update volume=xxx from pool
722 16Feb07
723 kes  Fix encryption deblocking bug, which caused some restored files
724      to be truncated. This fixes bug #763.
725 kes  Add FD event sequence order prepared by Eric -- for RunScripts.
726 kes  Fix 12am/pm bug as reported in bug #782 -- scheduler problem.
727 13Feb07
728 kes  Apply Eric's ClientRunScriptAfter patch to 2.0 and 2.1.
729 ebl  Use btime_t instead of uint64_t in media patch.
730 11Feb07
731 kes  Optimize the use of the database a bit in the Status dir command.
732      Only open it when needed, ensure that if any previous database
733      was opened, it is closed.
734 10Feb07
735 kes  Correct VolCatBytes bug from media patch.
736 kes  Apply patch from bug #612 by Rudolf Cejka to speedup pruning
737      in the case of orphaned records.
738 kes  Modify dbcheck to handle orphaned JobMedia, Path, Filename,
739      and File records in 300K chunks to be more efficient. This
740      idea came from Juan Luis Frances (if I remember right).
741 kes  Apply Eric's scratch patch that moves a purged Volume to
742      the RecyclePool.  Question: how is RecyclePool set? what
743      happens to the ScratchPool?
744 kes  Apply Eric's media patch that collects read/write media
745      times as well as byte counts.  This patch requires a
746      simultaneous upgrade of the DIR and SD.  Note, there
747      should be some way to turn off timing. I'm not sure
748      times are in Bacula units.
749 kes  Apply Eric's batch-insert patch.
750 09Feb07
751 kes  Update projects list.
752 08Feb07
753 kes  Implement Include/Exclude file lists in FD as dlists using
754      the new dlistString class. This permits efficiently having
755      large include/exclude lists and completes project Item 25.
756 kes  Fix dird/ua_cmds.c so that a cancel command checks if the
757      console is authorized to cancel the job.  This fixes bug 
758      #767.
759 kes  Modify SD so that the VolCatJobs medium record is updated
760      at the beginning of a Job rather than the end.  This
761      fixes bug #775 where exceeding MaxVolJobs caused jobs
762      to fail.
763 kes  Added a mutex around getting and setting Volume information
764      so that multiple simultaneous jobs will single thread.
765 07Feb07
766      Switch to using Subversion
767 kes  Remove src/pygtk-console/ from configure
768 06Feb07
769 kes  Delete src/lib/btree.c from win32 build, then add rblist.c
770      plus the entrypoints.
771 kes  Apply patch supplied that corrects debug print
772      in canceling jobs for max run time.  Supplied as
773      part of bug #621, which was previously fixed.
774 05Feb07
775 kes  Test on job_canceled() and sd_msg_thread_done inside
776      loop starting the message thread to avoid a race condition.
777      Fixes bug #771.
778 kes  Remove rl_catch_signal from console.c as it conflicted
779      with the header definition. Fixes bug #765.
780 ebl  Fixes bug #766 about RunsOnClient = Yes (case sensitive)
781 04Feb07
782 kes  Clarify some stored/acquire messages to indicate if the
783      problem is with read or append.
784 02Feb07
785 kes  Fix memory leak with storage ids in cats/sql_get.c
786 kes  Terminate watchdog earlier to avoid reference to released
787      memory -- reported by Jason Austin.
788 kes  Move closing the database from jobq.c to the director daemon
789      termination routine. This fixes memory leaks for shadow jobs
790      (i.e. migration jobs).
791 kes  Free up the unique jobid chain items in migrate.c.  This fixes
792      a memory leak problem.
793 kes  Convert some ugly looking for statements to use foreach_alist
794      in findlib/find.c.  This will facilitate converting the structures
795      to use dlist (for large include/exclude lists).
796 kes  Fix a bug in the btree.c and btree.h routines, then rename them
797      rblist and add them to be built in src/lib.  Include some new
798      methods written by Rudolf Cejka that make the code more readable
799      (hides some of the ugly casting).
800 kes  Add set_next() and set_prev() methods which make the code much more 
801      readable. Also add a new dlistString class that facilitates storing
802      strings in dlists.  To be used in the large include/exclude lists.
803 kes  Make some trivial modifications to lib/tree.h that use rblist
804      rather than dlist for storing the tree links. This was suggested
805      by Rudolf Cejka.  The result of this is that the restore tree now
806      uses red-black binary trees rather than simple linked lists. This
807      should give rather dramatic speed improvements for directories
808      contining large numbers of directories/files (more than 10000).
809 28Jan07 
810 kes  Fix maxruntime bug #621.
811 26Jan07
812 ebl  Implement the include JobID in spool file name project.
813 kes  Reorder projects file in order determined by Jan 2007 vote.
814 kes  Implement item #12 on project list -- quick release of FD by
815      the SD.
816 kes  Fix open of SQLite3 db where user does not have write permission
817      so that DIR does not crash. Fixes bug #761.
818 25Jan07
819 kes  Add back missing @ in Win32 Makefile.
820 kes  Change 'Device not configured to autolabel' from INFO
821      to WARNING.
822 kes  Fix jobq.c to restart failed jobs when Reschedule Times = 0 
823      which should restart an indefinite # of times.
824 kes  Fix configure --help to print --with-mysql[=DIR]. Same for
825      other DIR specifications.
826 23Jan07
827 rn   Fix msvc build problems. Fix bacula.dll exports for msvc build.
828      Fix path quoting in SQLite scripts.
829      Fix problems with SHGetFolderPath.
830 19Jan07
831 kes  Create patches/2.0.1-restart.patch. Fixes bug #755.
832 18Jan07
833 kes  Fix Job restart on error bug that promotes an Inc to a Full
834      backup.  This should fix bug #755.
835 kes  Add qt-console and first cut of code.
836
837 Version 2.0.1
838 12Jan07
839 kes  Fix Bacula->Documentation link on Win32 to point to index.html
840      instead of bacula.html. Fixed bug #750.
841 kes  Return JobId in db_get_job_record() when JobId==0. This should
842      fix bug #741.
843 kes  Do not release source pointers when restarting a failed job.
844 11Jan07
845 kes  Add dynamic dll entry point for SHGetFolderPath to Win32 code.
846      This *should* fix bug #747.
847 kes  Modify winbacula.nsi to substitute with g bin_dir_cmd. Should fix
848      bug #742.
849 09Jan07
850 kes  Modify USTORE constructor to set an empty store_source string, 
851      and don't copy the store_source string in a cancel.  Hopefully
852      this will fix Arno's seg fault, bug #744.
853 kes  Add back code to disable conio in configure. Fixes bug #743.
854 kes  Correct the Options scanner in the FD to correctly handle  
855      SHA1 option, which was eating the next option.  Reported by    
856      Sebastien Guilbaud.
857 kes  Add code to indicate when the SD is spooling, spool wait, and 
858      despooling as requested by Alan Brown.
859
860 Version 2.0.0 released: 4 January 2007