]> git.ipfire.org Git - thirdparty/bacula.git/log
thirdparty/bacula.git
2 years agoFix compilation
Eric Bollengier [Tue, 5 Jul 2022 14:06:54 +0000 (16:06 +0200)] 
Fix compilation

2 years agoregress: Schedule two-client-test
Eric Bollengier [Tue, 5 Jul 2022 13:25:56 +0000 (15:25 +0200)] 
regress: Schedule two-client-test

2 years agoregress: Add checks in two-client-test
Eric Bollengier [Tue, 5 Jul 2022 13:24:53 +0000 (15:24 +0200)] 
regress: Add checks in two-client-test

2 years agoFix #9284 About unnecessary warning message with empty filesets
Eric Bollengier [Tue, 5 Jul 2022 13:14:01 +0000 (15:14 +0200)] 
Fix #9284 About unnecessary warning message with empty filesets

The warning message is suitable for Backup, but not really for copy/migration
admin or restore job.

2 years agoFix #9305 At restore time, show wrong Backup Client when modifying client
Alain Spineux [Tue, 5 Jul 2022 10:35:30 +0000 (12:35 +0200)] 
Fix #9305 At restore time, show wrong Backup Client when modifying client

There is two values :
Backup Client: this is related to the backup job, then this is immutable as the job already ran
Restore Client: this is related to the restore, this can change

In a "normal" restore, the values that are assigned are as follow :

Backup Client:  rc.client ? rc.client->hdr.name : jcr->job->client->hdr.name
Restore Client: jcr->client->name()

We can see the values that have changed before and after the "mod"

ua_run.c:173-0 ASX rc.client=0x55af0c0d5aa8 jcr->job->client->hdr.name=1-fd rc.client->hdr.name=1-fd jcr->client->name()=1-fd
ua_run.c:173-0 ASX rc.client=0x55af0c0d7eb8 jcr->job->client->hdr.name=1-fd rc.client->hdr.name=2-fd jcr->client->name()=2-fd

The value jcr->job->client->hdr.name did not change has expected (it should be immutable) and should be used instead of the conditional for the "Backup Client" value

When doing the mod, the code does

      case 4:
         /* Client */
      {
         int32_t jt = rc.job ? rc.job->JobType : JT_SYSTEM;
         rc.client = select_client_resource(ua, jt);
         if (rc.client) {
            jcr->client = rc.client;
            goto try_again;
         }
      }

Then both the rc.client and the jcr->client are modified

I think the right solution is just to use
  jcr->job->client->hdr.name
instead of the conditional
  rc.client ? rc.client->hdr.name : jcr->job->client->hdr.name

2 years agoregress: Add two-client-test to reproduce issue with Restore/Backup Client menu
Eric Bollengier [Wed, 29 Jun 2022 17:01:56 +0000 (19:01 +0200)] 
regress: Add two-client-test to reproduce issue with Restore/Backup Client menu

2 years agoFix #9297 MySQL update script with Client/Plugins filed
Eric Bollengier [Wed, 29 Jun 2022 14:26:32 +0000 (16:26 +0200)] 
Fix #9297 MySQL update script with Client/Plugins filed

2 years agobpipe: run_program_full with error handling
norbert.bizet [Thu, 16 Jun 2022 09:04:52 +0000 (05:04 -0400)] 
bpipe: run_program_full with error handling

2 years agoregress:: fix custom option in simple-test
Alain Spineux [Fri, 3 Jun 2022 10:00:45 +0000 (12:00 +0200)] 
regress:: fix custom option in simple-test

2 years agoRework path 9224 to keep int in the ioctl call
Eric Bollengier [Tue, 7 Jun 2022 15:42:20 +0000 (17:42 +0200)] 
Rework path 9224 to keep int in the ioctl call

2 years agoFix #9224 about Storage Daemon issue with BoostFS
Eric Bollengier [Tue, 7 Jun 2022 14:39:02 +0000 (16:39 +0200)] 
Fix #9224 about Storage Daemon issue with BoostFS

On bootfs, the call to ioctl(tmp_fd, FS_IOC_GETFLAGS, (char *)&get_attr);
triggers an error, and the get_attr variable is not long enough
and the memory in the stack get overwritten leading to a segfault.

