]> git.sur5r.net Git - bacula/bacula/log
bacula/bacula
11 years agoFinal fix for #1859 missed one query.
Marco van Wieringen [Wed, 5 Sep 2012 07:22:52 +0000 (09:22 +0200)]
Final fix for #1859 missed one query.

11 years agobpluginfo - Utility tool display various information
Radoslaw Korzeniewski [Thu, 30 Aug 2012 13:07:11 +0000 (15:07 +0200)]
bpluginfo - Utility tool display various information

11 years agoTweak restore path prompt
Kern Sibbald [Mon, 20 Aug 2012 06:10:32 +0000 (08:10 +0200)]
Tweak restore path prompt

11 years agoBackport more master code
Kern Sibbald [Sun, 19 Aug 2012 11:16:58 +0000 (13:16 +0200)]
Backport more master code

11 years agoFix Makefile.in so that testfind builds with acl dependency
Kern Sibbald [Sun, 19 Aug 2012 06:33:15 +0000 (08:33 +0200)]
Fix Makefile.in so that testfind builds with acl dependency

11 years agoMake dump_resource respect console ACL's
Kern Sibbald [Sat, 18 Aug 2012 13:46:03 +0000 (15:46 +0200)]
Make dump_resource respect console ACL's

11 years agoBackport more from master
Kern Sibbald [Sat, 18 Aug 2012 13:45:32 +0000 (15:45 +0200)]
Backport more from master

11 years agobackport code from master
Kern Sibbald [Fri, 17 Aug 2012 18:11:23 +0000 (20:11 +0200)]
backport code from master

11 years agoFix #1923 about MySQL 4 support for BVFS
Eric Bollengier [Thu, 16 Aug 2012 09:30:00 +0000 (11:30 +0200)]
Fix #1923 about MySQL 4 support for BVFS

11 years agobweb: Fix #1909 about expire calculation
Eric Bollengier [Tue, 10 Jul 2012 15:49:26 +0000 (17:49 +0200)]
bweb: Fix #1909 about expire calculation

11 years agoFix #1902 about bad status slots output
Eric Bollengier [Thu, 5 Jul 2012 07:58:43 +0000 (09:58 +0200)]
Fix #1902 about bad status slots output

11 years agoFix Sigma Copy bug #4377
Kern Sibbald [Thu, 5 Jul 2012 06:49:11 +0000 (08:49 +0200)]
Fix Sigma Copy bug #4377

11 years agoTweak debug
Kern Sibbald [Thu, 5 Jul 2012 06:48:46 +0000 (08:48 +0200)]
Tweak debug

11 years agobweb: Fix #1904 about sql problem
Eric Bollengier [Thu, 5 Jul 2012 07:02:42 +0000 (09:02 +0200)]
bweb: Fix #1904 about sql problem

11 years agoFix bsmtp
Marco van Wieringen [Tue, 3 Jul 2012 15:31:27 +0000 (17:31 +0200)]
Fix bsmtp

Add extra option -4 and -6 like most cmds do nowadays. Fixed usage
message, manpage and some other small bugs.

11 years agoTweak layout.
Marco van Wieringen [Tue, 3 Jul 2012 14:23:56 +0000 (16:23 +0200)]
Tweak layout.

11 years agoReset bsmtp to only send to IPv4 mailhosts.
Marco van Wieringen [Tue, 3 Jul 2012 14:11:12 +0000 (16:11 +0200)]
Reset bsmtp to only send to IPv4 mailhosts.

As part of the support for getaddrinfo which replaces the obsolete
gethostbyname interface in POSIX we can now connect to IPv6 mailhosts.
As it seems on a lot of hosts localhost is defined first as IPv6
address and then as IPv4 address. As a result of this bsmtp tries
to connect to a local mailhost using the ipv6 protocol but most
people forget to allow relay rights for IPv6 local SMTP traffic
and as such the mail is dropped. So for now we revert the behaviour
of bsmtp to only connect to IPv4 mailhosts unless the -a option
is given which will query the name service for any suitable protocol.

11 years agoUpdate version date
Kern Sibbald [Thu, 28 Jun 2012 14:52:03 +0000 (16:52 +0200)]
Update version date

11 years agoTweak ReleaseNotes
Kern Sibbald [Thu, 28 Jun 2012 14:51:33 +0000 (16:51 +0200)]
Tweak ReleaseNotes

