]> git.ipfire.org Git - thirdparty/bacula.git/log
thirdparty/bacula.git
3 years agowin32: Fix compilation
Eric Bollengier [Thu, 11 Mar 2021 09:38:29 +0000 (10:38 +0100)] 
win32: Fix compilation

3 years agowin32: Fill the version information as CFLAGS
Eric Bollengier [Thu, 11 Mar 2021 08:48:17 +0000 (09:48 +0100)] 
win32: Fill the version information as CFLAGS

3 years agowin32: Fix #7373 binaries are tagged with correct ressource
Norbert Bizet [Thu, 25 Feb 2021 11:27:04 +0000 (06:27 -0500)] 
win32: Fix #7373 binaries are tagged with correct ressource

3 years agoregress: Add checks for SDPacketCheck autotuning
Eric Bollengier [Wed, 10 Mar 2021 14:56:44 +0000 (15:56 +0100)] 
regress: Add checks for SDPacketCheck autotuning

3 years agoAdd some auto-tuning to the SDPacketCheck feature
Eric Bollengier [Wed, 10 Mar 2021 14:55:34 +0000 (15:55 +0100)] 
Add some auto-tuning to the SDPacketCheck feature

3 years agoregress: Add test for very long directive
Eric Bollengier [Tue, 9 Mar 2021 16:30:52 +0000 (17:30 +0100)] 
regress: Add test for very long directive

3 years agoFix #7449 About incorrect JSON output with TlsAllowedCn directive
Eric Bollengier [Tue, 9 Mar 2021 16:06:03 +0000 (17:06 +0100)] 
Fix #7449 About incorrect JSON output with TlsAllowedCn directive

3 years agoHandle lin_tape end of device with new 'Use Lintape=yes' Device directive
Eric Bollengier [Mon, 1 Mar 2021 17:58:39 +0000 (18:58 +0100)] 
Handle lin_tape end of device with new 'Use Lintape=yes' Device directive

  Use MTIOCGET = No
  Use lintape = Yes

3 years agoregress: Allow to run all tests with SDCheckPacket
Eric Bollengier [Fri, 5 Mar 2021 18:08:40 +0000 (19:08 +0100)] 
regress: Allow to run all tests with SDCheckPacket

3 years agoregress: Schedule new sd-packet-check-test in CDASH
Eric Bollengier [Fri, 5 Mar 2021 17:55:52 +0000 (18:55 +0100)] 
regress: Schedule new sd-packet-check-test in CDASH

3 years agoregress: Add sd-packet-check-test
Eric Bollengier [Fri, 5 Mar 2021 17:55:38 +0000 (18:55 +0100)] 
regress: Add sd-packet-check-test

3 years agoAdd SDPacketCheck in the FileDaemon resource to control the network flow
Eric Bollengier [Fri, 5 Mar 2021 14:55:38 +0000 (15:55 +0100)] 
Add SDPacketCheck in the FileDaemon resource to control the network flow

3 years agoFix #7465 About small change for 'status network' message
Michal Rakowski [Fri, 26 Mar 2021 12:17:22 +0000 (13:17 +0100)] 
Fix #7465 About small change for 'status network' message

3 years agoAdd plugins/Makefile.inc into ./configure.in
Eric Bollengier [Tue, 6 Apr 2021 07:23:07 +0000 (09:23 +0200)] 
Add plugins/Makefile.inc into ./configure.in

3 years agoAdd escape_filename_pathsep() function to lib
Radosław Korzeniewski [Fri, 2 Apr 2021 13:11:10 +0000 (15:11 +0200)] 
Add escape_filename_pathsep() function to lib

3 years agometaplugin: Add support for FT_LNKSAVED at restore.
Radosław Korzeniewski [Fri, 2 Apr 2021 14:23:20 +0000 (16:23 +0200)] 
metaplugin: Add support for FT_LNKSAVED at restore.

3 years agoFix org#2604 About columns alignment of 'Terminated Jobs' section
Wanderlei Huttel [Fri, 2 Apr 2021 08:17:34 +0000 (10:17 +0200)] 
Fix org#2604 About columns alignment of 'Terminated Jobs' section