The man page is incorrect, a "int" is documented, but a "long"
is actually needed.

2 years agoregress: Adapt plugin-object-test for new test-plugin output
Eric Bollengier [Thu, 2 Jun 2022 18:54:02 +0000 (20:54 +0200)] 
regress: Adapt plugin-object-test for new test-plugin output

2 years agoUse regular LIKE for MySQL and SQLite, use ILIKE for PostgreSQL in .search command
Eric Bollengier [Wed, 1 Jun 2022 15:04:55 +0000 (17:04 +0200)] 
Use regular LIKE for MySQL and SQLite, use ILIKE for PostgreSQL in .search command

The lower() trick doesn't work on MySQL because we use BLOB to store text.
So, we revert to LIKE and ILIKE for PostgreSQL

2 years agoAdd support for PriorJob with VirtualFull to support specific plugins
Eric Bollengier [Wed, 1 Jun 2022 14:54:57 +0000 (16:54 +0200)] 
Add support for PriorJob with VirtualFull to support specific plugins

2 years agoregress: Tweak DartTestfile.txt
Eric Bollengier [Wed, 1 Jun 2022 09:26:59 +0000 (11:26 +0200)] 
regress: Tweak DartTestfile.txt

2 years agoFix accurate query issue introduced by "Update db_get_accurate_jobids() to deal with...
Eric Bollengier [Wed, 1 Jun 2022 07:20:56 +0000 (09:20 +0200)] 
Fix accurate query issue introduced by "Update db_get_accurate_jobids() to deal with one single JobId"

The db_get_accurate_jobids() can return a jobid list that doesn't include
the jobid that was requested. For backup, it's not really a problem, however
for things like restoring an Object, it doesn't work. To be fixed later on.

2 years agoregress: Schedule virtualfull plugin test
Eric Bollengier [Tue, 31 May 2022 15:27:44 +0000 (17:27 +0200)] 
regress: Schedule virtualfull plugin test

2 years agoUpdate db_get_accurate_jobids() to deal with one single JobId
Eric Bollengier [Tue, 31 May 2022 13:26:28 +0000 (15:26 +0200)] 
Update db_get_accurate_jobids() to deal with one single JobId

2 years agoAccept jobid list in "list object" command
Eric Bollengier [Tue, 31 May 2022 09:08:33 +0000 (11:08 +0200)] 
Accept jobid list in "list object" command

2 years agoregress: Enhance virtual full testing functions
Eric Bollengier [Mon, 30 May 2022 09:03:35 +0000 (11:03 +0200)] 
regress: Enhance virtual full testing functions

2 years agoregress: Add test for VirtualFull plugin support
Eric Bollengier [Mon, 30 May 2022 09:00:31 +0000 (11:00 +0200)] 
regress: Add test for VirtualFull plugin support

2 years agoAdd VirtualFull plugin support
Eric Bollengier [Mon, 30 May 2022 08:59:55 +0000 (10:59 +0200)] 
Add VirtualFull plugin support

2 years agoHandle incr/diff jobs in test-plugin-fd.c
Eric Bollengier [Wed, 25 May 2022 20:50:30 +0000 (22:50 +0200)] 
Handle incr/diff jobs in test-plugin-fd.c

2 years agoregress: Add test for PVF with plugins
Eric Bollengier [Fri, 27 May 2022 13:35:33 +0000 (15:35 +0200)] 
regress: Add test for PVF with plugins

2 years agoFix some SQL filters for MySQL
Eric Bollengier [Mon, 23 May 2022 16:45:00 +0000 (18:45 +0200)] 
Fix some SQL filters for MySQL

The ILIKE operator doesn't exist for MySQL. We replace it by lower(a) LIKE ('str')

2 years agoregress: Tweak accurate-only-meta-test
Eric Bollengier [Tue, 17 May 2022 14:34:57 +0000 (16:34 +0200)] 
regress: Tweak accurate-only-meta-test

2 years agoregress: Test ACL restore and multi backup for meta data updates
Eric Bollengier [Tue, 17 May 2022 09:58:18 +0000 (11:58 +0200)] 
regress: Test ACL restore and multi backup for meta data updates