11 years agoTweak release + update po
Kern Sibbald [Wed, 27 Jun 2012 13:42:07 +0000 (15:42 +0200)]
Tweak release + update po

11 years agoAdd extra test for unsupported Protocol Families.
Marco van Wieringen [Wed, 27 Jun 2012 13:32:38 +0000 (15:32 +0200)]
Add extra test for unsupported Protocol Families.

With getaddrinfo we could get back theorethically
an protocol family that we don't support on the
local client. Now we set our hints better we are
probably safe but lets put in some extra safeguards.

11 years agoCreate ChangeLog Release notes and update version.h
Kern Sibbald [Wed, 27 Jun 2012 11:48:03 +0000 (13:48 +0200)]
Create ChangeLog Release notes and update version.h

11 years agoTweak record write state
Kern Sibbald [Wed, 27 Jun 2012 11:29:24 +0000 (13:29 +0200)]
Tweak record write state

11 years agoFix inet_pton call.
Marco van Wieringen [Tue, 26 Jun 2012 19:43:19 +0000 (21:43 +0200)]
Fix inet_pton call.

inet_pton returns 1 when it succeeds so the test was wrong. When
it fails its either returns 0 if not a correct ipv6 address or
-1 when the protocol family is not known. Checked the man page
for both Linux and Solaris and this seems like an oversight as
the definition is the same on these OSes and probably on all others
as these functions tend to be rather portable.

Also did some small rewrite of the code so its easier to read and
the braces are easier to interpret.

11 years agoReal fix of bug #1897
Marco van Wieringen [Tue, 26 Jun 2012 19:11:17 +0000 (21:11 +0200)]
Real fix of bug #1897

We are only interested in SOCK_STREAM and protocol IPPROTO_TCP
as that is the way we communicate. When we don't specify that
in the hints for getaddrinfo we also get SOCK_DGRAM/IPPROTO_UDP
and on Linux SOCK_RAW. And possibly more on other platforms.
So lets me more specific. The older fix to suppress duplicates
is also useable as a user might specify two or more names
that resolve to the same address and we want to suppress duplicates
also.

11 years agoFix bug #1891
Marco van Wieringen [Tue, 26 Jun 2012 15:14:50 +0000 (17:14 +0200)]
Fix bug #1891

Both the storage daemon and director should use the correct name
in the usage output. The file daemon already uses bacula-fd and
from now on bacula-sd and bacula-dir is used for the other daemons
in their usage output.

11 years agoFix bug #1859
Marco van Wieringen [Tue, 26 Jun 2012 15:05:35 +0000 (17:05 +0200)]
Fix bug #1859

SQL syntax error in UPDATE Counters and INSERT INTO Counters using
"Counters.MinValue" and "Counters.MaxValue"

Create specific queries in sql_cmds.c for the two queries in the
code that select and update counter records in the database.

All default queries in the sql_cmds.c are static from now on as
we don't want to polute the namespace with data that is only used
within sql_cmds.c to initialize the backend specific sql tables.

Removed all trailing spaces in sql_cmds.c

11 years agoTweak layout.
Marco van Wieringen [Tue, 26 Jun 2012 08:28:27 +0000 (10:28 +0200)]
Tweak layout.

11 years agoFirst try at fixing bug #1897
Marco van Wieringen [Mon, 25 Jun 2012 17:42:28 +0000 (19:42 +0200)]
First try at fixing bug #1897

Remove any duplicate addresses on a addr dlist.
For listening it makes no sense as we cannot listen
multiple times on the same address with different sockets.
And for outbound connecting its also kind of strange to
try to connect multiple times to the same address.

11 years agoFix bat from eating all Dir connections -- fixes bug #1872
Kern Sibbald [Mon, 18 Jun 2012 21:36:18 +0000 (23:36 +0200)]
Fix bat from eating all Dir connections -- fixes bug #1872

11 years agoConvert write_rec_to_block() to a state machine
Kern Sibbald [Sat, 23 Jun 2012 11:40:25 +0000 (13:40 +0200)]
Convert write_rec_to_block() to a state machine

11 years agoFix typo
Marco van Wieringen [Fri, 22 Jun 2012 08:57:47 +0000 (10:57 +0200)]
Fix typo

