]> git.sur5r.net Git - bacula/bacula/log
bacula/bacula
11 years agoFix mysql config for older versions of mysql+config.
Marco van Wieringen [Sun, 22 Apr 2012 17:16:51 +0000 (19:16 +0200)]
Fix mysql config for older versions of mysql+config.

On older versions of mysql_config the newly used
flags are not supported. So we test if the new flag
is supported and otherwise fallback to a kludge with
some sed strings to get the info we want from the
older mysql_config options.

This fixes problems on :

Centos 6
RHEL 6
SLES 11sp1
SLES 11sp2
OpenSuse 11.4

11 years agoFix problem in BVFS with concurrent queries
Eric Bollengier [Fri, 20 Apr 2012 08:48:59 +0000 (10:48 +0200)]
Fix problem in BVFS with concurrent queries

11 years agoAdd more checks to bvfs
Eric Bollengier [Fri, 20 Apr 2012 07:07:04 +0000 (09:07 +0200)]
Add more checks to bvfs

11 years agoRecompile configure.in
Kern Sibbald [Thu, 19 Apr 2012 09:46:16 +0000 (11:46 +0200)]
Recompile configure.in

11 years agoApply MSQL detection fixes from bug #1829
Kern Sibbald [Thu, 19 Apr 2012 09:46:01 +0000 (11:46 +0200)]
Apply MSQL detection fixes from bug #1829

11 years agoRecompile configure.in
Kern Sibbald [Thu, 19 Apr 2012 09:17:32 +0000 (11:17 +0200)]
Recompile configure.in

11 years agoFix bug #1805 cannot specify hostname in ./configure
Kern Sibbald [Thu, 19 Apr 2012 09:17:13 +0000 (11:17 +0200)]
Fix bug #1805 cannot specify hostname in ./configure

11 years agoUpdate version + date
Kern Sibbald [Thu, 19 Apr 2012 09:08:51 +0000 (11:08 +0200)]
Update version + date

11 years agoRequire latest Qtlibs
Kern Sibbald [Thu, 19 Apr 2012 09:07:18 +0000 (11:07 +0200)]
Require latest Qtlibs

11 years agoFix restore_job restore keyword
Eric Bollengier [Thu, 19 Apr 2012 07:04:21 +0000 (09:04 +0200)]
Fix restore_job restore keyword

11 years agoAllow plugin to backup a directory
Eric Bollengier [Wed, 18 Apr 2012 14:32:43 +0000 (16:32 +0200)]
Allow plugin to backup a directory

11 years agoPrint seconds in schedule time as noted in bug #1854
Kern Sibbald [Wed, 18 Apr 2012 20:37:58 +0000 (22:37 +0200)]
Print seconds in schedule time as noted in bug #1854

11 years agoChange dev->open() to return bool
Kern Sibbald [Wed, 18 Apr 2012 07:57:06 +0000 (09:57 +0200)]
Change dev->open() to return bool

11 years agoMore definitive fix for update slots bug
Kern Sibbald [Sat, 14 Apr 2012 09:24:30 +0000 (11:24 +0200)]
More definitive fix for update slots bug

11 years agoFix old update slots bug
Kern Sibbald [Fri, 13 Apr 2012 21:15:43 +0000 (23:15 +0200)]
Fix old update slots bug

11 years agoBackport new StorageId code
Kern Sibbald [Sun, 15 Apr 2012 12:05:31 +0000 (14:05 +0200)]
Backport new StorageId code

11 years agoFix #1857 about restore cd command that blocks on empty directory
Eric Bollengier [Tue, 17 Apr 2012 13:00:39 +0000 (15:00 +0200)]
Fix #1857 about restore cd command that blocks on empty directory

11 years agoFix #4062 on make_catalog_backup.pl script when user/password are empty
Eric Bollengier [Thu, 12 Apr 2012 12:01:14 +0000 (14:01 +0200)]
Fix #4062 on make_catalog_backup.pl script when user/password are empty

The make_catalog_backup.pl sets PGUSER and PGPASSWORD env vars even if they
are not set in the bacula config. This leads to an error if postgresql is used
with IDENT authentification.

The following error message is printed:
---
pg_dump: [archiver (db)] connection to database "bacula" failed: FATAL: no
PostgreSQL user name specified in startup packet