2 years agoregress: modify simple-test to make it more easy for modification
Alain Spineux [Tue, 26 Apr 2022 15:36:43 +0000 (17:36 +0200)] 
regress: modify simple-test to make it more easy for modification

2 years agoDo not reassign catalog objects after a migration
Eric Bollengier [Thu, 12 May 2022 08:39:33 +0000 (10:39 +0200)] 
Do not reassign catalog objects after a migration

The migration/copy process will re-recreate the catalog objects when we see
them on the Media.

2 years agoregress: Add copy-plugin-test
Eric Bollengier [Wed, 11 May 2022 14:52:22 +0000 (16:52 +0200)] 
regress: Add copy-plugin-test

2 years agoregress: Add new tests to CDASH
Eric Bollengier [Wed, 11 May 2022 08:54:33 +0000 (10:54 +0200)] 
regress: Add new tests to CDASH

2 years agoregress: Add test to check objects after a migration
Eric Bollengier [Wed, 11 May 2022 08:50:13 +0000 (10:50 +0200)] 
regress: Add test to check objects after a migration

2 years agoFix "list metadata" command with copy jobs
Eric Bollengier [Wed, 11 May 2022 14:52:44 +0000 (16:52 +0200)] 
Fix "list metadata" command with copy jobs

2 years agoAdd missing copyright headers
norbert.bizet [Wed, 4 May 2022 10:33:44 +0000 (06:33 -0400)] 
Add missing copyright headers

2 years agoA script to detect copyright headers
norbert.bizet [Wed, 4 May 2022 10:32:42 +0000 (06:32 -0400)] 
A script to detect copyright headers

2 years agoregress: Update hdfull-test
Eric Bollengier [Mon, 9 May 2022 16:20:01 +0000 (18:20 +0200)] 
regress: Update hdfull-test

2 years agoAllow small volume poll interval in DEVELOPPER's mode
Eric Bollengier [Mon, 9 May 2022 16:19:30 +0000 (18:19 +0200)] 
Allow small volume poll interval in DEVELOPPER's mode

2 years agoEnsure that the disk space is checked when finding new media
Eric Bollengier [Mon, 9 May 2022 14:23:37 +0000 (16:23 +0200)] 
Ensure that the disk space is checked when finding new media

2 years agocloud: add restore_bucket field to transfer structure.
norbert.bizet [Wed, 4 May 2022 10:14:00 +0000 (06:14 -0400)] 
cloud: add restore_bucket field to transfer structure.

2 years agoregress: Reduce output from migration-jobspan-test
Eric Bollengier [Fri, 6 May 2022 08:11:30 +0000 (10:11 +0200)] 
regress: Reduce output from migration-jobspan-test

2 years agoApply the algorithm in all cases
Eric Bollengier [Fri, 6 May 2022 08:08:25 +0000 (10:08 +0200)] 
Apply the algorithm in all cases

2 years agoTweak store_mngr comments
Eric Bollengier [Thu, 5 May 2022 14:50:50 +0000 (16:50 +0200)] 
Tweak store_mngr comments

2 years agoFix #1868 Make StorageGroup feature compatible with Copy and Migration jobs
Eric Bollengier [Fri, 22 Apr 2022 16:21:25 +0000 (18:21 +0200)] 
Fix #1868 Make StorageGroup feature compatible with Copy and Migration jobs

2 years agoregress: Add test to reproduce migration/copy issue with StorageGroup
Eric Bollengier [Fri, 22 Apr 2022 16:20:02 +0000 (18:20 +0200)] 
regress: Add test to reproduce migration/copy issue with StorageGroup

2 years agoFix small logic issue in msgchan
Eric Bollengier [Fri, 22 Apr 2022 09:27:02 +0000 (11:27 +0200)] 
Fix small logic issue in msgchan

2 years agoregress: fix escaping in "function" file, for json output
Alain Spineux [Wed, 20 Apr 2022 17:52:00 +0000 (19:52 +0200)] 
regress: fix escaping in "function" file, for json output

- "read" handle the escape characters by default, use '-r' to disable
  the handling of escape characters.

2 years agoFix #9035 Sync the Job and JobHisto table when "update stats" is issued
Eric Bollengier [Tue, 12 Apr 2022 16:08:43 +0000 (18:08 +0200)] 
Fix #9035 Sync the Job and JobHisto table when "update stats" is issued