3 years agodird: fix calls to start_storage_daemon_job() after introducing Storage Manager
Michal Rakowski [Thu, 1 Apr 2021 11:25:18 +0000 (13:25 +0200)] 
dird: fix calls to start_storage_daemon_job() after introducing Storage Manager

3 years agoregress: Schedule new jlist-test in CDASH
Eric Bollengier [Thu, 1 Apr 2021 11:57:45 +0000 (13:57 +0200)] 
regress: Schedule new jlist-test in CDASH

3 years agoregress: Schedule new storage manager tests
Eric Bollengier [Thu, 1 Apr 2021 11:55:09 +0000 (13:55 +0200)] 
regress: Schedule new storage manager tests

3 years agoregress: Add test for new keywords in list events command
Eric Bollengier [Thu, 1 Apr 2021 11:50:16 +0000 (13:50 +0200)] 
regress: Add test for new keywords in list events command

3 years agoAdd new options to list events command
Eric Bollengier [Thu, 1 Apr 2021 11:49:54 +0000 (13:49 +0200)] 
Add new options to list events command

3 years agoIgnore the case of characters Storage Policy (Pool/Job resource)
Michal Rakowski [Wed, 31 Mar 2021 16:10:28 +0000 (18:10 +0200)] 
Ignore the case of characters Storage Policy (Pool/Job resource)

3 years agoregress: Add tests for the new .jlist command
Eric Bollengier [Wed, 31 Mar 2021 15:39:15 +0000 (17:39 +0200)] 
regress: Add tests for the new .jlist command

3 years agoAdd bconsole .jlist command to get JSON output from regular list commands
Eric Bollengier [Wed, 31 Mar 2021 15:38:43 +0000 (17:38 +0200)] 
Add bconsole .jlist command to get JSON output from regular list commands

3 years agoregress: Add function to test json string in bperl
Eric Bollengier [Wed, 31 Mar 2021 15:28:43 +0000 (17:28 +0200)] 
regress: Add function to test json string in bperl

3 years agoregress: Tweak stop-restart-test
Michal Rakowski [Mon, 29 Mar 2021 20:36:25 +0000 (22:36 +0200)] 
regress: Tweak stop-restart-test

3 years agoregress: add tests for storage manager groups
Michal Rakowski [Mon, 29 Mar 2021 20:35:17 +0000 (22:35 +0200)] 
regress: add tests for storage manager groups

Added following tests:
- store-mngr-busy-dev-test
- store-mngr-connection-err-test
- store-mngr-invalid-dev-test
- store-mngr-leastused-test

3 years agoIntroduce Storage Manager and Storage Groups feature.
Michal Rakowski [Mon, 29 Mar 2021 20:33:59 +0000 (22:33 +0200)] 
Introduce Storage Manager and Storage Groups feature.

Description:
------------
1. All of the director's storage-related fields were moved from the
   jcr struct into the new Storage Manager class.
   From now one all of the storage operations (get, set, ...) should be performed
   using manager.
2. Introduced Storage Groups along with different policies (for now only
   the default one and LeastUsed). Storage now can be defined as a list
   inside the Job or Pool resource, along with its policy.

Big part of this commit is just an refactoring (moving fields from jcr
to the class members, adding some helper methods).

3 years agoDo not abort the job at a low level if the TCP connection is refused
Eric Bollengier [Thu, 25 Mar 2021 14:21:03 +0000 (15:21 +0100)] 
Do not abort the job at a low level if the TCP connection is refused

3 years agometaplugin: Fix PluginObject handling as last item
Radosław Korzeniewski [Tue, 30 Mar 2021 14:19:19 +0000 (16:19 +0200)] 
metaplugin: Fix PluginObject handling as last item

3 years agometaplugin: Update debugging logs.
Radosław Korzeniewski [Tue, 23 Mar 2021 15:02:11 +0000 (16:02 +0100)] 
metaplugin: Update debugging logs.

3 years agometaplugin: Update and extend regression tests.
Radosław Korzeniewski [Mon, 22 Mar 2021 13:25:10 +0000 (14:25 +0100)] 
metaplugin: Update and extend regression tests.

