multiple
Recycled volumes. kes Modify most of dird/msgchan.c to use
bsock class calls rather than
bnet calls -- no functionality change. 07Aug07 kes Modify
the Verify output to specify if files are missing on
the Volume(s) or disk. Fixes confusion in bug #916. kes
When more than one Volume is read in a migration job, the last
Volume bytes reported are from the last read volume rather
than
the last written volume. Fixed. This fixes bug #910. kes
Fix display of Recycle flag after update volume=foo recycle=yes.
It previously printed New Recyle flag is: no. This fixes bug
#917. 06Aug07 kes Correct seg fault when switching tape
drives during restore. kes Commit uid_gid_name.c (replacement
for idcache.c), but will not
be used until after 2.2.0 release. 04Aug07 kes Remove fn-
match() in SD that permitted wild card specifications.
This fixes bug #914. 31Jul07 kes Fix %g in filename re-
turned by SQL for browse tree reported by
Dirk. kes Fix configure so that it puts config.out in the
cwd rather than
in src/qt-console kes Attempt to fix the locking problem
reported by Eric in bug #906. kes Make berrno class to leave
errno unchanged after constructor call. kes Make bnet_server
use the heap rather than the stack to allocate
its socket fd pointers to avoid a crash at termination.
Problem
reported by Ryan Novosielski and bugs pointed out by Martin
Simmons. 30Jul07 kes Create new depkgs and depkgs-qt separating
the qwt out of depkgs
and putting it in depkgs-qt along with Qt4.3. 29Jul07 kes
Rework code in acquire.c that switches drives for reading when
the Media Type does not match. This should fix bug #906
28Jul07 ebl Fix a director segfault during job setup #907 kes
Correct seg fault in postgresql when first operation returns no
rows. Fixes Dirks File browser problem seg fault with bat.
25Jul07 kes Apply patch from Felix Schwarz <Fe-
lix.Schwarz@web.de> that allows
building wxconsole on Fedora 7 with wxWidgets 2.8 (it works
with
2.6 as well). 24Jul07 kes Implement PopUp YES/NO dialog
for bat. 23Jul07 ebl Fix a compilation bug when using #define
BACL_WANT_NUMERIC_IDS 22Jul07 kes Correct RunScript to terminate
job in FD on failure. kes Change abort_on_error and AbortJobOn-
Error to fail_on_error
and FailJobOnError in RunScripts. kes Minor tweaks of code
formating in RunScripts, principally to
avoid depassing 80 columns. 21Jul07 kes Eliminate one
#ifdef Win32 in bsmtp kes Implement grow tool to grow a file for
testing very large databases. kes Add big-vol-test to test Bac-
ula seeking with > 5GB. Release 2.1.28 beta 19Jul07 kes Modify
find_next_volume() to return all values in Media record. kes
commands defined in the Device resource. This fixes bug
#830. kes When applying a storage override, release all previ-
ous storage
definitions rather than just prepending the new storage.
This should prevent a good deal of confusion. 14Jul07 kes
Implement ./configure search for qwt libraries. 13Jul07 kes
Disable posting the WM_CLOSE message in KillRunningCopy of the
Win32 FD. This should fix bug #893. kes Remove an unnec-
essary beep in Win32 init code. kes Update copyright dates in
Win32 executable about boxes. kes Replace the FSF copyrighted
getopt.c and getopt.h in the Win32
code with a BSD getopt.c and getopt.h. kes Remove sched.h
from the Win32 compat directory -- not used. kes Remove the Ex-
it menu item from the Win32 tray monitor. If you really
need to shut it down, do it through the services panel or
the command
line. kes Remove some inappropriate Bacula FSFE copy-
rights. ebl Tweak status client=xxx to be more easy to parse
(more like in 2.0.x) kes Fix regress config non-portable test as
pointed out by
Florian Heigl <florian.heigl@gmail.com> kes Fix PSCMD for
HP-UX in configure.in to have proper syntax.
as pointed out by Florian Heigl <florian.heigl@gmail.com>
12Jul07 kes Fix missing rctx. prefixes on the Darwin code in
src/filed/restore.c
Reported by Frank Sweetser.
Release 2.1.26 beta 12Jul07 kes Fix client-only build. kes In-
tegrate client-only fixes for bsys (initgroups) and conio from
Sergey Svishchev <svs@ropnet.ru> for the AIX platform. kes
Make arguments to get_scratch_volume() in same order as other
such calls. kes Rework the prune_volumes() subroutine so
that after purging and
no volume found in desired pool, it will check for a scratch
volume. This prevents recycling the whole scratch pool. kes
Add code to status storage to print boffset_t (largefile sup-
port). 11Jul07 kes Move qwt (Graphics libarary for Qt4) to dep-
kgs. kes You now need a --with-qwt=<dir> to be able to build
bat. kes Update src/win32/cats/bacula_cats.def to include the
new
db_get_query_dbids() call on Win32. 07Jul07 kes Correct a
problem when selecting a scratch volume and moving
it to another pool that lost some columns. kes Tweak some
code in ua_update.c to use POOL_MEM instead of POOLMEM. kes En-
hance Autochanger error messages to include Volume and device
name. kes Rework prune_volumes() code to take account of In-
Changer flag,
and to handle recycling volumes going to the Scratch pool
and
current pool because the RecyclePool directive. kes Imple-
ment a better and more efficient db_get_query_dbids() to
handle creating and passing back a list of DBIds.
during despooling in SD to blocking. This means that other
threads
can work with the device structure, in particular the reser-
vations
system while despooling. 28Jun07 kes Fix return in reser-
vation message queue that missed clearing
the jcr lock (implemented 26Jun07 below). kes Rename a
number of dev methods to make locking function names
a bit clearer. kes Document locking in lock.c. Move lock
structures to new file
lock.h. 26Jun07 kes Move reservations message lock to lock
jcr only this
fixes bug #861. kes Move main SD locking code into lock.c
(new file). kes Update Win32 build to include lock.c
Release 2.1.22 beta 26Jun07 kes Dirk committed the qwt library
code for drawing graphs in bat. kes Tweak install of qwt so
that it is integrated with ./configure. 25Jun07 kes Fix
HAVE_BATCH_INSERT to be HAVE_BATCH_FILE_INSERT, pointed
out by Eric (my typo). ebl Fix configure.in to get batch
mode enable kes Return correct string from authenticate.cpp in
bat when connecting
to Dir. kes Apply patch suggested by Frank Sweetser to fix
bug #888 --
spurious line drops when using TLS. kes Do not file
reparse points when restoring a file that already
exists -- Win32. 24Jun07 kes Implement Windows reparse
points -- similar to directories, but
we do not descend into it. This is a first cut. They seem to
be backed up, but restore is not yet tested. kes Remove
restore_blocking in tls code when shutting a socket to leave
it in blocking mode. Hopefully this will fix the encryption
bug
reported by Frank Sweetser. kes When opening a file for
backup, tell the OS that we are going to
read it sequentially -- optimization. kes Change variable
names in authenticate_director() to not conflict
with member names in bat. Caused great confusion with com-
piler,
but no warnings. 23Jun07 kes Queue openssl error messages
in case of comm problem. kes Do shutdown() call if socket ter-
minated. kes Remove some duplicated code in tls.c kes Move
more of the bsock member variables into private and access
them with methods. kes Add Frank Sweetser's tls-test to
the regression suite. 22Jun07 kes Add Swedish sv.po file
21Jun07 kes Don't print clock skew message in FD if less than 3
seconds diff. kes Add a bit of VSS info to status client. kes
Implement a first cut of Vista VSS, using Win2003 code.
Release: 2.1.20 beta 20Jun07 kes Fixed bug #886 (multidrive au-
tochanger: SD doesn't use drive with
loaded tape but uses first drive). kes Fixed bug #807 Re-
Rework how dcrs are allocated. new_dcr() can now be called
with an existing pointer, and it will simply clean it up.
This allows the reservation system to test various different
devices, and will permit easy device changes. kes A bunch
of changes all over to handle new new_dcr() calling
sequence. kes Work more on the Volume management in the
SD. Remember Volumes
for tape drives and for autochangers (even virtual disk
changers). kes When looking at the Volume list to reserve a
drive, handle
autochanger names correctly by interating through the chang-
er
devices. Also call the Director to see if a Volume is suit-
able
for the current job. kes Fix some bugs in bscan. Make sure
all media records are written.
Make sure that valid JobMedia records are written for disk
files.
Previously they were completely wrong. kes Move source tar
files for depkgs-mingw32 to www.bacula.org so
that the URLs don't change and so that the developers will
all
work off the same copy. Rebuild from scrach. kes Upgrade
Win32 SQLite3 from 3.3.8 to 3.3.17.
Release: 2.1.18 beta 16Jun07 kes Fix seg fault in FD from incor-
rect digest size. kes Fix argument to non-OpenSSL crypto.c sub-
routine.
Release: 2.1.16 beta 16Jun07 kes Remove a few malloc()s from the
encryption code. kes Use the class calls to bsock in
filed/backup.c and restore.c in
place of the old bnet_xxx code. kes Implement code that
does an on the fly calculation of the
signing digest during restore of encrypted files. It makes
a best guess at the algorithm, and if it is not correct,
will
then revert to the old code which reads the file after it is
restored. kes Implement at least one missing crypto stream
in stream_to_ascii() kes Apply patch from William
stat(2)) after
each file backup. mtime, ctime and size are compared with
'before backup' information. If time or size mismatch, an
error message will be generated. You must upgrade FD to use
it. 30Mar07 kes Make database name and user configurable
--with-db-name=xxx --with-db-user=xxx kes Add back database
type to message.c for debugging. 29Mar07 kes Implement
dir_sql() which issues an SQL query. kes Modify bat medialist
to use dir_sql() and do some minor C++
formatting as well as eliminating a number of pointers, sim-
plifing
the code. 28Mar07 kes Fix some of the mtx-changer grep
commands for tape label readers. kes Convert a number of
bsendmsg into the appropriate send/warning/error
message class calls. kes Suppress the using database mes-
sage in the .sql command. kes Correct an incorrect
bnet_tls_client prototype -- patch from Martin. 27Mar07 kes Add
context menu for floating a window. kes Some minor cleanup and
name changes in qt-console kes Add doing mt setblk 0 in Win32
mtx-changer. kes Apply Martin's bug fix to move definition of
ENODATA for
FreeBSD to bsock.c ebl Add a BUSY handler to sqlite to be
able to use multi_db = 1 with
sqlite2 and sqlite3. 26Mar07 kes More pruning cleanup.
kes Turn on wait_for_drive by default in mtx-changer. kes Turn
on Batch insert code by default as it now passes regression. kes
Add ./configure --enable-bat to enable building of Bat.
No install yet though. 25Mar07 kes Implement a new .sql
command for bat. kes Implement code to turn off pruning in ob-
taining the next volume.
Pruning is turned off for the status dir command, but turned
on
for SD requests and for the list nextvolume command.
24Mar07 kes Correct Qmsg() that was not updated correctly when
committing a
previous change (probably the recent TLS patch). 23Mar07
kes Write new subroutine is_volume_purged() that explicitly
checks
if the Volume is purged, and if so marks it as such. This
should
resolve problems reported about needing to mount twice to
recycle
volumes. kes Rewrite pruning algorithm to do more work in
the SQL engine, and
to pass a list of JobIds to be deleted to SQL. Also, mini-
mize the
amount of duplicated code. kes Do volume pruning only for
check when starting a new tape job to ensure
that the tape position has not been changed. If so fail the
job. kes Fix Win32 build for dlls to add the folllowing:
src/lib/bsock.c -- new file with new entry points
src/lib/dlist.c -- new entry points
src/cats/sql_create.c -- new entry point
src/cats/sql_cmds.c -- new DATA item exported 21Mar07 ebl
batch mode cleanup bscan-test is ok now. kes Implement SD code
to check length of disk volume before appending. 18Mar07 kes
Correct return status on db_batch... routines. kes Add call to
db_write_batch_file_records() to migration code. ebl Fix After-
Job timing kes Move the checking of the database in initializion
of the Director
to after we drop privileges. This avoids the need for both
root
and bacula access to the DB. kes Correct a misplaced vari-
able definition in src/filed/backup.c kes Correct how the new
batch insert db_create_attributes_record()
uses the arguments. Caused a seg fault in bscan. kes Im-
plement lock() and unlock() methods in DEVICE class.
Implement block() and set_block(xx) methods in DEVICE class.
kes Modify bnet_connect() so that it uses time() to check for
the
wait time expiring (on some OSes, some system calls may not
return immediately). kes Modify Verify to obtain the pre-
vious JobId when it is actually
running rather than at schedule time (as it was in 1.38.x).
kes Fix src/job.c to handle MaxWaitTime correctly. This should
fix bug #802. kes When checking pid in pid file, continue
running if the pid is
the same as ours. This occurs on IRIX after a system crash.
Fixes bug #797. 10Mar07 kes Extend new GUI API. kes Make
the ua structure a class, and implement send_msg(),
error_msg(), warning_msg(), and info_msg(). 08Mar07 kes
Apply fix from for building wx-console on the Mac from
bug #798. kes Implement new select mechanism for GUI pro-
grams. kes Reorganize initialization of stackedWidgets in bat.
07Mar07 kes Add updated nagios plugin supplied by Christian Ma-
sopust. 05Mar07 kes More bat implementation. kes File migrate
bug with Pool Occupancy using mediaid instead
of jobids. Fixes bug #795. kes Fix orphaned buffers in
filed backup and verify due to
crypto buffers not freed during errors. Fixes bug #789.
kes Extend new GUI api code to tree commands. kes Ensure that
tree and dot commands check console ACLs. kes Permit marking
directory with trailing slash. kes Allow 20 console connections
(instead of only 10). 04Mar07 kes Add smartctl call to bacula-
sd.conf as an example of getting
tape alert info. 02Mar07 kes Modify jobq.c to let simulta-
neous restore jobs run. This may
cause them to fail if they cannot get a drive. kes Add
Client Connect Wait to Storage daemon to permit users to
class). Make jcr,
who, host, and port private. There are new methods to access
them for non-class use. This required touching a number of
files. 21Feb07 kes Add LANG=C to autoconf/randpass so it works
with languages other
than English. Fixes bug #788. 20Feb07 ebl Revert Clien-
tRunBeforeJob to old position as in 1.38.X.
This fixes bug #780
You will not be able to generate Include/Exclude list any
more.
It will be fixed soon.
If you want to use this, you can apply
trunk/bacula/patches/testing/clientrunbeforejob_can_gener-
ate_include_exclude_list.patch 19Feb07 kes Restore of sockets
created false error messages because Bacula
no longer restores sockets, but the code was still trying to
set the attributes on a non-existent file. Reported by a us-
er. ebl finish RecyclePool feature
Media will takes Pool.RecyclePool
when moving from Scratch to a Pool or when user will do
update volume=xxx frompool
To use it, add RecyclePool = aPool to your Pool resource
Pool {
Name = Default
RecyclePool = Scratch
...
}
TODO: update manual kes Expand new BSOCK class adding sig-
nal() and new BNET signals. kes Begin enhancing the dot com-
mands adding a new API function
that returns more information and will make it easier
to interface to the Director from a program. 18Feb07 kes
Make DEVICE fd private. Its new name is m_fd, and can be
obtained with dev->fd() outside the class. This is the
first of many DEVICE members to be made private. kes Im-
plement Michael Renner's idea on having a virtual disk
changer. I made some minor modifications (e.g. I did not
implement the Virtual Changer directive, but simply set
the Changer Command to an empty string. 17Feb07 kes Imple-
ment a BSOCK send() method that writes the whole record
in a single write() request rather than in two. ebl add
update volume=xxx recyclepool=yyyy
volume takes recyclepool from pool when using update vol-
ume=xxx from pool 16Feb07 kes Fix encryption deblocking bug,
which caused some restored files
to be truncated. This fixes bug #763. kes Add FD event se-
quence order prepared by Eric -- for RunScripts. kes Fix
12am/pm bug as reported in bug #782 -- scheduler problem.
13Feb07 kes Apply Eric's ClientRunScriptAfter patch to 2.0 and
2.1. ebl Use btime_t instead of uint64_t in media patch.
11Feb07 kes Optimize the use of the database a bit in the Status
dir command.
simultaneous upgrade of the DIR and SD. Note, there
should be some way to turn off timing. I'm not sure
times are in Bacula units. kes Apply Eric's batch-insert
patch. 09Feb07 kes Update projects list. 08Feb07 kes Imple-
ment Include/Exclude file lists in FD as dlists using
the new dlistString class. This permits efficiently having
large include/exclude lists and completes project Item 25.
kes Fix dird/ua_cmds.c so that a cancel command checks if the
console is authorized to cancel the job. This fixes bug
#767. kes Modify SD so that the VolCatJobs medium record
is updated
at the beginning of a Job rather than the end. This
fixes bug #775 where exceeding MaxVolJobs caused jobs
to fail. kes Added a mutex around getting and setting Vol-
ume information
so that multiple simultaneous jobs will single thread.
07Feb07
Switch to using Subversion kes Remove src/pygtk-console/
from configure 06Feb07 kes Delete src/lib/btree.c from win32
build, then add rblist.c
plus the entrypoints. kes Apply patch supplied that cor-
rects debug print
in canceling jobs for max run time. Supplied as
part of bug #621, which was previously fixed. 05Feb07 kes
Test on job_canceled() and sd_msg_thread_done inside
loop starting the message thread to avoid a race condition.
Fixes bug #771. kes Remove rl_catch_signal from console.c
as it conflicted
with the header definition. Fixes bug #765. ebl Fixes bug
#766 about RunsOnClient = Yes (case sensitive) 04Feb07 kes Clar-
ify some stored/acquire messages to indicate if the
problem is with read or append. 02Feb07 kes Fix memory
leak with storage ids in cats/sql_get.c kes Terminate watchdog
earlier to avoid reference to released
memory -- reported by Jason Austin. kes Move closing the
database from jobq.c to the director daemon
termination routine. This fixes memory leaks for shadow jobs
(i.e. migration jobs). kes Free up the unique jobid chain
items in migrate.c. This fixes
a memory leak problem. kes Convert some ugly looking for
statements to use foreach_alist
in findlib/find.c. This will facilitate converting the
structures
to use dlist (for large include/exclude lists). kes Fix a
bug in the btree.c and btree.h routines, then rename them
rblist and add them to be built in src/lib. Include some
new
methods written by Rudolf Cejka that make the code more
readable
(hides some of the ugly casting). kes Add set_next() and
set_prev() methods which make the code much more
readable. Also add a new dlistString class that facilitates
plement the include JobID in spool file name project. kes Re-
order projects file in order determined by Jan 2007 vote. kes
Implement item #12 on project list -- quick release of FD by
the SD. kes Fix open of SQLite3 db where user does not
have write permission
so that DIR does not crash. Fixes bug #761. 25Jan07 kes
Add back missing @ in Win32 Makefile. kes Change 'Device not
configured to autolabel' from INFO
to WARNING. kes Fix jobq.c to restart failed jobs when
Reschedule Times = 0
which should restart an indefinite # of times. kes Fix
configure --help to print --with-mysql[=DIR]. Same for
other DIR specifications. 23Jan07 rn Fix msvc build prob-
lems. Fix bacula.dll exports for msvc build.
Fix path quoting in SQLite scripts.
Fix problems with SHGetFolderPath. 19Jan07 kes Create
patches/2.0.1-restart.patch. Fixes bug #755. 18Jan07 kes Fix
Job restart on error bug that promotes an Inc to a Full
backup. This should fix bug #755. kes Add qt-console and
first cut of code.
Version 2.0.1 12Jan07 kes Fix Bacula->Documentation link on
Win32 to point to index.html
instead of bacula.html. Fixed bug #750. kes Return JobId
in db_get_job_record() when JobId==0. This should
fix bug #741. kes Do not release source pointers when
restarting a failed job. 11Jan07 kes Add dynamic dll entry
point for SHGetFolderPath to Win32 code.
This *should* fix bug #747. kes Modify winbacula.nsi to
substitute with g bin_dir_cmd. Should fix
bug #742. 09Jan07 kes Modify USTORE constructor to set an
empty store_source string,
and don't copy the store_source string in a cancel. Hope-
fully
this will fix Arno's seg fault, bug #744. kes Add back
code to disable conio in configure. Fixes bug #743. kes Correct
the Options scanner in the FD to correctly handle
SHA1 option, which was eating the next option. Reported by
Sebastien Guilbaud. kes Add code to indicate when the SD
is spooling, spool wait, and
despooling as requested by Alan Brown.
Version 2.0.0 released: 4 January 2007
Man(1) output converted with
man2html