11 years agoFix bug #1853: bacula-sd dead but pid file exists.
Marco van Wieringen [Wed, 28 Mar 2012 16:33:14 +0000 (18:33 +0200)]
Fix bug #1853: bacula-sd dead but pid file exists.

We scanned using a %d pattern into a bool value. On some
platforms (SPARC) this gives a severe SIGBUS e.g. bus error
as the sizeof(bool) on 64 bits is 1 byte and the %d uses an
integer value which is 4 bytes. Its obvious now we know this
problem that its an problem on other platforms too but it
seems only on SPARC it triggers a hardware error by the CPU.

The workaround is to use a temporary variable and set the
bool to either true or false based on the integer value.

11 years agoFix bug #1841 estimate command level=differential goes wrong in accurate mode.
Marco van Wieringen [Fri, 23 Mar 2012 19:24:04 +0000 (20:24 +0100)]
Fix bug #1841 estimate command level=differential goes wrong in accurate mode.

11 years agoFix bug #1842 Incorrect port number reported
Martin Simmons [Thu, 22 Mar 2012 16:20:49 +0000 (17:20 +0100)]
Fix bug #1842 Incorrect port number reported

An incorrect port number reported when console fails to authenticate.

Signed-off-by: Marco van Wieringen <mvw@planets.elm.net>
11 years agoFix bug #1848 bsock.c:335 Socket has errors=1 on call to client
Marco van Wieringen [Thu, 22 Mar 2012 12:08:14 +0000 (13:08 +0100)]
Fix bug #1848 bsock.c:335 Socket has errors=1 on call to client

Removed the unneeded bnet_sig(dir, BNET_EOD) as the calling
function changer_cmd in dircmd.c already sets the BNET_EOD on
returning. So the autochanger_cmd function doesn't need to do
it.

11 years agoForce the re-initialization of BaseJobOpts, AccurateOpts and VerifyOpts between two...
Eric Bollengier [Sat, 10 Mar 2012 09:25:15 +0000 (10:25 +0100)]
Force the re-initialization of BaseJobOpts, AccurateOpts and VerifyOpts between two Include{}

When using this configuration

FileSet {
 Name = X
 Include {
   Options { Accurate = A }
   File = /tmp
 }

 Include {
   Options { Compression = GZIP1 }
   File = /elsewhere
 }
}

The second Include {} block is using the Accurate=A option from the first Include{}. With this
fix, the Accurate/BaseJob/Verify options are set to default between two Include{}.

We still have the same kind of problem for the "flags" that contains most options.
Something like the following configuration won't work as expected:

FileSet {
 Name = X
 Include {
   Options { Portable = no }
   File = /tmp
 }

 Include {
   Options { Portable = yes }
   File = /elsewhere
 }
}

11 years agoAdd test-deltaseq source
Kern Sibbald [Thu, 8 Mar 2012 08:07:19 +0000 (09:07 +0100)]
Add test-deltaseq source

11 years agoRename delta-test plugin to test-deltaseq
Kern Sibbald [Thu, 8 Mar 2012 08:04:39 +0000 (09:04 +0100)]
Rename delta-test plugin to test-deltaseq

11 years agoUpdate version date
Kern Sibbald [Tue, 21 Feb 2012 15:59:33 +0000 (16:59 +0100)]
Update version date

11 years agoUpdate ChangeLog + ReleaseNotes
Kern Sibbald [Tue, 21 Feb 2012 15:58:50 +0000 (16:58 +0100)]
Update ChangeLog + ReleaseNotes

11 years agoFix old exchange-fd plugin Accurate checkFile code.
Eric Bollengier [Fri, 17 Feb 2012 14:21:15 +0000 (15:21 +0100)]
Fix old exchange-fd plugin Accurate checkFile code.

It now marks files as seen only when the plugin is used. Not perfect, but
probably sufficient.

11 years agoTweak some comments and formatting.
Marco van Wieringen [Thu, 16 Feb 2012 22:52:39 +0000 (23:52 +0100)]
Tweak some comments and formatting.

11 years agoInsert the slot field as a numeric field.
Marco van Wieringen [Thu, 16 Feb 2012 21:08:06 +0000 (22:08 +0100)]
Insert the slot field as a numeric field.