3 years agometaplugin: Fix issue when got cancel on error.
Radosław Korzeniewski [Mon, 22 Mar 2021 12:37:57 +0000 (13:37 +0100)] 
metaplugin: Fix issue when got cancel on error.

3 years agoUpdate pluginlib, add bin data to display.
Radosław Korzeniewski [Mon, 22 Mar 2021 12:36:58 +0000 (13:36 +0100)] 
Update pluginlib, add bin data to display.

3 years agoregress: Add function to check the storage source
Eric Bollengier [Tue, 30 Mar 2021 11:56:48 +0000 (13:56 +0200)] 
regress: Add function to check the storage source

3 years agoregress: Add test for to check the storage selected in the menu and the job log
Eric Bollengier [Tue, 30 Mar 2021 10:06:40 +0000 (12:06 +0200)] 
regress: Add test for to check the storage selected in the menu and the job log

3 years agoFix compilation for check_bacula.c reported by Dan
Eric Bollengier [Tue, 30 Mar 2021 06:32:46 +0000 (08:32 +0200)] 
Fix compilation for check_bacula.c reported by Dan

3 years agoFix check_bacula.c to ignore daemon events
Eric Bollengier [Thu, 18 Mar 2021 10:26:25 +0000 (11:26 +0100)] 
Fix check_bacula.c to ignore daemon events

Description:
------------

check_bacula fails on file daemon

$ check_bacula -H localhost -D fd -M vlbackup.obvsg.at-mon -K secretsecret
BACULA CRITICAL - FileDaemon Status: Events: code=FC0002 daemon=vlbackup.obvsg.at-fd ref=0x7fe29000ee58 type=connection source=xxx-mon text=Director connection

Workaround:
-----------

It should be possible to disable events for these filedaemons.

3 years agoregress: Fix restart-reschedule-test
Michal Rakowski [Tue, 23 Mar 2021 11:53:14 +0000 (12:53 +0100)] 
regress: Fix restart-reschedule-test

Change test to check for canceled jobs instead
of incomplete ones.

3 years agoFix for copying pluginObject during copy jobs
Michal Rakowski [Tue, 23 Mar 2021 11:34:34 +0000 (12:34 +0100)] 
Fix for copying pluginObject during copy jobs

3 years agoAdd some more handling for STREAM_PLUGIN_META_*
Michal Rakowski [Tue, 23 Mar 2021 10:08:37 +0000 (11:08 +0100)] 
Add some more handling for STREAM_PLUGIN_META_*

3 years agoFix Bacula_11.0 build by inverting dependencies.
Norbert Bizet [Wed, 3 Mar 2021 16:06:14 +0000 (11:06 -0500)] 
Fix Bacula_11.0 build by inverting dependencies.

3 years agoImprove the FD cancel function while stopping the heartbeat process
Eric Bollengier [Mon, 22 Mar 2021 08:17:19 +0000 (09:17 +0100)] 
Improve the FD cancel function while stopping the heartbeat process

While stopping the FD, the heartbeat thread can stop very quickly
and the code that helps to synchronize the two thread was not able
to make the difference between a heartbeat not started and stopped.

3 years agotypo events_send_msg()
Alain Spineux [Fri, 19 Mar 2021 09:53:50 +0000 (10:53 +0100)] 
typo events_send_msg()

3 years agoregress: Update metaplugin protocol tests.
Radosław Korzeniewski [Thu, 11 Mar 2021 10:56:20 +0000 (11:56 +0100)] 
regress: Update metaplugin protocol tests.

3 years agoFix #7451 About deleted files incorrectly kept in Virtual Full
Eric Bollengier [Tue, 9 Mar 2021 12:08:02 +0000 (13:08 +0100)] 
Fix #7451 About deleted files incorrectly kept in Virtual Full

3 years agoregress: Add test to reproduce the VF issue with deleted files
Eric Bollengier [Tue, 9 Mar 2021 11:57:12 +0000 (12:57 +0100)] 
regress: Add test to reproduce the VF issue with deleted files

3 years agoFix reload issue when a Job doesn't have a Pool defined
Eric Bollengier [Wed, 3 Mar 2021 15:37:24 +0000 (16:37 +0100)] 
Fix reload issue when a Job doesn't have a Pool defined