2 years agowindows: change windows os version detection
norbert.bizet [Tue, 12 Apr 2022 11:48:00 +0000 (07:48 -0400)] 
windows: change windows os version detection

2 years agowindows: change windows os version detection
norbert.bizet [Tue, 12 Apr 2022 11:48:00 +0000 (07:48 -0400)] 
windows: change windows os version detection

2 years agoFix #9035 update job statistics
Marcin Haba [Tue, 12 Apr 2022 10:52:23 +0000 (12:52 +0200)] 
Fix #9035 update job statistics

2 years agoedit_uint64_with_suffix() add option to remove the space before the suffix
Alain Spineux [Fri, 4 Feb 2022 15:10:01 +0000 (16:10 +0100)] 
edit_uint64_with_suffix() add option to remove the space before the suffix

- default is with_space=true that don't change the old behavior
- the goal is to have
  used=7.205GB free=32.37GB unused=612.3MB   <=  with_space=false
  instead of
  used=7.205 GB free=32.37 GB unused=612.3 MB  <=  with_space=true

2 years agoaws-cloud-driver: Update the tranfer regress test
norbert.bizet [Thu, 7 Apr 2022 14:37:12 +0000 (10:37 -0400)] 
aws-cloud-driver: Update the tranfer regress test

2 years agoaws-cloud-driver: Support cloud_transfer directives. Fix download
norbert.bizet [Thu, 7 Apr 2022 14:36:13 +0000 (10:36 -0400)] 
aws-cloud-driver: Support cloud_transfer directives. Fix download

2 years agoaws-cloud-driver: Enable cloud_transfer directives for generic_driver
norbert.bizet [Thu, 7 Apr 2022 14:35:01 +0000 (10:35 -0400)] 
aws-cloud-driver: Enable cloud_transfer directives for generic_driver

2 years agocloud: add restore to generic_driver and aws_cloud_driver
norbert.bizet [Thu, 31 Mar 2022 07:03:04 +0000 (03:03 -0400)] 
cloud: add restore to generic_driver and aws_cloud_driver

2 years agoSave memory by not keeping the SQL batch session open during the backup
Eric Bollengier [Thu, 7 Apr 2022 11:46:53 +0000 (13:46 +0200)] 
Save memory by not keeping the SQL batch session open during the backup

2 years agoSend security events after incorrect connexion with SD/DIR
Eric Bollengier [Wed, 6 Apr 2022 12:49:49 +0000 (14:49 +0200)] 
Send security events after incorrect connexion with SD/DIR

2 years agoAdd security event message after incorrect connection to a FD
Eric Bollengier [Wed, 6 Apr 2022 10:26:21 +0000 (12:26 +0200)] 
Add security event message after incorrect connection to a FD

2 years agoFix BSOCKCORE::get_info()
Eric Bollengier [Wed, 6 Apr 2022 10:25:12 +0000 (12:25 +0200)] 
Fix BSOCKCORE::get_info()

2 years agoregress: Schedule new hide-password-test
Eric Bollengier [Thu, 31 Mar 2022 16:21:21 +0000 (18:21 +0200)] 
regress: Schedule new hide-password-test

2 years agoregress: Add test to check if password are hidden from status client
Eric Bollengier [Thu, 31 Mar 2022 16:19:53 +0000 (18:19 +0200)] 
regress: Add test to check if password are hidden from status client

2 years agoFix incorrect file:block display while reading block header
Eric Bollengier [Thu, 31 Mar 2022 15:15:11 +0000 (17:15 +0200)] 
Fix incorrect file:block display while reading block header

2 years agoDo not display plugin password information in status client
Eric Bollengier [Thu, 31 Mar 2022 09:41:19 +0000 (11:41 +0200)] 
Do not display plugin password information in status client

2 years agoFix sqlite compilation
Eric Bollengier [Thu, 24 Mar 2022 10:07:48 +0000 (11:07 +0100)] 
Fix sqlite compilation

2 years agoregress: Schedule list-joblog-test in CDASH
Eric Bollengier [Wed, 23 Mar 2022 18:03:52 +0000 (19:03 +0100)] 
regress: Schedule list-joblog-test in CDASH