The sorting in mediaview doesn't work well as the slot
field is added as a text field not a numeric field.

11 years agoUpdate Change log and Release notes
Kern Sibbald [Thu, 16 Feb 2012 11:32:44 +0000 (12:32 +0100)]
Update Change log and Release notes

11 years agoUpdate version date
Kern Sibbald [Thu, 16 Feb 2012 11:18:52 +0000 (12:18 +0100)]
Update version date

11 years agoTweak VSS
Kern Sibbald [Mon, 13 Feb 2012 13:56:13 +0000 (14:56 +0100)]
Tweak VSS

11 years agoTweak layout
Eric Bollengier [Tue, 14 Feb 2012 15:04:42 +0000 (16:04 +0100)]
Tweak layout

11 years agoMake cd accept wildcards
Kern Sibbald [Tue, 14 Feb 2012 08:13:57 +0000 (09:13 +0100)]
Make cd accept wildcards

11 years agoFirst cut wild card in restore cd command -- works in one component only
Kern Sibbald [Mon, 13 Feb 2012 19:50:03 +0000 (20:50 +0100)]
First cut wild card in restore cd command -- works in one component only

11 years agoFix #1831 by dropping the table before creating it
Eric Bollengier [Wed, 15 Feb 2012 08:25:22 +0000 (09:25 +0100)]
Fix #1831 by dropping the table before creating it

11 years agoRemove bad optimization from Accurate code
Eric Bollengier [Fri, 10 Feb 2012 16:32:10 +0000 (17:32 +0100)]
Remove bad optimization from Accurate code

By returning "already seen", we didn't reply to the original question:
has the file changed (must be backed up)?

If your fileset contains two Include {} sections the second Include may ask for
the same files than the first Include, and depending on Exclude, Wild, etc..
the answer may be "Already Seen" even if the file needs to be saved. From what
I can see, Wild/Exclude are called after the accurate check.

11 years agoLock read acquire in SD to prevent to read jobs getting the same thing
Kern Sibbald [Sat, 4 Feb 2012 15:28:16 +0000 (16:28 +0100)]
Lock read acquire in SD to prevent to read jobs getting the same thing

11 years agoEnsure that bvfs SQL link is not shared
Eric Bollengier [Thu, 2 Feb 2012 20:11:20 +0000 (21:11 +0100)]
Ensure that bvfs SQL link is not shared

11 years agoComplicate the prune-migration regression by adding one more job
Kern Sibbald [Fri, 3 Feb 2012 16:55:00 +0000 (17:55 +0100)]
Complicate the prune-migration regression by adding one more job

11 years agoImplement more robust check in other drives for tape slot wanted
Kern Sibbald [Fri, 3 Feb 2012 13:36:29 +0000 (14:36 +0100)]
Implement more robust check in other drives for tape slot wanted

11 years agoAdd more debug to failing test
Kern Sibbald [Fri, 3 Feb 2012 13:36:01 +0000 (14:36 +0100)]
Add more debug to failing test

11 years agoFix typo.
Marco van Wieringen [Tue, 31 Jan 2012 16:51:18 +0000 (17:51 +0100)]
Fix typo.

11 years agoFix error printing in acl and xattr code.
Marco van Wieringen [Tue, 31 Jan 2012 12:52:31 +0000 (13:52 +0100)]
Fix error printing in acl and xattr code.