11 years agoTweak Storage warning message for restore when StorageId not found
Kern Sibbald [Thu, 21 Jun 2012 20:33:03 +0000 (22:33 +0200)]
Tweak Storage warning message for restore when StorageId not found

11 years agoSend level before the fileset in estimate_cmd() like in backup()
Eric Bollengier [Mon, 4 Jun 2012 16:12:37 +0000 (18:12 +0200)]
Send level before the fileset in estimate_cmd() like in backup()

11 years agoFix typo in sqlite3 DB upgrade -- fixes bug #1895
Kern Sibbald [Mon, 18 Jun 2012 17:25:43 +0000 (19:25 +0200)]
Fix typo in sqlite3 DB upgrade -- fixes bug #1895

11 years agoBack port fixes from BEE to fix Windows bug #1892
Kern Sibbald [Mon, 18 Jun 2012 12:28:55 +0000 (14:28 +0200)]
Back port fixes from BEE to fix Windows bug #1892

11 years agoAdd block checksum flag to version.h
Kern Sibbald [Fri, 15 Jun 2012 13:19:22 +0000 (15:19 +0200)]
Add block checksum flag to version.h

11 years agoAdd block checksum debug code
Kern Sibbald [Fri, 15 Jun 2012 13:14:44 +0000 (15:14 +0200)]
Add block checksum debug code

11 years agoTweak second part of fix for #1893
Marco van Wieringen [Fri, 15 Jun 2012 13:07:07 +0000 (15:07 +0200)]
Tweak second part of fix for #1893

11 years agoFix bug #1893
Marco van Wieringen [Fri, 15 Jun 2012 12:16:58 +0000 (14:16 +0200)]
Fix bug #1893

Only try to close an database transaction when the database
is opened. Only destroy an rwl_lock when it is initialized.
As dbcheck only calls db_init_database and then db_close_database
the database is never opened and we try to end an transaction
on a non-opened database, the rwl_destroy will also give
an error (which is ignored) as the rwl_lock is only initialized
on opening of the database.

11 years agoRemove restriction of network buffer size being multiple of a tape block
Kern Sibbald [Wed, 13 Jun 2012 05:55:47 +0000 (07:55 +0200)]
Remove restriction of network buffer size being multiple of a tape block

11 years agoRecompile configure.in
Kern Sibbald [Mon, 11 Jun 2012 15:30:34 +0000 (17:30 +0200)]
Recompile configure.in

11 years agoAdd rudimentary support for saving AFS acls.
Marco van Wieringen [Mon, 11 Jun 2012 15:16:40 +0000 (17:16 +0200)]
Add rudimentary support for saving AFS acls.

    Add support for saving and restoring AFS acls using the
    pioctl interface of (Open)AFS. This is mostly a proof of
    concept its no where ready for production and may put
    a enormous load on your AFS cell so please use it only
    for testing. It also only solves part of the AFS backup
    problem as we only save and restore acls on directories
    on an AFS filesystem but not the actual cell configuration
    etc. For that we advice you to use the native tooling
    using some script or the bpipe plugin.

11 years agoAdd missing systemd file
Kern Sibbald [Mon, 11 Jun 2012 14:53:09 +0000 (16:53 +0200)]
Add missing systemd file

11 years agoUpdate developer
Kern Sibbald [Mon, 11 Jun 2012 14:51:01 +0000 (16:51 +0200)]
Update developer

11 years agoAdd clean
Kern Sibbald [Mon, 11 Jun 2012 14:50:49 +0000 (16:50 +0200)]
Add clean

11 years agoUpdate notes, version to 5.2.9
Kern Sibbald [Mon, 11 Jun 2012 14:37:27 +0000 (16:37 +0200)]
Update notes, version to 5.2.9

11 years agoUpdate ReleaseNotes, ChangeLog, and po files
Kern Sibbald [Mon, 11 Jun 2012 14:06:47 +0000 (16:06 +0200)]
Update ReleaseNotes, ChangeLog, and po files

11 years agoRecompile configure.in
Kern Sibbald [Mon, 11 Jun 2012 14:06:24 +0000 (16:06 +0200)]
Recompile configure.in

11 years agoUpdate comment in pushtags
Kern Sibbald [Mon, 11 Jun 2012 14:05:11 +0000 (16:05 +0200)]
Update comment in pushtags

