1 Technical notes on version 2.1
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.
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.
25 kes Integrate patch from Sergey Svishchev <svs@ropnet.ru> that fixes
26 bug in migration code where a job that spanned two volumes
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.
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
38 kes Document locking in lock.c. Move lock structures to new file
41 kes Move reservations message lock to lock jcr only this
43 kes Move main SD locking code into lock.c (new file).
44 kes Update Win32 build to include lock.c
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.
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
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
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,
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
78 kes Add Frank Sweetser's tls-test to the regression suite.
80 kes Add Swedish sv.po file
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.
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.
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()
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.
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
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
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.
128 kes Fix seg fault in FD from incorrect digest size.
129 kes Fix argument to non-OpenSSL crypto.c subroutine.
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
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.
145 Cut: 2.1.14 beta (not released)
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.
156 kes Move find_next_appendable_volume() to after acquiring a valid device
157 in reserve.c. This fixes bug #864 -- confirmed by reporter.
159 kes Unable to reproduce bug 872. However added additional testing for
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
168 kes Fix update allfrompool to pass pool name.
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
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
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.
186 kes Fix a seg fault in the PostgreSQL driver dereferencing a NULL pointer.
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.
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.
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.
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.
218 kes Minor refactoring of restore decryption code.
219 kes Add code to smartall.c to detect double free of a buffer.
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.
229 kes Implement Help Browser window for bat.
230 kes Fix reload bug that reset StorageId to zero.
232 kes Fix TLS #ifdefing when TLS turned off.
233 kes Ensure that when labelling a tape with Slot=0 that InChanger
235 kes Use DISTINCT to make MySQL and PostgreSQL uar_list_temp query
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.
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
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.
257 kes Reduce bat connect timeout from 30 to 15 seconds.
258 kes More restructuring and implementing BSOCK class in place of
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
265 kes Fix Verify InitCatalog mysql_escape_string() trashing memory.
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.
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.
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()
285 kes Cleanup incorrect email addresses in bsmtp.
286 kes Make bat display initial messages rather than discard them.
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
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.
298 kes Attempt to fix bsmtp date editing on OSes without %z editing.
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>
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
323 kes Update the po files.
324 kes Fix Verify InitCatalog by making it cache attributes.
326 kes Change name bacula-bat to bat for man 1 page to correspond to
328 kes Check for client and store NULL pointers in status command. This
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
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.
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
346 kes Fix fsf code so that errno is correctly reported.
347 kes Apply migration patch (with changes) from Sergey Svishchev <svs@ropnet.ru>
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.
360 kes Fix an ugly bug where the VolCatBytes were getting updated
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.
369 kes Start implementing bstrerror() in place of strerror().
370 kes Stripping path -- seems to work.
372 kes Prevent door and port files from being restored (mostly
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
380 kes Pass jcr to crypt_sign_decode because it creates a new SIGNATURE
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.
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
391 kes Simplify some of the verify signature code.
392 kes Simplify a few of the alternative returns in the signature
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
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.
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
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
414 kes First cut update job.
415 kes Correct configure to include qmake of src/qt-console directory.
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.
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 !
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
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.
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
442 kes Update Win32 build to include new files, new symbols, and
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.
458 kes Extend idea of Prefer Mounted Volumes to mean a volume about
460 kes Print waiting to reserve a device every 5 mins.
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
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
470 kes Correct usage of MTIOCLRERR ioctl for clearing persistant errors
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
478 kes Change the name of gnome-console to bgnome-console to make it
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).
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
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.
502 kes Locking debug level tweaks in SD.
503 kes Tweak new Volume code.
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.
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.
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.
520 kes Fix gui/bacula-web/images files in svn.
521 kes Turn on FreeBSD/OpenBSD code to set EOT model on tape.
523 ebl Fix a bug in batch mode (in string escape)
524 kes Correct migration prune SQL typo that crept in in a
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.
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.
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.
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
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
551 kes Suppress the using database message in the .sql command.
552 kes Correct an incorrect bnet_tls_client prototype -- patch from Martin.
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
559 ebl Add a BUSY handler to sqlite to be able to use multi_db = 1 with
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.
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.
573 kes Correct Qmsg() that was not updated correctly when committing a
574 previous change (probably the recent TLS patch).
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
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
587 kes Switch from POOLMEM to POOL_MEM (a real class) in ua_prune.c and
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
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
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
606 ebl batch mode cleanup bscan-test is ok now.
607 kes Implement SD code to check length of disk volume before appending.
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
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
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.
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().
635 kes Apply fix from for building wx-console on the Mac from
637 kes Implement new select mechanism for GUI programs.
638 kes Reorganize initialization of stackedWidgets in bat.
640 kes Add updated nagios plugin supplied by Christian Masopust.
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).
652 kes Add smartctl call to bacula-sd.conf as an example of getting
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.
660 kes Correct virtual changer check which was backwards. This caused
661 volumes to be unloaded into slots already occupied.
663 kes Apply Command ACL filter to JobId list in restore command.
664 kes Correct typeo in var.c patch.
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)
670 kes Correct SQLite log table index as reported by Luca Berra.
672 ebl fix fifo stuff, bacula tries to rewind the fifo... Thanks to Andreas
674 kes Begin implementing new comm signals for API.
675 kes Fix a few places in lib/message.c where the open fd may
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.
681 kes Add LANG=C to autoconf/randpass so it works with languages other
682 than English. Fixes bug #788.
684 ebl Revert ClientRunBeforeJob to old position as in 1.38.X.
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
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
701 RecyclePool = Scratch
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.
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.
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
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.
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.
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.
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.
751 kes Update projects list.
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
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
763 kes Added a mutex around getting and setting Volume information
764 so that multiple simultaneous jobs will single thread.
766 Switch to using Subversion
767 kes Remove src/pygtk-console/ from configure
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.
775 kes Test on job_canceled() and sd_msg_thread_done inside
776 loop starting the message thread to avoid a race condition.
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)
782 kes Clarify some stored/acquire messages to indicate if the
783 problem is with read or append.
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).
810 kes Fix maxruntime bug #621.
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
816 kes Fix open of SQLite3 db where user does not have write permission
817 so that DIR does not crash. Fixes bug #761.
819 kes Add back missing @ in Win32 Makefile.
820 kes Change 'Device not configured to autolabel' from INFO
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.
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.
831 kes Create patches/2.0.1-restart.patch. Fixes bug #755.
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.
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
843 kes Do not release source pointers when restarting a failed job.
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
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
857 kes Add code to indicate when the SD is spooling, spool wait, and
858 despooling as requested by Alan Brown.
860 Version 2.0.0 released: 4 January 2007