2 years agoregress: Add test for list joblog command
Eric Bollengier [Wed, 23 Mar 2022 18:03:31 +0000 (19:03 +0100)] 
regress: Add test for list joblog command

2 years agoAdd list joblog pattern= option
Eric Bollengier [Wed, 23 Mar 2022 18:02:39 +0000 (19:02 +0100)] 
Add list joblog pattern= option

2 years agocdp: Add file modification detection to windows implemtation
Eric Bollengier [Wed, 23 Mar 2022 10:08:10 +0000 (11:08 +0100)] 
cdp: Add file modification detection to windows implemtation

2 years agocdp: Fix small memory leak after an error
Eric Bollengier [Wed, 23 Mar 2022 10:07:38 +0000 (11:07 +0100)] 
cdp: Fix small memory leak after an error

2 years agoregress: Add tests for the new alljobs option of the list metadata command
Eric Bollengier [Thu, 17 Mar 2022 18:01:33 +0000 (19:01 +0100)] 
regress: Add tests for the new alljobs option of the list metadata command

2 years agoModify list metadata to return only the last occurence of the data by default
Eric Bollengier [Thu, 17 Mar 2022 15:22:14 +0000 (16:22 +0100)] 
Modify list metadata to return only the last occurence of the data by default

2 years agometa-plugin: Cancel only current backend on protocol error situations
Jorge Gea [Thu, 17 Mar 2022 11:59:30 +0000 (12:59 +0100)] 
meta-plugin: Cancel only current backend on protocol error situations

2 years agometa: Add complete packets in debug for protocol error. Cancel backend in those situa...
Jorge Gea [Thu, 17 Mar 2022 10:27:39 +0000 (11:27 +0100)] 
meta: Add complete packets in debug for protocol error. Cancel backend in those situations

2 years agometa: Terminate jar. rpms: multi-version m365
Eric Bollengier [Fri, 18 Mar 2022 12:54:29 +0000 (13:54 +0100)] 
meta: Terminate jar. rpms: multi-version m365

2 years agoAdd target to build mingw dependencies easily in a container
Eric Bollengier [Wed, 16 Mar 2022 07:59:10 +0000 (08:59 +0100)] 
Add target to build mingw dependencies easily in a container

2 years agoPurge metadata when deleting jobs
Eric Bollengier [Tue, 15 Mar 2022 13:55:33 +0000 (14:55 +0100)] 
Purge metadata when deleting jobs

2 years agoregress: Adjust dbcheck-test for new menu entry
Eric Bollengier [Tue, 15 Mar 2022 13:54:24 +0000 (14:54 +0100)] 
regress: Adjust dbcheck-test for new menu entry

2 years agoAllow to delete orphan metadata records in dbcheck
Eric Bollengier [Tue, 15 Mar 2022 13:54:10 +0000 (14:54 +0100)] 
Allow to delete orphan metadata records in dbcheck

2 years agodedup: remove s at the end of dedupengine in ".status dedupengine"
Alain Spineux [Fri, 11 Mar 2022 14:09:22 +0000 (15:09 +0100)] 
dedup: remove s at the end of dedupengine in ".status dedupengine"

- the right syntax are
  * .status dedupengine # to get the status of all dedupengines
  * .status dedupengine name=XXXX # for the status of dedupegine XXXX

2 years agoAdd install target for debug-tags_test
Eric Bollengier [Fri, 11 Mar 2022 15:40:47 +0000 (16:40 +0100)] 
Add install target for debug-tags_test

2 years agoregress: Fix debug-tags-test
Eric Bollengier [Fri, 11 Mar 2022 15:40:35 +0000 (16:40 +0100)] 
regress: Fix debug-tags-test

2 years agoregress: Fix runscript-end-job-test on MySQL
Eric Bollengier [Fri, 11 Mar 2022 09:25:14 +0000 (10:25 +0100)] 
regress: Fix runscript-end-job-test on MySQL

2 years agotweak comments in bpipe.c
Eric Bollengier [Fri, 11 Mar 2022 09:16:33 +0000 (10:16 +0100)] 
tweak comments in bpipe.c

