From 130fca9a8654c45a02d415d8bdbe4981603fea98 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 4 Jun 2008 15:58:34 +0000 Subject: [PATCH] Move up to 2.5 git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7108 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/ChangeLog | 516 +++++++++++++++++- bacula/ReleaseNotes | 151 ++++- .../patches/{ => 2.2.x}/2.2.7-fpformat.patch | 0 .../{ => 2.2.x}/2.2.7-jobdefs-migtype.patch | 0 .../2.2.7-mysql-batch-timeout.patch | 0 .../{ => 2.2.x}/2.2.7-old-postgresql.patch | 0 .../patches/{ => 2.2.x}/2.2.7-reserve.patch | 0 .../{ => 2.2.x}/2.2.8-bacula-conf.patch | 0 .../patches/{ => 2.2.x}/2.2.8-deadlock.patch | 0 .../patches/{ => 2.2.x}/2.2.8-jobmedia.patch | 0 .../{ => 2.2.x}/2.2.8-strip-path.patch | 0 .../patches/{ => 2.2.x}/2.2.8-strippath.patch | 0 bacula/src/version.h | 2 +- bacula/{technotes-2.3 => technotes-2.5} | 0 14 files changed, 646 insertions(+), 23 deletions(-) rename bacula/patches/{ => 2.2.x}/2.2.7-fpformat.patch (100%) rename bacula/patches/{ => 2.2.x}/2.2.7-jobdefs-migtype.patch (100%) rename bacula/patches/{ => 2.2.x}/2.2.7-mysql-batch-timeout.patch (100%) rename bacula/patches/{ => 2.2.x}/2.2.7-old-postgresql.patch (100%) rename bacula/patches/{ => 2.2.x}/2.2.7-reserve.patch (100%) rename bacula/patches/{ => 2.2.x}/2.2.8-bacula-conf.patch (100%) rename bacula/patches/{ => 2.2.x}/2.2.8-deadlock.patch (100%) rename bacula/patches/{ => 2.2.x}/2.2.8-jobmedia.patch (100%) rename bacula/patches/{ => 2.2.x}/2.2.8-strip-path.patch (100%) rename bacula/patches/{ => 2.2.x}/2.2.8-strippath.patch (100%) rename bacula/{technotes-2.3 => technotes-2.5} (100%) diff --git a/bacula/ChangeLog b/bacula/ChangeLog index 29bdd02d68..d7cc682e29 100644 --- a/bacula/ChangeLog +++ b/bacula/ChangeLog @@ -1,6 +1,520 @@ - Technical notes on version 2.2.x + Technical notes on version 2.4.x General: +Release Version 2.4.0 +04Jun08 +kes Update version to reflect the magnitude of the SD changes. +03Jun08 +kes Make sure to clear JS_WaitMedia when operator mounts a Volume. + This fixes bug #1095. +31May08 +kes Add create_postgresql_database.sql to Win32 installer. Should + fix problem reported by Juilio Monteiro. +kes Get correct slot when auto unloading a device. This fixes bug + #1086. +30May08 +kes Fix multiple media restore. +kes Make DEVICE Slot private and access it via a method. + Allows better control over when it is set and cleared. +kes Fix possible seg fault if SQL error. +28May08 +kes Add debug code to SD. +kes Fix renaming a Volume, which used the wrong Volume name. +26May08 +kes If operator has rewind tape, print warning, release tape and + try once more. If tape is positioned somewhere, something went + wrong, so mark the tape in error and try once more. Previously + this error was fatal, now it produces an error message. +kes Ensure correct volume name displayed during restore +kes Ensure that Volume is mounted for restore. +25May08 +kes Fix a few more Coverity reported problems. + +Beta Release Version 2.2.10-b4 +24May08 +kes Enhance a couple of SD debug messages. +kes Tweak unload flag setting and ensure it is set during swap. +23May08 +ebl Fix #1091 about bad output in estimate command. +21May08 +kes Modify autochanger locking to attempt to avoid race + conditions. +kes Make sure device not busy before doing label command. +kes Display open() errors except when polling. Previously too + many were suppressed. This should fix bug #1070. +kes Fix Win32 reparse points. Bacula will not recurse into any + reparse point directory, including mount points, unless the + directory is explicitly mentioned at the top level (same as + with Unix). A file that is linked to another file will be + backed up -- much as Unix does for hardlinked files. + This fixes bug #1041. +20May08 +kes Remove double quotes from ChangeLog and ReleaseNotes +kes Remove StorageId test when pruning and recycling (Eric's changes). +kes Remove old form of locking when getting volumes -- causes deadlock. +17May08 +kes Fix buffer overruns detected by Coverity. + +Beta Release Version 2.2.10-b3 +12May08 +kes Implement --without-qwt +kes Fix layout of restore tree dialog +kes Add configure bat QWT libraries, so that bat can be built + with or without the QWT libaries. +11May08 +kes Apply batfix bat cleanup patch from Riccardo. +kes Make sure we unload the right slot when swapping. +08May08 +kes Improve SD reserve debug code. +kes Testing an improvement to free up volumes no longer in use. + +Beta Release Version 2.2.10-b2 +03May08 +kes Rework SD acquire for read to handle autochanger Volume + swapping. +kes Implement regression that explicitly tests swapping a Volume + from one drive to another. +kes Enhance disk-changer to detect most error conditions. +kes Fix SD code so that it properly swaps a Volume between drives. + This fixes bug #1083. +01May08 +kes Prevent a Volume that is being swapped from being freed from + the volume list. This will most likely fix, at least partially, + bug #1083. +kes Fix strippath so that it does not get a buffer overrun and crash FD. + This fixes bug #1078. +kes Make inability to change owner/group when creating a dir only a + warning rather than an error. +28Apr08 +ebl Fix SQL query in migration code +19Apr08 +kes Force unload of volume when wrong volume mounted in SD. +17Apr08 +kes Fix bat seg fault at termination. +kes Add Bacula generated version to bat about box. + + +Beta Release Version 2.2.10-b1 +16Apr08 +kes Permit multiple simultaneous restores -- experiment. +15Apr08 +kes Backport development stream SD reservation system changes. + See below: +=== +16Apr08 +kes Move final volume swapping code to DCR method and + call it from acquire_for_read(). +kes When wrong volume is mounted during read, unload_autochanger. +14Apr08 +kes Stop searching for Volumes in SD askdir if DIR returns the + same volume name twice in a row. +13Apr08 +kes Tweak the swap Volume from one drive to another code so that + it now seems to work. +kes Resolve several problems with recycling that broke the new + code (these problems are in 2.2.9 as well). +kes Remove the volume lock when calling the sysop code. +kes Don't mark a reserved volume with no writers as unused otherwise + jobs fail. +12Apr08 +kes Rework class structures for VOLRES, DCR, and DEVICE to make + the method names a bit more logical, and for more logically + handling the responsibilities. +11Apr08 +kes Remove redundant code in terminating the scheduler that just + causes a seg fault in many cases. +kes Cleanup releasing a volume and make it a DCR method. +kes Improve algorithm for detecting pre-reserved volume and + swapping volumes. +10Apr08 +kes Tweak volume swapping code so it works. +kes Correct name overloading in mount.c +kes Replace released flag in VOLRES with reserved and add access + methods for the VOLRES class. +kes Prevent volume from being released while being swapped. +kes Refactor parts of stored/mount.c +09Apr08 +ebl Add sanity checks for VolWriteTime and VolReadTime +ebl Take care of bad clock changes while computing VolWriteTime + and VolReadTime. This should fix or limit #1066 +kes Correct error string numbers in dird/catreq.c +kes Restructure reserving, acquiring, and mounting volumes. Calls to + autochanger are deferred for mount.c -- simplifes the code. +08Apr08 +kes Do not prune any running job. It just fails the job. +kes Lock the volumes when changing dev->reserved_device and marking + the volume unused otherwise the device can get reserved by + another job before the volume is released, thus blocking it. +=== + +Beta Release Version 2.2.9-b7 +14Apr08 +kes Close bat console windows first to eliminate error message + from the notifier. +kes Remove useless code in Scheduler that causes seg fault on + termination. +kes Correct some SD catalog request error messages. +kes Don't allow pruning of any running job. +kes Turn off code in read_record that causes a seg fault in the SD + when reading past an EOS_LABEL. +kes Turn off unloading the autochanger in reserve.c as it just + causes problems. +kes Lock volumes when unreserving a device. +kes Do not mark volume unused when recycling. +kes When acquiring, don't mark volume unused if it is reserved (busy). + +Beta Release Version 2.2.9-b6 +06Apr08 +kes Eliminate ./configure warning on po directory +kes Fix bug #1063, reuse of freed ptr in list nextvol. +kes Release regex compile buffer in filed/job.c +kes Add proper type of const char in sql_create.c +kes Turn off debug in daemon termination routines +kes Move free_volume_list() before devices are freed in stored.c +kes Fix reference to uninitalized stack variables in bregex.c. + This should correct bug #1067. +04Apr08 +kes Fix possible seg fault in SD when freeing a volume entry. +02Apr08 +kes Apply patch from bug #1069 that corrects spurious error messages + when ACLs enabled on SGI but no ACL exists. +ebl Fix a storage deamon segfault at debug level 500. + +Beta Release Version 2.2.9-b5 -- not released + +Beta Release Version 2.2.9-b4 +01Apr08 +kes Re-enable code to remember last volume mounted on a non-tape + Autochanger. +kes Add patch supplied in bug #1068 that fixes a SD crash when using + a Virtual autochanger. +kes Generate correct JobMedia records during spooling/despooling when + running concurrent jobs. Thanks to Tom Ivar Helbekkmo + for excellent analysis and testing. + +Beta releae version 2.2.9-b3 +27Mar08 +kes Rework certain SD locking based on gdb tracebacks of deadlocks + sent by Eric. This code now uses only the volume_lock() rather + than the reservations lock when at EOM and acquiring a new + volume. +kes Ensure only one exit point in several subroutines. + +Beta release version 2.2.9-b2 +24Mar08 +kes Fix to initial tape drive open to release the volume name + +Beta Release Version 2.2.9-b1 +22Mar08 +kes Fix to JobMedia fix. +kes Fix bug pointed out by Peter Much that causes the StorageId to + be updated when reading a tape (during migration, it could have + been incorrectly set to the write StorageId). +21Mar08 +kes Implement autostart scripts for Debian +20Mar08 +kes Fix mtx-changer.in for broken Debian mt program. +19Mar08 +kes Massive commit of all fixes and back ports to create 2.2.9 +18Mar08 +kes Apply doc fix from bug #1062. +kes Resolve crash and improper restore wx-console Win32 restore + GUI. Fixes bug #1065. +kes Update Win32 wxWidgets to latest version. +kes Attempt to do correct handling of Win32 mount points. Should + fix bug #1046. +kes Fix Win32 FD backup/restore memory leak due to improper termination + of BackupRead/Write. This fixes bug# 1038. +kes Add const to AIX prototype for initgroups() +27Feb08 +kes Undo bug #1047 heap overrun fix as it is not correct. +14Feb08 +kes Fix creating first JobMedia record during Migration to include + proper index. This caused slow restores of migrated jobs. +10Feb08 +kes Fix bug #1047, which had a heap overrun when stripping certain paths, + and do not strip paths on symbolic links. +kes Set catalog backup database and user name from values specified on + the ./configure line. +ebl Apply patch to correct bug #1031, about wrong pool source information + in job report. + +Release Version 2.2.8 +25Jan08 +kes Apply patch from Martin to correct bug #1040, bscan sets existing + ClientId to zero. +kes Fixed important spelling error in doc -- bug #1045. +23Jan08 +kes Move initialization of read/write res lock earlier in the code. + This fixes the crash with a null conf file. This fixes bug + #1030. +kes Redefine CURES in lib/parse_conf to be URES and move it all + into lib/parse_conf.c -- this responds to bug #1042, but does + not fix it. The fix is not to compile with FORTIFY_SOURCE. +kes Backport fix de-referencing a NULL pointer in the scanner from + the trunk SVN. I don't think this was reported as a bug. + +Beta release Version 2.2.8 +09Jan08 +kes Re-enable the new job code editing (%f). +08Jan08 +kes Fix bsnprintf for float point numbers. I broke recently when + parameterizing some variables. +03Jan08 +kes Move Heartbeat documentation from Job to Director resource. + This fixes bug #1033. +02Jan08 +kes Fix existing switch drive SD code to call autochanger to release + any old volume. This must be done to keep the autochanger from + releasing subsequently newly reserved volumes in doing a close(). + This should possibly fix bugs #1032 and #1018. +kes Apply big backport of current SVN SD code that corrects a number + of race conditions. This is a first step in fixing bug #1018. +29Dec07 +ebl Fixes bug #1028 where 'Selection Type' option was not usable + with JobDefs. + + +Release Version 2.2.7 +24Dec07 +kes Partial back out (disabled) %f job code editing because it + does not build on Win32. +kes Fix seg fault Frank Sweetser reports in regression testing + on his systems. The problem was that the original author of + bsnprintf.c did not take into account the side effects of + using ++x in the argument to a #define. +14Dec07 +kes Apply patch from Michael Stapelberg + that implements double quoting include names in conf files, + and also allows piping input by having the first character + be a vertical bar (|). +kes Apply patch from Bastian Friedrich + that implement %f in RunScripts to pass the FileSet name. +kes Skip leading | when lex input comes from a pipe as suggested + by Michael Stapelberg . +13Dec07 +kes Apply patch for bsmtp Win32 daylight savings time fix supplied by + Nerijus Baliunas +10Dec07 +kes This patch corrects a problem where the maximum concurrent storage + jobs counter gets out of sync during restore jobs causing jobs to + 'wait on max Storage jobs'. This patch fixes bug #1009. +08Dec07 +kes Add new include to postgresql.c suggested by Marc Cousins so + that it compiles correctly with pgre version 8.3. Also fix + misuse of %x with pointer (should be %p). +03Dec07 +kes This patch fixes bcopy so that it produces correct Volumes. + It fixes bug #1022. +kes This patch eliminates spurious output to the console during a VerifyVolume + job that contains encrypted data. It fixes bug #1024. +02Dec07 +kes This patch prevents the 'status dir' command from trying to use a scratch + volume and possibly moving it from one pool to another. This patch fixes + bug #1019. +30Nov07 +kes Fix --archivedir addition to configure. Replace it with + --with-archivedir in configure.in This fixes the regression + test builds. +kes This patch fixes bug #1012 where the job is canceled because + of Max Run Time exceeded when the job has not yet started. +29Nov07 +ebl Apply Richard Mortimer patch that fixes #1016 when there are more than + one 'part' to write. Instead of each part being stored on disk, + written to DVD, then deleted from disk, all parts are written to disk, + and only the last is written and deleted from disk. +27Nov07 +kes Correct typos in disk-changer.in +25Nov07 +kes This patch fixes the status command to include the formating string for + JS_AttrInserting. It fixes bug #1021. +kes This patch should fix the Mac OS X build problem on the latest + Darwin, where sys/types.h was not included correctly (apparently + due to a change in the Mac headers). The solution was to explicitly + ensure that it is defined for the ./configure. + This patch also has a rebuild of configure that includes the Debian + qt4 patch to check for qmake-qt4. This patch fixes bug #1020. +kes This patch should ensure that queued messages to the console are + displayed as soon as possible. It should fix bug #1007, but has been + reported not to work. +14Nov07 +kes This patch fixes the infinite loop when trying to increase the + maximum number of volumes in a Pool during the add command. + This patch fixes bug #1008. + +Release Version 2.2.6 +09Nov07 +kes Get fix for joblist bug in bat from trunk. +04Nov07 +kes This patch fixes bug #1003 where putting the message output from + a Verify job into the catalog results in a recursive loop. The problem + seems to show up only with postgresql (to be verified). +02Nov07 +kes Fix bug #942 where lots of emails where generated when the heartbeat + interval was low and Bacula wanted a different tape from the one in + the drive. +26Oct07 +ebl Apply 2.2.5-lastwritten.patch to fix the LastWritten field + which was updated during a restore (or a reading migration) bug #982 +24Oct07 +ebl Use qmake-qt4 instead of qmake when available (debian system). +22Oct07 +kes Add a security warning to src/cats/make_catalog_backup.in indicating + that passing the password via the command line (arg 3) is insecure. + This responds to bug #990 (it doesn't fix it). +kes Apply 2.2.5-postgresql-errors.patch +kes Remove unneeded File table index on JobId, which is already + present as the first index of another multi-index. +19Oct07 +kes Set default debug_level to zero. This corrects bugs #991 and #993. +kes Fix a crash in bat when it cannot connect to the Director for example + if the Director is not running. +16Oct07 +kes Activate Close button on tray-monitor window. This fixes + bug #986. +12Oct07 +kes Fix spurious warning message printed when creating a volume with + a LabelFormat. This fixes bug #976. + +Release Version 2.2.5 +09Oct07 +kes Add JobId in place of Job name in all the Jmsg() output. +kes Correct the APP_DESC for the Win32 storage service (remove an e). +06Oct07 +kes Add new SD despooling attributes and Dir inserting attributes + job status codes. This fixes bug #961. +kes Fix Win32 drive display in bat version browser. Fixes bug #962. +05Oct07 +kes Fix doc issue. This fixes bug #963. +kes Fix listing performance problems in bat. Pointed out by + Chris Howells. +ebl Fix replace on restore. This fixes bug #969 +kes Fix bat code that tests for Win32. This should fix bug #968 +kes Query 5 list wrong Vol after migration. This fixes bug #960 +04Oct07 +kes Correct lib/Makefile.in to include enh_fnmatch.o that was removed + in back porting from 2.3.x +03Oct07 +kes Backport almost 4000 lines of 2.3 code that fixes a number of bugs. + The details are included in the notes in this file. +28Sep07 +kes Backport 2.3 code that fixes: it fixes incorrect or incomplete error + messages; it fixes a problem opening the SQLite3 database when multiple + simultaneous jobs were running; it fixes a bug with certain versions of + MySQL where batch inserts failed because of table name character case + (upper/lower) differences. +kes Fix race condition that drops final block written to volume. + This happens in rare cases with multiple simultaneous jobs + when the Volume fills. This fixes bug #964. May be related + to bug #935 and possibly #903. +27Sep07 +kes Fix FD->SD authorization failure, which was due to spurious + wakeups from a pthread_cond_timedwait(). Simply check the + predicate before continuing. This fixes bug #953 +dvl Add new configuration item --archivedir +dvl Adjust regression tests to use tmp not /tmp. This will allow + multiple concurrent runs of the regression tests. +28Sep07 +kes Fix race condition that drops final block written to volume. + This happens in rare cases with multiple simultaneous jobs + when the Volume fills. This fixes bug #964. May be related + to bug #935 and possibly #903. +kes Eliminate more strerror() and replace with bstrerror(). +kes Remove BSD getopt and replace with unrestricted IBM version. +kes Fix Win32 build for changed calling sequences. +27Sep07 +kes Fix FD->SD authorization failure, which was due to spurious + wakeups from a pthread_cond_timedwait(). Simply check the + predicate before continuing. This fixes bug #953. +kes Add const char where needed (more to do). +26Sep07 +kes Setup SQLite busy handler before doing queries. Fixes bug #967. +kes Don't overwrite error message in check_tables_version. + Fixes bug #966. +kes Unlock batch insert tables with same calls used elsewhere. +kes Allow starting 59 jobs a second. +kes Make SD session key more random. +kes Add retry for SQLite opening db if it fails. Probably helps + for bug #967. +kes Suppress extra error messages during batch insert failure. + Fixes bug #966. +kes Put some FD auth code on dbglvl rather than fixed. +kes Return insert attributes error message in db msg buffer to avoid + false error messages. Helps fix bug #966. +kes Separate batch init error messages. Probably helps fix bug #966. +kes If Dir gets an error during inserting attributes, cancel SD. + This reduces unnecessary error messages. +24Sep07 +ebl Cleanup batch insert code. Probably fixes bug #965. +23Sep07 +kes Turn off some code when batch insert not enabled. +kes Edit FD name in connect error messages. +22Sep07 +kes Add code to handle tray monitor separated from Win32 FD. +kes Fix display of Win32 tray monitor after reboot. Fixes bug #952. +20Sep07 +kes Fix ANSI tape labeling. This fixes bug #954. +kes Increase the max block size to 4MB fixes bug #957. +kes Apply 2.2.4-poll-mount fix, that resolves bug #908 where a tape + is not properly mounted (recognized) during a poll. +kes Apply 2.2.4-verify patch that resolves bug #958. A Verify catalog + Job that has differences reports Verify OK. + +Release Version 2.2.4 +14Sep07 +kes Increase size of name string when FD making connection to SD. + May fix bug #953. +13Sep07 +kes Add code to try to fix bug #908. +kes Add waits to multiple exit detection code to try to force pid + file to always be deleted. +kes Restore good dev.tar.gz to rescue set appropriate binary property. + This fixes bug #950. +kes Fix seg fault in error exit of acquire_for_read after unsuccessfully + trying to switch drives by checking for blocking before unblocking. + Fixes bug #906. +kes Cancel storage daemon in all cases where FD reports error. This + should fix virtually all cases of bug #920. +12Sep07 +kes Fix error message that was clobbered when Dir tells SD it does not + have write permission on Volume. This should fix a minor point + in bug #942, but not the main problem. +kes Add code to cancel job in SD if FD connection fails. This should + fix bug #920. +kes Add code in FD exit to prevent loops and a crash on FreeBSD. +kes Fix migration code to get correct Volume name with multiple volumes + by skipping |. Fixes bug #936. +kes Implement patch supplied by Landon to fix bug #944 where using + TLS with bconsole uses 99+% of the CPU. +kes Note, you need GTK >= 2.10 to be able to link the Tray Monitor + program. +kes Move patches into patches directory. +11Sep07 +ebl Fix bug #946 about 'bacula-dir -t' which doesn't works + as expected. +09Sep07 +ebl Using 'm' in bconsole will show messages like before, + and not memory usage. + +Release Version 2.2.3 +kes Note, you need GTK >= 2.10 to be able to link the Tray Monitor + program. +09Sep07 +kes Fix bug #935, and probably also bug #903 where files were not + restored. MediaId was not properly set in JobMedia record after + a Volume change. +07Sep07 +kes Add ./configure search in qwt-qt4 for qwt package +kes Apply Martin Simmons patch that should turn off the new API usage + when batch insert is turned off allowing building on older + PostgreSQLs. + +Release Version 2.2.2 +04Sep07 +ebl Detect if new PosgreSQL batch insert API is present. +kes Correct incorrect mempool call causing Director crash. +sb Update spec files for 2.2.1 release + Release Version 2.2.1 30Aug07 kes Update POTFILES.in diff --git a/bacula/ReleaseNotes b/bacula/ReleaseNotes index 3652d33ea0..5a84df3a03 100644 --- a/bacula/ReleaseNotes +++ b/bacula/ReleaseNotes @@ -1,16 +1,124 @@ - Release Notes for Bacula 2.2.9 + Release Notes for Bacula 2.4.0 - Bacula code: Total files = 498 Total lines = 167,596 (*.h *.c *.in) - 82 new files, 41,221 new lines of code, 208,380 lines of change from 2.0.3 + Bacula code: Total files = 500 Total lines = 188,654 (*.h *.c *.in) This Director and Storage daemon must be upgraded at the same time, but they should be compatible with all 2.0.x File daemons, unless you use some of the new features that affect the FD. In other words, you should not have to upgrade all your File daemons when you upgrade. There is -no database upgrade needed from version 2.0.x to 2.2.0. +no database upgrade needed from version 2.0.x to 2.2.0 nor from version +2.2.x to version 2.4.0 -Version 2.2.9 is a bug fix to version 2.2.8: +================== Warning !!!!!! ========================== +As of Version 2.4.0, the Win32 FD should not descend into +any reparse point directory or reparse mount points unless the +specified directory is explicitly mentioned at the top level of +FileSet (as with Unix). A file that is linked to another file will +be backed up, much like Unix hardlinked files. If you want +reparse directories backed up, you must explicitly include them +in your FileSet. +============================================================== + +This release consists mainly of a number of bug fixes since 2.2.x +but most importantly, a rewrite of significant portions of the +Storage daemon reservation and autochanger code. This rewritten +code is simpler, more stable, and works much better, particularly +with multiple drive autochangers than the prior code did. That +said, there are still a number of issues to be resolved. Note, +the new code has not been tested in manual volume mount situations. + +Bugs fixed: + 1095, 1086, 1091, 1070, 1041, 1083, 1078, 1066, 1068, 1038 + 1062, 1065, 1046, 1047, 1031 + +New features: +- You can now build bat without the QWT libraries. Use + --without-qwt as a ./configure option. + +Release Version 2.4.0 +- Update version to 2.4.0 to reflect the magnitude of the SD changes. +- Make sure to clear JS_WaitMedia when operator mounts a Volume. + This fixes bug #1095. +- Add create_postgresql_database.sql to Win32 installer. Should + fix problem reported by Juilio Monteiro. +- Get correct slot when auto unloading a device. This fixes bug + #1086. +- Fix possible seg fault if SQL error. +- Fix renaming a Volume, which used the wrong Volume name. +- If operator has rewind tape, print warning, release tape and + try once more. If tape is positioned somewhere, something went + wrong, so mark the tape in error and try once more. Previously + this error was fatal, now it produces an error message. +- Ensure correct volume name displayed during restore +- Fix a few more Coverity reported problems. +- Fix #1091 about bad output in estimate command. +- Modify autochanger locking to attempt to avoid race + conditions. +- Make sure device not busy before doing label command. +- Display open() errors except when polling. Previously too + many were suppressed. This should fix bug #1070. +- Fix Win32 reparse points. Bacula will not recurse into any + reparse point directory, including mount points, unless the + directory is explicitly mentioned at the top level (same as + with Unix). A file that is linked to another file will be + backed up -- much as Unix does for hardlinked files. + This fixes bug #1041. +- Remove StorageId test when pruning and recycling (Eric's changes). +- Fix buffer overruns detected by Coverity. +- Implement --without-qwt +- Fix layout of restore tree dialog +- Add configure bat QWT libraries, so that bat can be built + with or without the QWT libaries. +- Implement regression that explicitly tests swapping a Volume + from one drive to another. +- Enhance disk-changer to detect most error conditions. +- Fix SD code so that it properly swaps a Volume between drives. + This fixes bug #1083. +- Prevent a Volume that is being swapped from being freed from + the volume list. This will most likely fix, at least partially, + bug #1083. +- Fix strippath so that it does not get a buffer overrun and crash FD. + This fixes bug #1078. +- Make inability to change owner/group when creating a dir only a + warning rather than an error. +- Fix SQL query in migration code +- Fix bat seg fault at termination. +- Add Bacula generated version to bat about box. +- Backport development stream SD reservation system changes. +- When wrong volume is mounted during read, unload_autochanger. +- Stop searching for Volumes in SD askdir if DIR returns the + same volume name twice in a row. +- Rework class structures for VOLRES, DCR, and DEVICE to make + the method names a bit more logical, and for more logically + handling the responsibilities. +- Remove redundant code in terminating the scheduler that just + causes a seg fault in many cases. +- Improve algorithm for detecting pre-reserved volume and + swapping volumes. +- Prevent volume from being released while being swapped. +- Refactor parts of stored/mount.c +- Add sanity checks for VolWriteTime and VolReadTime +- Take care of bad clock changes while computing VolWriteTime + and VolReadTime. This should fix or limit #1066 +- Correct error string numbers in dird/catreq.c +- Restructure reserving, acquiring, and mounting volumes. Calls to + autochanger are deferred for mount.c -- simplifes the code. +- Do not prune any running job. It just fails the job. +- Lock the volumes when changing dev->reserved_device and marking + the volume unused otherwise the device can get reserved by + another job before the volume is released, thus blocking it. +- Correct some SD catalog request error messages. +- Turn off code in read_record that causes a seg fault in the SD + when reading past an EOS_LABEL. +- Turn off unloading the autochanger in reserve.c as it just + causes problems. +- Lock volumes when unreserving a device. +- Do not mark volume unused when recycling. +- Fix bug #1068 fixes a SD crash when using Virtual autochanger. +- Generate correct JobMedia records during spooling/despooling when + running concurrent jobs. Thanks to Tom Ivar Helbekkmo + for excellent analysis and testing. - *Massive* commit of all fixes and back ports to create 2.2.9 Mostly SD reservations enhancements. - Fix Win32 FD backup/restore memory leak due to improper termination @@ -25,7 +133,6 @@ Version 2.2.9 is a bug fix to version 2.2.8: - Attempt to do correct handling of Win32 mount points. Should fix bug #1046. - Add const to AIX prototype for initgroups() -- Undo bug #1047 heap overrun fix as it is not correct. - Fix to the JobMedia patch, which introduced a new problem. - Fix creating first JobMedia record during Migration to include proper index. This caused slow restores of migrated jobs. @@ -36,11 +143,13 @@ Version 2.2.9 is a bug fix to version 2.2.8: in job report. +========================================================================= + Version 2.2.8 is a bug fix to version 2.2.7: - It fixes bugs: 1036, 1033(doc), 1028, 1040, 1045(doc), 1030, 1042(partially), and possibly bugs 1018 and 1032. Bugs 1018 and 1032 involve problems with multiple-drive autochangers, - and are difficult to reproduce. + and are difficult to reproduce. See the ChangeLog for more details. Version 2.2.7 has several new features and several important bug fixes @@ -92,9 +201,9 @@ Version 2.2.4 is a minor bug fix release to version 2.2.3 by skipping |. Fixes bug #936. - Implement patch supplied by Landon to fix bug #944 where using TLS with bconsole uses 99+% of the CPU. -- Fix bug #946 about "bacula-dir -t" which doesn't works +- Fix bug #946 about 'bacula-dir -t' which doesn't works as expected. -- Using "m" in bconsole will show messages as in prior versions +- Using 'm' in bconsole will show messages as in prior versions and not memory usage. - Note, you need GTK >= 2.10 to be able to link the Tray Monitor @@ -107,8 +216,8 @@ Version 2.2.3 is a critical bug fix release to version 2.2.2 2.0.0 on, and probably versions prior to that. A detailed analysis of the bug can be found at: - http://www.bacula.org/downloads/bug-395.txt - + http://www.bacula.org/downloads/bug-395.txt + - Add ./configure search in qwt-qt4 for qwt package - Apply Martin Simmons patch that should turn off the new API usage when batch insert is turned off allowing building on older @@ -126,7 +235,7 @@ Version 2.2.1 is mainly a minor bug fix release to version 2.2.0, the main changes since 2.2.0 are: - Fixed bugs #921, 930, and 923. - More portable timezone offset in bsmtp thaks to Attila Fülöp. -- Fix several bat issues. +- Fix several bat issues. - Use GTK+ calls instead of egg files in tray-monitor. - Win32 service routines rewritten - Updated projects file @@ -203,15 +312,15 @@ New bconsole commands: New directives: - Heartbeat Interval (bconsole.conf) - Heartbeat Interval (bacula-dir.conf in Director, Client, Storage) -- TLS Allowed CN (bacula-dir.conf in Client) -- Regex Where (bacula-dir.conf in Job) -- Strip Prefix (bacula-dir.conf in Job) -- Add Prefix (bacula-dir.conf in Job) -- Add Suffex (bacula-dir.conf in Job) -- Recycle Pool (bacula-dir.conf in Pool) -- FailJobOnError (bacula-dir.conf in RunScript) +- TLS Allowed CN (bacula-dir.conf in Client) +- Regex Where (bacula-dir.conf in Job) +- Strip Prefix (bacula-dir.conf in Job) +- Add Prefix (bacula-dir.conf in Job) +- Add Suffex (bacula-dir.conf in Job) +- Recycle Pool (bacula-dir.conf in Pool) +- FailJobOnError (bacula-dir.conf in RunScript) - CheckFileChanges (bacula-dir.conf in FileSet) -- StripPath (bacula-dir.conf in FileSet) +- StripPath (bacula-dir.conf in FileSet) Other features or bug fixes: - Fixed bugs: 916, 910, 917, 914, 906, 907, @@ -241,7 +350,7 @@ Other features or bug fixes: - Different locking in reservations and despooling systems, which means more micro-locking and less macro-locking, which should give a lot more concurrency at the expense of slightly - (<0.1%) more overhead due to more locking/unlocking, but + (<0.1%) more overhead due to more locking/unlocking, but concurrent jobs should run much faster. - Additional drive reservation algorithm that should solve a lot of the problems experienced with multiple drive autochangers. diff --git a/bacula/patches/2.2.7-fpformat.patch b/bacula/patches/2.2.x/2.2.7-fpformat.patch similarity index 100% rename from bacula/patches/2.2.7-fpformat.patch rename to bacula/patches/2.2.x/2.2.7-fpformat.patch diff --git a/bacula/patches/2.2.7-jobdefs-migtype.patch b/bacula/patches/2.2.x/2.2.7-jobdefs-migtype.patch similarity index 100% rename from bacula/patches/2.2.7-jobdefs-migtype.patch rename to bacula/patches/2.2.x/2.2.7-jobdefs-migtype.patch diff --git a/bacula/patches/2.2.7-mysql-batch-timeout.patch b/bacula/patches/2.2.x/2.2.7-mysql-batch-timeout.patch similarity index 100% rename from bacula/patches/2.2.7-mysql-batch-timeout.patch rename to bacula/patches/2.2.x/2.2.7-mysql-batch-timeout.patch diff --git a/bacula/patches/2.2.7-old-postgresql.patch b/bacula/patches/2.2.x/2.2.7-old-postgresql.patch similarity index 100% rename from bacula/patches/2.2.7-old-postgresql.patch rename to bacula/patches/2.2.x/2.2.7-old-postgresql.patch diff --git a/bacula/patches/2.2.7-reserve.patch b/bacula/patches/2.2.x/2.2.7-reserve.patch similarity index 100% rename from bacula/patches/2.2.7-reserve.patch rename to bacula/patches/2.2.x/2.2.7-reserve.patch diff --git a/bacula/patches/2.2.8-bacula-conf.patch b/bacula/patches/2.2.x/2.2.8-bacula-conf.patch similarity index 100% rename from bacula/patches/2.2.8-bacula-conf.patch rename to bacula/patches/2.2.x/2.2.8-bacula-conf.patch diff --git a/bacula/patches/2.2.8-deadlock.patch b/bacula/patches/2.2.x/2.2.8-deadlock.patch similarity index 100% rename from bacula/patches/2.2.8-deadlock.patch rename to bacula/patches/2.2.x/2.2.8-deadlock.patch diff --git a/bacula/patches/2.2.8-jobmedia.patch b/bacula/patches/2.2.x/2.2.8-jobmedia.patch similarity index 100% rename from bacula/patches/2.2.8-jobmedia.patch rename to bacula/patches/2.2.x/2.2.8-jobmedia.patch diff --git a/bacula/patches/2.2.8-strip-path.patch b/bacula/patches/2.2.x/2.2.8-strip-path.patch similarity index 100% rename from bacula/patches/2.2.8-strip-path.patch rename to bacula/patches/2.2.x/2.2.8-strip-path.patch diff --git a/bacula/patches/2.2.8-strippath.patch b/bacula/patches/2.2.x/2.2.8-strippath.patch similarity index 100% rename from bacula/patches/2.2.8-strippath.patch rename to bacula/patches/2.2.x/2.2.8-strippath.patch diff --git a/bacula/src/version.h b/bacula/src/version.h index 5d6c410b58..3530506c88 100644 --- a/bacula/src/version.h +++ b/bacula/src/version.h @@ -3,7 +3,7 @@ */ #undef VERSION -#define VERSION "2.3.22" +#define VERSION "2.5.0" #define BDATE "04 June 2008" #define LSMDATE "04Jun08" diff --git a/bacula/technotes-2.3 b/bacula/technotes-2.5 similarity index 100% rename from bacula/technotes-2.3 rename to bacula/technotes-2.5 -- 2.39.5