11 years agoEnsure cancel status is set for canceled duplicate jobs -- partial fix for bug #1851
Kern Sibbald [Sun, 10 Jun 2012 07:42:41 +0000 (09:42 +0200)]
Ensure cancel status is set for canceled duplicate jobs -- partial fix for bug #1851

11 years agoEnhance Win32 error messages -- fixes bug #1879
Kern Sibbald [Sun, 10 Jun 2012 07:41:05 +0000 (09:41 +0200)]
Enhance Win32 error messages -- fixes bug #1879

11 years agoUpdate version and date
Kern Sibbald [Sat, 9 Jun 2012 10:38:49 +0000 (12:38 +0200)]
Update version and date

11 years agoApply patch from bug 1876 to permit dot commands in a runscript
Kern Sibbald [Sat, 9 Jun 2012 10:35:02 +0000 (12:35 +0200)]
Apply patch from bug 1876 to permit dot commands in a runscript

11 years agoRemove config variables from examples/devices fixes bug #1884
Kern Sibbald [Sat, 9 Jun 2012 10:08:53 +0000 (12:08 +0200)]
Remove config variables from examples/devices fixes bug #1884

11 years agoAdd more debug code for bug 1885
Kern Sibbald [Sat, 9 Jun 2012 09:48:33 +0000 (11:48 +0200)]
Add more debug code for bug 1885

11 years agoAdd more debug to block.c when read rejected
Kern Sibbald [Sat, 9 Jun 2012 09:40:45 +0000 (11:40 +0200)]
Add more debug to block.c when read rejected

11 years agoFail job that attempts to read from closed device -- reported in bug 1885 but not...
Kern Sibbald [Sat, 9 Jun 2012 09:33:23 +0000 (11:33 +0200)]
Fail job that attempts to read from closed device -- reported in bug 1885 but not fixed

11 years agoRecompile configure
Kern Sibbald [Sat, 9 Jun 2012 09:07:11 +0000 (11:07 +0200)]
Recompile configure

11 years agoDetect Python 2.7 fixes bug #1888
Kern Sibbald [Sat, 9 Jun 2012 09:00:14 +0000 (11:00 +0200)]
Detect Python 2.7 fixes bug #1888

11 years agoRecompile configure
Kern Sibbald [Sat, 9 Jun 2012 08:41:42 +0000 (10:41 +0200)]
Recompile configure

11 years agoApply systemd patch from bug #1886
Kern Sibbald [Sat, 9 Jun 2012 08:41:07 +0000 (10:41 +0200)]
Apply systemd patch from bug #1886

11 years agoRewrite some SD subroutines as class members
Kern Sibbald [Fri, 8 Jun 2012 15:51:54 +0000 (17:51 +0200)]
Rewrite some SD subroutines as class members

11 years agoNew overhaul of xattr code.
Marco van Wieringen [Tue, 5 Jun 2012 16:43:25 +0000 (18:43 +0200)]
New overhaul of xattr code.

Delay allocation to last minute when we are mostly sure we can
save a real xattr and we only need to get the actual value of it.
This way we don't have to free data on strange code paths. Also
made most functions have one exit point so things are more clean.

11 years agoUse IPPROTO_TCP for SOL_TCP if SOL_TCP isn't defined.
Marco van Wieringen [Sun, 3 Jun 2012 21:06:58 +0000 (23:06 +0200)]
Use IPPROTO_TCP for SOL_TCP if SOL_TCP isn't defined.

On a lot of platforms (*BSD, Solaris etc.) SOL_TCP isn't defined
but IPPROTO_TCP is so use that.

11 years agoFix compiler warning.
Marco van Wieringen [Sun, 3 Jun 2012 17:40:29 +0000 (19:40 +0200)]
Fix compiler warning.

11 years agoUpdate version date
Kern Sibbald [Sat, 2 Jun 2012 11:29:33 +0000 (13:29 +0200)]
Update version date

11 years agoTweak update date
Kern Sibbald [Sat, 2 Jun 2012 10:06:28 +0000 (12:06 +0200)]
Tweak update date

11 years agoUpdate po files
Kern Sibbald [Sat, 2 Jun 2012 10:05:50 +0000 (12:05 +0200)]
Update po files