The errno gets saved on an instantiate of the berrno class so
we should instantiate the class after the actual errno is set
and not as we used to do at the start of the function. Then
errno is always 0 and that also explains that on error it
was always printing Unknown error 0 in the error printed.
Moved all berrno into either an if block or an block within
a switch (including additional brackets so it a local code
block in which we can instantiate a new berrno class.

11 years agoTweak no need to initialize the loop var.
Marco van Wieringen [Sun, 29 Jan 2012 16:52:06 +0000 (17:52 +0100)]
Tweak no need to initialize the loop var.

11 years agoBackport better error debug output for sd plugins.
Marco van Wieringen [Sun, 29 Jan 2012 16:50:07 +0000 (17:50 +0100)]
Backport better error debug output for sd plugins.

11 years agoFix plugin bug with multiple simultaneous jobs
Kern Sibbald [Fri, 20 Jan 2012 13:47:47 +0000 (14:47 +0100)]
Fix plugin bug with multiple simultaneous jobs

11 years agoTweak version date
Kern Sibbald [Sun, 29 Jan 2012 09:34:40 +0000 (10:34 +0100)]
Tweak version date

11 years agoAdd wait on bad connection for security
Kern Sibbald [Sat, 28 Jan 2012 17:26:27 +0000 (18:26 +0100)]
Add wait on bad connection for security

11 years agoMake mtx-changer more fault tolerant
Kern Sibbald [Sat, 28 Jan 2012 14:46:08 +0000 (15:46 +0100)]
Make mtx-changer more fault tolerant

11 years agoFix 32/64 bit problems in SD sscanf commands
Kern Sibbald [Sat, 28 Jan 2012 09:57:39 +0000 (10:57 +0100)]
Fix 32/64 bit problems in SD sscanf commands

11 years agoFix 32/64 bit problems in scanning commands in SD
Kern Sibbald [Sat, 28 Jan 2012 09:51:16 +0000 (10:51 +0100)]
Fix 32/64 bit problems in scanning commands in SD

11 years agoTweak more debug in SD mount command
Kern Sibbald [Sat, 28 Jan 2012 09:13:58 +0000 (10:13 +0100)]
Tweak more debug in SD mount command

11 years agoSkip certain filesystem types on some platforms.
Marco van Wieringen [Thu, 26 Jan 2012 22:59:23 +0000 (23:59 +0100)]
Skip certain filesystem types on some platforms.

On Linux the actual rootfs gets mounted over an initial
rootfs. The mountcache on Linux is populated with the
content of /proc/mounts and as such it will contain 2
entries for the rootfs. So when the fstype function
is used to lookup the type of filesystem based on
the dev_t value it will always find the rootfs first.
But people expect to find either ext2, ext3 etc.
so we added a table with per OS (currently only Linux)
the filesystem which should NOT be loaded into the
internal lookup table.

11 years agoAllow BVFS to browse and restore Base jobs
Eric Bollengier [Thu, 26 Jan 2012 13:10:51 +0000 (14:10 +0100)]
Allow BVFS to browse and restore Base jobs

11 years agoAdd error message to .bvfs_clear_cache command
Eric Bollengier [Thu, 26 Jan 2012 12:47:35 +0000 (13:47 +0100)]
Add error message to .bvfs_clear_cache command

11 years agoTweak update ReleaseNotes and ChangeLog
Kern Sibbald [Wed, 25 Jan 2012 17:47:24 +0000 (18:47 +0100)]
Tweak update ReleaseNotes and ChangeLog

11 years agoUpdate version
Eric Bollengier [Wed, 25 Jan 2012 12:49:42 +0000 (13:49 +0100)]
Update version

11 years agoDisable usage of JS_Warning waiting for a more complete implementation
Eric Bollengier [Wed, 25 Jan 2012 08:43:53 +0000 (09:43 +0100)]
Disable usage of JS_Warning waiting for a more complete implementation

11 years agoTweak Makefile.in for example fd plugin.
Marco van Wieringen [Tue, 24 Jan 2012 13:55:33 +0000 (14:55 +0100)]
Tweak Makefile.in for example fd plugin.

Not automatically build and installed as better examples exist
in this directory.

11 years agoTweak example SD plugin.
Marco van Wieringen [Tue, 24 Jan 2012 13:49:44 +0000 (14:49 +0100)]
Tweak example SD plugin.

11 years agoTweak Makefile.in
Marco van Wieringen [Tue, 24 Jan 2012 13:44:29 +0000 (14:44 +0100)]
Tweak Makefile.in

11 years agoRemoved old sd plugins which doesn't work anymore.
Marco van Wieringen [Tue, 24 Jan 2012 13:42:02 +0000 (14:42 +0100)]
Removed old sd plugins which doesn't work anymore.

See example-plugin-sd.c for a working SD plugin.

11 years agoTweak fix compile error on older FreeBSDs
Kern Sibbald [Mon, 23 Jan 2012 17:25:23 +0000 (18:25 +0100)]
Tweak fix compile error on older FreeBSDs

11 years agoAdapt sample-query.sql for Warning job status
Eric Bollengier [Mon, 23 Jan 2012 12:13:20 +0000 (13:13 +0100)]
Adapt sample-query.sql for Warning job status

11 years agoTweak typo.
Marco van Wieringen [Mon, 23 Jan 2012 08:33:03 +0000 (09:33 +0100)]
Tweak typo.

11 years agoFix location of Qt dlls for Win64 build
Kern Sibbald [Fri, 20 Jan 2012 21:57:08 +0000 (22:57 +0100)]
Fix location of Qt dlls for Win64 build

11 years agoTweak correct typos in ReleaseNotes
Kern Sibbald [Wed, 18 Jan 2012 21:24:05 +0000 (22:24 +0100)]
Tweak correct typos in ReleaseNotes

11 years agoFix MediaView::getSelection
Marco van Wieringen [Wed, 18 Jan 2012 19:04:53 +0000 (20:04 +0100)]
Fix MediaView::getSelection

The selection in MediaView::getSelection doesn't work ok as
the internal table is sized using the number of selected items
and not the number of rows in the total table. But the table
is indexed using a row number which can be any rownr of the
total of the table. Things seen is that 3 rows are selected
but the selection only returns 2. This is probably a side effect
because the code could also just have crashed as nb = 16 and
rownr = 29-31 e.g. addressed outside the bounds of the array.

Changed the internal array to use bools instead of ints so
its also somewhat smaller.

11 years agoDelete only restore bootstrap during director startup
Eric Bollengier [Wed, 18 Jan 2012 14:57:28 +0000 (15:57 +0100)]
Delete only restore bootstrap during director startup

11 years agoTweak release procedure
Kern Sibbald [Wed, 18 Jan 2012 13:43:12 +0000 (14:43 +0100)]
Tweak release procedure

11 years agoTweak update ReleaseNotes and change log
Kern Sibbald [Wed, 18 Jan 2012 13:32:12 +0000 (14:32 +0100)]
Tweak update ReleaseNotes and change log

11 years agoPrepare for adding IPv6 to Windows in the future
Kern Sibbald [Wed, 18 Jan 2012 12:45:00 +0000 (13:45 +0100)]
Prepare for adding IPv6 to Windows in the future

11 years agoFix bug #1822 Schedule run line parsing fails if value is keyword
Kern Sibbald [Wed, 18 Jan 2012 12:33:21 +0000 (13:33 +0100)]
Fix bug #1822 Schedule run line parsing fails if value is keyword

11 years agoRevert to 5.0 size computation in accurate elements, may fix #1821
Eric Bollengier [Wed, 18 Jan 2012 09:31:32 +0000 (10:31 +0100)]
Revert to 5.0 size computation in accurate elements, may fix #1821

11 years agoMark that a file was found in the accurate list in the ff_pkt with a new variable
Eric Bollengier [Wed, 18 Jan 2012 09:15:13 +0000 (10:15 +0100)]
Mark that a file was found in the accurate list in the ff_pkt with a new variable

11 years agoregress: Skip check for configuration restore object (not yet fully implemented)
Eric Bollengier [Wed, 18 Jan 2012 08:53:21 +0000 (09:53 +0100)]
regress: Skip check for configuration restore object (not yet fully implemented)

11 years agoFix Windows build
Kern Sibbald [Tue, 17 Jan 2012 20:31:27 +0000 (21:31 +0100)]
Fix Windows build

11 years agoUpdate ReleaseNotes
Kern Sibbald [Tue, 17 Jan 2012 20:11:37 +0000 (21:11 +0100)]
Update ReleaseNotes

11 years agoUpdate ChangeLog and ReleaseNotes
Kern Sibbald [Tue, 17 Jan 2012 19:52:36 +0000 (20:52 +0100)]
Update ChangeLog and ReleaseNotes

11 years agoTweak call to cancel_job.
Marco van Wieringen [Tue, 17 Jan 2012 19:49:34 +0000 (20:49 +0100)]
Tweak call to cancel_job.

11 years agoUpdate po files
Kern Sibbald [Tue, 17 Jan 2012 19:45:40 +0000 (20:45 +0100)]
Update po files

11 years agoUpdate version date
Kern Sibbald [Tue, 17 Jan 2012 19:39:59 +0000 (20:39 +0100)]
Update version date

11 years agoDefinitive fix for MySQL MaxValue problem
Kern Sibbald [Tue, 17 Jan 2012 14:15:20 +0000 (15:15 +0100)]
Definitive fix for MySQL MaxValue problem

11 years agoFix warning reported by clang
Eric Bollengier [Fri, 6 Jan 2012 08:33:47 +0000 (09:33 +0100)]
Fix warning reported by clang

11 years agoFix python module compilation
Eric Bollengier [Tue, 17 Jan 2012 08:24:41 +0000 (09:24 +0100)]
Fix python module compilation

11 years agoInitialize delta_seq to -1 because 0 means that we have already a version
Eric Bollengier [Sun, 15 Jan 2012 16:16:58 +0000 (17:16 +0100)]
Initialize delta_seq to -1 because 0 means that we have already a version

11 years agoAdapt bfileview for bvfs tables
Eric Bollengier [Wed, 11 Jan 2012 21:21:25 +0000 (22:21 +0100)]
Adapt bfileview for bvfs tables

11 years agoSet job status to running when restore job really starts
Kern Sibbald [Wed, 11 Jan 2012 10:27:41 +0000 (11:27 +0100)]
Set job status to running when restore job really starts

11 years agoTweak restore.h to include sys/types.h
Marco van Wieringen [Mon, 16 Jan 2012 18:15:47 +0000 (19:15 +0100)]
Tweak restore.h to include sys/types.h

For things like int64_t to be defined include sys/types.h
as on some platforms that is not included by default.

11 years agoTweak bat so drives are visable in content menu.
Marco van Wieringen [Mon, 16 Jan 2012 18:06:42 +0000 (19:06 +0100)]
Tweak bat so drives are visable in content menu.

11 years agoBack out bad MinValue patch
Kern Sibbald [Sun, 15 Jan 2012 12:21:00 +0000 (13:21 +0100)]
Back out bad MinValue patch

11 years agoFix bug #1810 use single quotes instead of double quotes for MinValue and MaxValue...
Kern Sibbald [Sat, 14 Jan 2012 09:41:25 +0000 (10:41 +0100)]
Fix bug #1810 use single quotes instead of double quotes for MinValue and MaxValue in catalog

11 years agoMove ini.c to libbaccfg from libbac
Marco van Wieringen [Wed, 4 Jan 2012 18:40:00 +0000 (19:40 +0100)]
Move ini.c to libbaccfg from libbac

11 years agoTweak fix indent
Kern Sibbald [Wed, 11 Jan 2012 18:18:42 +0000 (19:18 +0100)]
Tweak fix indent

11 years agoRemove ifdeffing that turned off JS_Warning status -- must have been missed test...
Kern Sibbald [Tue, 10 Jan 2012 15:35:08 +0000 (16:35 +0100)]
Remove ifdeffing that turned off JS_Warning status -- must have been missed test code

11 years agoLimit migration/copy jobs to starting 100 at a time
Kern Sibbald [Sat, 7 Jan 2012 15:32:14 +0000 (16:32 +0100)]
Limit migration/copy jobs to starting 100 at a time

11 years agoAdd support for soname setting in libtool.
Marco van Wieringen [Tue, 10 Jan 2012 12:33:55 +0000 (13:33 +0100)]
Add support for soname setting in libtool.

We allow to specify the SONAME in a library so we can create
a libbaccats-<backend>-<version>.so which has an internal
soname of libbaccats-<version>.so This way each catalog
backend is a direct replacement of the dummy libbaccats
library and copying and linking works without the ldconfig
trying to be to smart. When no symlink exists ldconfig
will create one (it might point to the wrong one however)
but if you only install one it cannot go wrong. Also a
nice side effect is that if we create the symlink ldconfig
now doesn't replace it with a new one as it thinks its a
stale or wrong link.

install-default-backend is updated to create the symlink
in the same way that ldconfig does and point to the
libbaccats-<backend>.so which points to
libbaccats-<backend>-<version>.so

11 years agoMake error somewhat more understandable.
Marco van Wieringen [Mon, 9 Jan 2012 13:41:11 +0000 (14:41 +0100)]
Make error somewhat more understandable.