2 years agoFix comment
Eric Bollengier [Wed, 9 Mar 2022 10:53:32 +0000 (11:53 +0100)] 
Fix comment

2 years agoregress: Test new bvfs_restore fileindex option
Eric Bollengier [Thu, 3 Mar 2022 10:31:26 +0000 (11:31 +0100)] 
regress: Test new bvfs_restore fileindex option

2 years agoAdd new fileindex option to the .bvfs_restore command
Eric Bollengier [Thu, 3 Mar 2022 10:31:03 +0000 (11:31 +0100)] 
Add new fileindex option to the .bvfs_restore command

2 years agoFix #8895 A Jmsg deadlock the PGSQL timezone mismatch handling code
Alain Spineux [Mon, 7 Mar 2022 13:27:41 +0000 (14:27 +0100)] 
Fix #8895 A Jmsg deadlock the PGSQL timezone mismatch handling code

- A Jmsg() should not be called when the Catalog is not yet up and running
- Instead use Qmsg() and tweak dequeue_daemon_messages() to handle jcr==NULL

2 years agoTweak: in stack_trace() remove the extra \n between de-mangled function
Alain Spineux [Tue, 8 Mar 2022 13:33:44 +0000 (14:33 +0100)] 
Tweak: in stack_trace() remove the extra \n between de-mangled function

2 years agoWindows: windows-env_test created to exercice env var support
norbert.bizet [Wed, 23 Feb 2022 11:19:06 +0000 (06:19 -0500)] 
Windows: windows-env_test created to exercice env var support

2 years agoWindows: environment variables support added to CreateChildProcess
norbert.bizet [Wed, 23 Feb 2022 11:16:16 +0000 (06:16 -0500)] 
Windows: environment variables support added to CreateChildProcess

2 years agoAdd isinline and contenttype filters to metadata list command
Eric Bollengier [Wed, 23 Feb 2022 17:51:23 +0000 (18:51 +0100)] 
Add isinline and contenttype filters to metadata list command

2 years agoregress: Adapt regress for new metadata filters
Eric Bollengier [Wed, 23 Feb 2022 17:49:24 +0000 (18:49 +0100)] 
regress: Adapt regress for new metadata filters

2 years agoAdd foldername search parameter to the list metadata type=email command
Eric Bollengier [Thu, 17 Feb 2022 16:46:07 +0000 (17:46 +0100)] 
Add foldername search parameter to the list metadata type=email command

2 years agocloud: Fix #8807 About crash reported with invalid cloud parmeters
Eric Bollengier [Wed, 16 Feb 2022 17:06:33 +0000 (18:06 +0100)] 
cloud: Fix #8807 About crash reported with invalid cloud parmeters

2 years agotweak gitignore for updatedb/update_XXX_tables_XXXX_to_XXXX
Alain Spineux [Thu, 3 Feb 2022 11:11:32 +0000 (12:11 +0100)] 
tweak gitignore for updatedb/update_XXX_tables_XXXX_to_XXXX

2 years agoFix windows compilation
Eric Bollengier [Mon, 14 Feb 2022 14:22:18 +0000 (15:22 +0100)] 
Fix windows compilation

2 years agoEnhance error message in is() call for unittests
Eric Bollengier [Fri, 11 Feb 2022 09:38:20 +0000 (10:38 +0100)] 
Enhance error message in is() call for unittests

2 years agoregress: Add checks on pluginlib_test
Eric Bollengier [Fri, 11 Feb 2022 09:37:58 +0000 (10:37 +0100)] 
regress: Add checks on pluginlib_test

2 years agoStrip leading/ending spaces in plugutil_str_split_to_alist()
Eric Bollengier [Fri, 11 Feb 2022 09:28:16 +0000 (10:28 +0100)] 
Strip leading/ending spaces in plugutil_str_split_to_alist()

The string "label: akeyword" was returning "label" and " akeyword"
and the code was not designed to handle the extra space in the keyword.

According to the current usage, it seems that the leading/ending
white spaces are polluting the variables.

2 years agoregress: Schedule pluginlib-unittests
Eric Bollengier [Wed, 9 Feb 2022 09:50:17 +0000 (10:50 +0100)] 
regress: Schedule pluginlib-unittests