11 years agoUpdate ChangeLog and ReleaseNotes
Kern Sibbald [Sat, 2 Jun 2012 10:05:40 +0000 (12:05 +0200)]
Update ChangeLog and ReleaseNotes

11 years agoCorrect Qt version needed for bat
Kern Sibbald [Sat, 2 Jun 2012 08:20:59 +0000 (10:20 +0200)]
Correct Qt version needed for bat

11 years agoTweak rebuild config.h.in
Marco van Wieringen [Fri, 1 Jun 2012 18:22:59 +0000 (20:22 +0200)]
Tweak rebuild config.h.in

11 years agoTweak define so autoheader doesn't complain.
Marco van Wieringen [Fri, 1 Jun 2012 18:22:00 +0000 (20:22 +0200)]
Tweak define so autoheader doesn't complain.

11 years agoUpdate version date
Kern Sibbald [Fri, 1 Jun 2012 16:30:12 +0000 (18:30 +0200)]
Update version date

11 years agoTurn on SD deadlock detection by default
Kern Sibbald [Fri, 1 Jun 2012 16:29:07 +0000 (18:29 +0200)]
Turn on SD deadlock detection by default

11 years agoTweak name of the database
Bruno Friedmann [Thu, 16 Feb 2012 15:51:38 +0000 (16:51 +0100)]
Tweak name of the database

Add instructions for creating the database
Add dir_user and dir_group as owner in case of non-root

Signed-off-by: Bruno Friedmann <bruno@ioda-net.ch>
Signed-off-by: Marco van Wieringen <mvw@planets.elm.net>
11 years agoTry to use multi-row insert statements for mysql.
Marco van Wieringen [Thu, 19 Apr 2012 12:04:41 +0000 (14:04 +0200)]
Try to use multi-row insert statements for mysql.

As it seems we could speedup the insert of the batch mode
somewhat by using multi-row insert statements. This implements
a very simple routine which batch up 32 inserts into one
query before pushing it to the database. The 32 is arbitrary
and just a test value for now we can always bump or lower it.

11 years agoFix bug #1880 ltdl.m4 missing for new feature.
Marco van Wieringen [Fri, 1 Jun 2012 13:24:49 +0000 (15:24 +0200)]
Fix bug #1880 ltdl.m4 missing for new feature.

11 years agoTweak recompile configure.in
Marco van Wieringen [Fri, 1 Jun 2012 09:27:48 +0000 (11:27 +0200)]
Tweak recompile configure.in

11 years agoFix bug #1870 GNU binutils-gold build failure.
Marco van Wieringen [Fri, 1 Jun 2012 09:24:53 +0000 (11:24 +0200)]
Fix bug #1870 GNU binutils-gold build failure.

Use some extra libtool magic to determine what lib to use
to get dlopen and friends for loading plugins from libbac.

11 years agoFix bug #1874 crash with xattr support on a BTRFS filesystem
Marco van Wieringen [Fri, 1 Jun 2012 09:21:32 +0000 (11:21 +0200)]
Fix bug #1874 crash with xattr support on a BTRFS filesystem

Add some extra safeguards that structure are always initialized
the way we think they should be and a special code path doesn't
give freeing failures on non allocated memory.

11 years agoAdd new empty netinet/tcp.h so Windows compile works
Kern Sibbald [Thu, 31 May 2012 13:31:10 +0000 (15:31 +0200)]
Add new empty netinet/tcp.h so Windows compile works

11 years agoEliminate compiler warning in stored/dircmd.c
Kern Sibbald [Thu, 31 May 2012 07:24:29 +0000 (09:24 +0200)]
Eliminate compiler warning in stored/dircmd.c

11 years agoFix TCP Heartbeat code
Kern Sibbald [Wed, 30 May 2012 17:02:33 +0000 (19:02 +0200)]
Fix TCP Heartbeat code

11 years agoTweak connect error.
Marco van Wieringen [Wed, 30 May 2012 14:15:36 +0000 (16:15 +0200)]
Tweak connect error.

On lookup of a hostname we could get back both IPv4 and IPV6 addresses
for a given host. But we may only support IPV4 on the local host
and as such trying to create an IPV6 socket will fail. If we check
the return code of the socket call for EAFNOSUPPORT we catch such
an error and can continue trying to create a socket type that is
supported.