3 years agoPossible fix for SD high memory usage problem
Kern Sibbald [Tue, 2 Mar 2021 10:23:01 +0000 (11:23 +0100)] 
Possible fix for SD high memory usage problem

3 years agoFix #7286 DIR segfault when doing a "dir" command in a restore
Alain Spineux [Wed, 3 Mar 2021 10:54:16 +0000 (11:54 +0100)] 
Fix #7286 DIR segfault when doing a "dir" command in a restore

- this initialize "ua->jcr->db" as it is done few lines below at the first
  initialization
- the ticket shows that ua->db was used successfully by other functions
  few line before the crash while ua->jcr->db == NULL.
- it could be a fix (I cannot shows that)
- it could be a new bug (I don't see how)
- it is probably an improvement as the first and the next calls will
  return a consistent "ua"

3 years agoFix windows compilation issue
Norbert Bizet [Wed, 3 Mar 2021 13:01:41 +0000 (08:01 -0500)] 
Fix windows compilation issue

3 years agotweak comments in class IPADDR
Alain Spineux [Mon, 1 Mar 2021 12:47:23 +0000 (13:47 +0100)] 
tweak comments in class IPADDR

3 years agoTweak debug messages in fd_plugin.c
Eric Bollengier [Tue, 16 Feb 2021 08:15:06 +0000 (09:15 +0100)] 
Tweak debug messages in fd_plugin.c

3 years agometaplugin: Add hardlink support to protocol.
Radosław Korzeniewski [Tue, 16 Mar 2021 12:43:32 +0000 (13:43 +0100)] 
metaplugin: Add hardlink support to protocol.

3 years agoAdd metadata support for metaplugin.
Radosław Korzeniewski [Thu, 11 Mar 2021 10:59:46 +0000 (11:59 +0100)] 
Add metadata support for metaplugin.

3 years agoFix ff_pkt->plug_meta handling.
Radosław Korzeniewski [Tue, 16 Mar 2021 10:58:37 +0000 (11:58 +0100)] 
Fix ff_pkt->plug_meta handling.

The ff_pkt->plug_meta was not cleared after use so the
next pass gets garbage failing the job.

3 years agoFix for plugin file's metadata backing up flow
Michal Rakowski [Tue, 9 Mar 2021 15:28:38 +0000 (16:28 +0100)] 
Fix for plugin file's metadata backing up flow

Fix backing up of file metadata - previously it was not related to each
single file as it should be. Now each file's metadata (if exists) is
being backed up separately.
Some cleaning around that, as well as adding more comments.

3 years agoFix possible memory corruption in the label process
Eric Bollengier [Tue, 2 Mar 2021 15:11:06 +0000 (16:11 +0100)] 
Fix possible memory corruption in the label process

Description:
------------

When the dcr->block is reallocated during the label process,
the copy of the pointer that was made locally was no longer
in sync with the dcr->block pointer.

3 years agoUpdate typeof() usage for configured TYPEOF_FUNC.
Radosław Korzeniewski [Thu, 4 Mar 2021 10:12:04 +0000 (11:12 +0100)] 
Update typeof() usage for configured TYPEOF_FUNC.

3 years agoFix portability issue with typeof.
Radosław Korzeniewski [Thu, 4 Mar 2021 09:44:47 +0000 (10:44 +0100)] 
Fix portability issue with typeof.

This patch adds a new configuration detection code for __typeof() and
introduce new macro TYPEOF_FUNC which should be used together
with HAVE_TYPEOF macro where this function is required.
It fixes  #0002600 when building Bacula on Solaris 11 and SDS.

3 years agoconsole: Fix may be uninitialized in this function.
Radosław Korzeniewski [Wed, 3 Mar 2021 16:43:28 +0000 (17:43 +0100)] 
console: Fix may be uninitialized in this function.

3 years agotools: Fix may be uninitialized in this function.
Radosław Korzeniewski [Wed, 3 Mar 2021 16:21:43 +0000 (17:21 +0100)] 
tools: Fix may be uninitialized in this function.

3 years agoFix compilation issue of the cloud driver
Eric Bollengier [Tue, 2 Mar 2021 10:46:52 +0000 (11:46 +0100)] 
Fix compilation issue of the cloud driver

3 years agoFix "no new line at the end of the file".
Radosław Korzeniewski [Mon, 1 Mar 2021 13:04:12 +0000 (14:04 +0100)] 
Fix "no new line at the end of the file".

3 years agoEnable CAPS between FD/SD
Eric Bollengier [Mon, 1 Mar 2021 11:01:17 +0000 (12:01 +0100)] 
Enable CAPS between FD/SD

3 years agoFix potential segfault in default bhash_info()
Eric Bollengier [Mon, 1 Mar 2021 11:01:01 +0000 (12:01 +0100)] 
Fix potential segfault in default bhash_info()

3 years agoBackport plugins/fd/fd_common.h
Eric Bollengier [Mon, 22 Feb 2021 17:43:52 +0000 (18:43 +0100)] 
Backport plugins/fd/fd_common.h

3 years agobuild: Regenerate configure.
Radosław Korzeniewski [Fri, 19 Feb 2021 14:25:17 +0000 (15:25 +0100)] 
build: Regenerate configure.

3 years agobuild: Update and fix build procedure.
Radosław Korzeniewski [Fri, 19 Feb 2021 14:24:50 +0000 (15:24 +0100)] 
build: Update and fix build procedure.

3 years agobuild: Update configure.in.
Radosław Korzeniewski [Fri, 19 Feb 2021 13:46:58 +0000 (14:46 +0100)] 
build: Update configure.in.

3 years agoBPAM: move code to the proper location and correct regression build.
Radosław Korzeniewski [Fri, 19 Feb 2021 13:14:24 +0000 (14:14 +0100)] 
BPAM: move code to the proper location and correct regression build.

3 years agobuild: Update Plugins build procedure.
Radosław Korzeniewski [Fri, 19 Feb 2021 11:08:00 +0000 (12:08 +0100)] 
build: Update Plugins build procedure.

3 years agobuild: Refactor FD Plugins build procedures.
Radosław Korzeniewski [Thu, 11 Feb 2021 16:20:22 +0000 (17:20 +0100)] 
build: Refactor FD Plugins build procedures.

3 years agodocker: Remove unused code moved to dkid_test.
Radosław Korzeniewski [Thu, 11 Feb 2021 11:57:36 +0000 (12:57 +0100)] 
docker: Remove unused code moved to dkid_test.

3 years agoUpdate files license header.
Radosław Korzeniewski [Thu, 11 Feb 2021 09:59:19 +0000 (10:59 +0100)] 
Update files license header.

3 years agoAdd file generated during configure to gitignore.
Radosław Korzeniewski [Thu, 11 Feb 2021 09:20:01 +0000 (10:20 +0100)] 
Add file generated during configure to gitignore.

3 years agoAdd scripts generated in updatedb to gitignore.
Radosław Korzeniewski [Wed, 10 Feb 2021 16:36:46 +0000 (17:36 +0100)] 
Add scripts generated in updatedb to gitignore.

3 years agobuild: Remove generated file from repository.
Radosław Korzeniewski [Wed, 10 Feb 2021 16:26:37 +0000 (17:26 +0100)] 
build: Remove generated file from repository.

The file: src/qt-console/bat.pro.mingw64 is generated during configure
so it is not required to have it in repository.

3 years agoFix compilation of cloud driver
Eric Bollengier [Wed, 10 Feb 2021 15:23:48 +0000 (16:23 +0100)] 
Fix compilation of cloud driver

3 years agoIntroduce metadata plugin Iface
Michal Rakowski [Sun, 27 Dec 2020 11:47:15 +0000 (12:47 +0100)] 
Introduce metadata plugin Iface

TODO define and handle catalog plugin stream
TODO add handling for packets > 64K

3 years agoregress: Add compilation check for test-plugin-test
Michal Rakowski [Sun, 27 Dec 2020 11:47:57 +0000 (12:47 +0100)] 
regress: Add compilation check for test-plugin-test

3 years agodocker: Fix build after pluginlib introduction.
Radosław Korzeniewski [Wed, 10 Feb 2021 15:03:01 +0000 (16:03 +0100)] 
docker: Fix build after pluginlib introduction.

3 years agoconfigure: Fix Pluginlib build.
Radosław Korzeniewski [Wed, 10 Feb 2021 15:02:03 +0000 (16:02 +0100)] 
configure: Fix Pluginlib build.

3 years agoconfigure: Fix $PLUGCONFILES setup.
Radosław Korzeniewski [Wed, 10 Feb 2021 14:46:39 +0000 (15:46 +0100)] 
configure: Fix $PLUGCONFILES setup.

3 years agoconfigure: Fix small alignment problem.
Radosław Korzeniewski [Wed, 10 Feb 2021 13:44:18 +0000 (14:44 +0100)] 
configure: Fix small alignment problem.

3 years agodocker: Move dkid unittests to docker directory.
Radosław Korzeniewski [Wed, 10 Feb 2021 13:28:11 +0000 (14:28 +0100)] 
docker: Move dkid unittests to docker directory.

3 years agoAdd comments to alist.c
Eric Bollengier [Fri, 5 Feb 2021 13:44:34 +0000 (14:44 +0100)] 
Add comments to alist.c

3 years agoregress: speed up jobmedia-bug2-test
Eric Bollengier [Fri, 5 Feb 2021 13:44:14 +0000 (14:44 +0100)] 
regress: speed up jobmedia-bug2-test

3 years agoregress: Schedule ilist-unittests on CDASH
Eric Bollengier [Fri, 5 Feb 2021 12:17:32 +0000 (13:17 +0100)] 
regress: Schedule ilist-unittests on CDASH

3 years agoregress: Add ilist-unittests
Eric Bollengier [Fri, 5 Feb 2021 12:16:43 +0000 (13:16 +0100)] 
regress: Add ilist-unittests

3 years agoSplit alist/ilist
Eric Bollengier [Fri, 5 Feb 2021 08:57:12 +0000 (09:57 +0100)] 
Split alist/ilist

ilist and alist are a bit different on some aspects, it's
better to split them waiting to fix ilist usage in the cloud
module.

3 years agoFix windows compilation
Eric Bollengier [Thu, 4 Feb 2021 10:31:27 +0000 (11:31 +0100)] 
Fix windows compilation

3 years agoregress: Fix prune-migration-test with new copy/migration selection algorithm
Eric Bollengier [Wed, 3 Feb 2021 15:42:22 +0000 (16:42 +0100)] 
regress: Fix prune-migration-test with new copy/migration selection algorithm

3 years agoFix copy/migration job selection
Eric Bollengier [Wed, 3 Feb 2021 15:37:37 +0000 (16:37 +0100)] 
Fix copy/migration job selection

Description:
-----------

The Copy/Migration job selection with a Job name was selecting
Jobs that are already migrated. It is leading to a situation where
a new catalog record is created for the new job, but the job is not
used at the end. JobFiles=0 JobBytes=0.

In some conditions, the accurate code selects the incorrect job
record.

In the catalog, both Job records have the same attributes
(same JobTDate, same StartTime). So the selection process
was returning one or the other depending on the weather cast.

We no longer try to copy/migrate a job that is not a valid
Backup job, and we check that the Job status is T.

3 years agodocker: Move dkid unit tests to separate file.
Radosław Korzeniewski [Thu, 14 Jan 2021 16:20:26 +0000 (17:20 +0100)] 
docker: Move dkid unit tests to separate file.

3 years agopluginlib: Fix linking problem.
Radosław Korzeniewski [Thu, 14 Jan 2021 10:55:01 +0000 (11:55 +0100)] 
pluginlib: Fix linking problem.

3 years agodocker: Refactor POOLMEM variables for POOL_MEM class.
Radosław Korzeniewski [Thu, 14 Jan 2021 10:00:52 +0000 (11:00 +0100)] 
docker: Refactor POOLMEM variables for POOL_MEM class.

3 years agoUpdate pluginlib.
Radosław Korzeniewski [Thu, 14 Jan 2021 10:00:01 +0000 (11:00 +0100)] 
Update pluginlib.

3 years agometaplugin: Fix prepare_backend regression.
Radosław Korzeniewski [Fri, 8 Jan 2021 16:35:08 +0000 (17:35 +0100)] 
metaplugin: Fix prepare_backend regression.