11 years agoTweak debug levels and messages
Kern Sibbald [Tue, 29 May 2012 19:56:25 +0000 (21:56 +0200)]
Tweak debug levels and messages

11 years agoTweak conio comment
Kern Sibbald [Mon, 28 May 2012 16:31:59 +0000 (18:31 +0200)]
Tweak conio comment

11 years agoAlign conio.c struct at 8 bytes to fix Sparc bus error.
Kern Sibbald [Mon, 28 May 2012 13:44:38 +0000 (15:44 +0200)]
Align conio.c struct at 8 bytes to fix Sparc bus error.

11 years agoTweak recompile configure.in
Kern Sibbald [Mon, 28 May 2012 09:26:19 +0000 (11:26 +0200)]
Tweak recompile configure.in

11 years agoOn some platforms intptr_t is in an other include file.
Marco van Wieringen [Thu, 19 Apr 2012 12:08:40 +0000 (14:08 +0200)]
On some platforms intptr_t is in an other include file.

11 years agoAdd support for fcntl(fd, F_CLOSEM) to close filedescriptors.
Marco van Wieringen [Thu, 19 Apr 2012 12:05:42 +0000 (14:05 +0200)]
Add support for fcntl(fd, F_CLOSEM) to close filedescriptors.

11 years agoUse closefrom if available instead of trying to close fds ourself.
Marco van Wieringen [Thu, 19 Apr 2012 12:05:34 +0000 (14:05 +0200)]
Use closefrom if available instead of trying to close fds ourself.

11 years agoFix class member shadowing.
Marco van Wieringen [Thu, 19 Apr 2012 12:05:23 +0000 (14:05 +0200)]
Fix class member shadowing.

"devlock.c", line 60: Warning: priority hides devlock::priority.

11 years agoMove storages tls initialization to proper place.
Marco van Wieringen [Thu, 19 Apr 2012 12:05:13 +0000 (14:05 +0200)]
Move storages tls initialization to proper place.

We initialize all tls stuff in the check_resources function except
for the tls stuff for storages which we initialize in the
check_catalog function because we walk the storages there already.
This might be an optimization but it doesn't make sense its better
to check the whole resources stuff in the check_resources function
as the name seems to imply that is what is done there.

11 years agoFix Copyright on init scripts suse, add specific daemon user & group
Bruno Friedmann [Thu, 19 Apr 2012 12:05:01 +0000 (14:05 +0200)]
Fix Copyright on init scripts suse, add specific daemon user & group

Signed-off-by: Marco van Wieringen <mvw@planets.elm.net>
11 years agoAdd support for new POSIX getaddrinfo interface.
Marco van Wieringen [Thu, 19 Apr 2012 12:04:52 +0000 (14:04 +0200)]
Add support for new POSIX getaddrinfo interface.

Support the new POSIX getaddrinfo interface which replaces
the dated gethostbyname interface which is obsoleted in
the POSIX 1003.1 standard. When getaddrinfo is supported
by the OS its the prefered interface as gethostbyname is
not thread-safe and we don't support the gethostbyname_r
thread-safe version of gethostbyname.

The bnet code is changed to support the absolute mimimum set
of the getaddrinfo interface replacing only the core functions
normally performed by gethostbyname. We could add more generic
support for the getaddrinfo function but have not for now.

bstmp is changed to use the full getaddrinfo functionality
so it now can also connect to ipv6 mailhost when getaddrinfo
is used.

Also all sprintf calls in bsmtp are replaced with snprintf calls.

11 years agoFix get_basename() -- rewrite
Kern Sibbald [Fri, 18 May 2012 09:21:57 +0000 (11:21 +0200)]
Fix get_basename() -- rewrite

11 years agoTweak increase debug level to reduce unnecessary debug output
Kern Sibbald [Fri, 18 May 2012 08:12:16 +0000 (10:12 +0200)]
Tweak increase debug level to reduce unnecessary debug output

11 years agoApply James' exchange-fd.c regression fix
Kern Sibbald [Tue, 15 May 2012 18:34:32 +0000 (20:34 +0200)]
Apply James' exchange-fd.c regression fix

11 years agoRemove broke MySQL library detection + cleanup
Kern Sibbald [Sun, 6 May 2012 09:12:45 +0000 (11:12 +0200)]
Remove broke MySQL library detection + cleanup