]> git.ipfire.org Git - thirdparty/bacula.git/log
thirdparty/bacula.git
3 years agoFix of checking for job types for copy job
Michal Rakowski [Fri, 30 Apr 2021 08:41:01 +0000 (10:41 +0200)] 
Fix of checking for job types for copy job

3 years agoregress: tweak async.sh to shows the file that are synced
Alain Spineux [Fri, 19 Feb 2021 10:23:08 +0000 (11:23 +0100)] 
regress: tweak async.sh to shows the file that are synced

3 years agoCheck if char **jobid parameter is NULL before to modify it in bvfs_parse_arg_version()
Alain Spineux [Fri, 19 Feb 2021 09:58:22 +0000 (10:58 +0100)] 
Check if char **jobid parameter is NULL before to modify it in bvfs_parse_arg_version()

- it looks like the function can handle a NULL parameter, som lines above
  and below does the check, it looks right to do it everywhere before to
  modify jobid

3 years agoTweak replace MAX_NAME_LENGTH, with a sizeof(variable) in ua_dotcmds.c
Alain Spineux [Fri, 19 Feb 2021 09:53:09 +0000 (10:53 +0100)] 
Tweak replace MAX_NAME_LENGTH, with a sizeof(variable) in ua_dotcmds.c

- we use a sizeof() for the exact same use few lines above
- Yes, I didn't remove the "exact same lines above" because I'm not
  sure that it will not brake something.

3 years agoFix org#2605 About incorrect message in restore command
Eric Bollengier [Fri, 30 Apr 2021 08:03:30 +0000 (10:03 +0200)] 
Fix org#2605 About incorrect message in restore command

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

The error message generated when the fileset parameter of the
restore command is invalid is misleading.

*restore fileset= where=/tmp select all done yes
FileSet argument: Volume name must be at least one character long.
                 ^^^^^^^

3 years agoupdate configure
Eric Bollengier [Thu, 29 Apr 2021 08:50:25 +0000 (10:50 +0200)] 
update configure

3 years agoTweak copyrights
Eric Bollengier [Thu, 29 Apr 2021 08:47:12 +0000 (10:47 +0200)] 
Tweak copyrights

3 years agoregress: Schedule new copy-twin-test to CDASH
Eric Bollengier [Mon, 26 Apr 2021 11:50:20 +0000 (13:50 +0200)] 
regress: Schedule new copy-twin-test to CDASH

3 years agoregress: Add test for #7552 about copying wrong job
Michal Rakowski [Fri, 23 Apr 2021 12:41:36 +0000 (14:41 +0200)] 
regress: Add test for #7552 about copying wrong job

3 years agoFix #7552 About running wrong jopy job
Michal Rakowski [Fri, 23 Apr 2021 12:47:22 +0000 (14:47 +0200)] 
Fix #7552 About running wrong jopy job

This issue might happen when the user had a backup job named "Backup1"
and later changed the type of the job from Type = Backup to Type = Copy.

3 years agoregress: Add test for new "list events offset=" feature
Eric Bollengier [Mon, 26 Apr 2021 10:04:27 +0000 (12:04 +0200)] 
regress: Add test for new "list events offset=" feature

3 years agoAdd offset= parameter in the 'list events' command
Eric Bollengier [Mon, 26 Apr 2021 10:04:49 +0000 (12:04 +0200)] 
Add offset= parameter in the 'list events' command

3 years agoFix #7548 About wrong backup client displayed to the user
Michal Rakowski [Fri, 23 Apr 2021 20:58:57 +0000 (22:58 +0200)] 
Fix #7548 About wrong backup client displayed to the user

3 years agopluginlib: Update smart_ptr class.
Radosław Korzeniewski [Fri, 23 Apr 2021 11:28:47 +0000 (13:28 +0200)] 
pluginlib: Update smart_ptr class.

Now you can create an empty smart_ptr class with default ctor
and assign a new ptr to already defined object and handle it smartly.

3 years agoregress: Tweak virtual-deleted-files-test
Eric Bollengier [Fri, 23 Apr 2021 07:10:14 +0000 (09:10 +0200)] 
regress: Tweak virtual-deleted-files-test

3 years agoFix incorrect backport for patch #7451 about deleted files in virtualfull
Eric Bollengier [Fri, 23 Apr 2021 07:02:43 +0000 (09:02 +0200)] 
Fix incorrect backport for patch #7451 about deleted files in virtualfull

3 years agoTry to avoid segfault with heartbeat
Eric Bollengier [Thu, 22 Apr 2021 18:23:53 +0000 (20:23 +0200)] 
Try to avoid segfault with heartbeat

Strange segfault on Redhat 7

[Thread debugging using libthread_db enabled]
$3 = 0x2521158 "bacula-fd"
$7 = 0x7f41dbe8b369 "12.7.6 (22 April 2021)"
$8 = 0x7f41dbe8bb30 "x86_64-redhat-linux-gnu-bacula-enterprise"
$9 = 0x7f41dbe8b354 "redhat"
$10 = 0x7f41dbe8b362 "(Core)"
TestName = regexwhere-test

Thread 4 (Thread 0x7f41d6ed2700 (LWP 4146)):

Thread 3 (Thread 0x7f41d76d3700 (LWP 4163)):

Thread 2 (Thread 0x7f41d64be700 (LWP 4166)):

Attempt to dump locks
Attempt to dump current JCRs. njcrs=1
threadid=0x7f41d76d3700 JobId=6 JobStatus=T jcr=0x7f41cc00f918 name=JobE.2021-04-22_13.07.30_09
        use_count=1 killable=1
        JobType=R JobLevel=
        sched_time=22-Apr-2021 13:07 start_time=22-Apr-2021 13:07
        end_time=31-Dec-1969 19:00 wait_time=31-Dec-1969 19:00
        db=(nil) db_batch=(nil) batch_started=0

3 years agoregress: tweak plugin-objects-syntetic-test
Michal Rakowski [Thu, 22 Apr 2021 09:57:58 +0000 (11:57 +0200)] 
regress: tweak plugin-objects-syntetic-test

3 years agocatalog: Change ObjectStatus when creating class object to '0'
Michal Rakowski [Thu, 22 Apr 2021 09:56:19 +0000 (11:56 +0200)] 
catalog: Change ObjectStatus when creating class object to '0'

This way for default objects the ObjectStatus field is being used
for filtering records.

3 years agoregress: Add test to verify 'list jobs days=n' command
Michal Rakowski [Wed, 21 Apr 2021 12:52:22 +0000 (14:52 +0200)] 
regress: Add test to verify 'list jobs days=n' command

3 years agoFix #7448 About extending 'list jobs' with hours and days parameters
Michal Rakowski [Wed, 14 Apr 2021 17:01:08 +0000 (19:01 +0200)] 
Fix #7448 About extending 'list jobs' with hours and days parameters

3 years agoUpdate plugin interface version
Eric Bollengier [Wed, 21 Apr 2021 12:36:35 +0000 (14:36 +0200)] 
Update plugin interface version

3 years agoAdd BVarPluginDir variable to the plugin code
Norbert Bizet [Wed, 21 Apr 2021 12:35:42 +0000 (14:35 +0200)] 
Add BVarPluginDir variable to the plugin code

3 years agoregress: update tests for plugin objects with Object Status
Michal Rakowski [Wed, 31 Mar 2021 16:17:42 +0000 (18:17 +0200)] 
regress: update tests for plugin objects with Object Status

3 years agocatalog: update to ver 1024
Michal Rakowski [Mon, 12 Apr 2021 15:11:33 +0000 (17:11 +0200)] 
catalog: update to ver 1024

3 years agoAdd ObjectStatus and ObjectCount to Plugin Objects
Michal Rakowski [Wed, 31 Mar 2021 17:04:20 +0000 (19:04 +0200)] 
Add ObjectStatus and ObjectCount to Plugin Objects

3 years agoFix handling of plugin/restore objects in copy/migration jobs
Michal Rakowski [Thu, 1 Apr 2021 13:41:13 +0000 (15:41 +0200)] 
Fix handling of plugin/restore objects in copy/migration jobs

Objects are being inserted during reading spool file from the SD
(during the despool_attributes_from_file() call), so no need to insert
those manually at the end of MAC job.

3 years agostored: add some more error handling in run_job()
Michal Rakowski [Thu, 1 Apr 2021 11:31:13 +0000 (13:31 +0200)] 
stored: add some more error handling in run_job()

3 years agoregress: Schedule new store-mngr-busy-dev-test in CDASH
Michal Rakowski [Wed, 7 Apr 2021 10:31:42 +0000 (12:31 +0200)] 
regress: Schedule new store-mngr-busy-dev-test in CDASH

3 years agoUpdate stream handling for FD plugins.
Radosław Korzeniewski [Wed, 21 Apr 2021 07:10:35 +0000 (09:10 +0200)] 
Update stream handling for FD plugins.

This patch makes FD Plugin API more consistent for restore
jobs when plugin decide to forward file extraction to Bacula
Core (CF_Core) or skip this extraction (CF_Skip). This patch
fixes Metadata, ACL and XATTR plugin streams handling.

3 years agoFix #7375 About extending bls
Michal Rakowski [Fri, 16 Apr 2021 06:17:18 +0000 (08:17 +0200)] 
Fix #7375 About extending bls

Extend bls with number of retries when specifying incorrect Volume.

3 years agoFix #7530 About allpools keyword ignored in cloud truncate command
Eric Bollengier [Tue, 20 Apr 2021 14:40:28 +0000 (16:40 +0200)] 
Fix #7530 About allpools keyword ignored in cloud truncate command

3 years agoFix #7113 add timestamp to dedup messages in trace file
Alain Spineux [Wed, 14 Apr 2021 13:26:35 +0000 (15:26 +0200)] 
Fix #7113 add timestamp to dedup messages in trace file

- Add timestamp to t_msg(), controlled by dbg_timestamp (option -dt)

3 years agometaplugin: Update regress test.
Radosław Korzeniewski [Thu, 15 Apr 2021 14:03:49 +0000 (16:03 +0200)] 
metaplugin: Update regress test.

3 years agometaplugin: Correct XACL restore for FT_DIREND.
Radosław Korzeniewski [Thu, 15 Apr 2021 14:03:27 +0000 (16:03 +0200)] 
metaplugin: Correct XACL restore for FT_DIREND.

Fix the problem with out of order acl and xattr stream restore.

3 years agometaplugin: Update regression tests.
Radosław Korzeniewski [Tue, 13 Apr 2021 13:07:57 +0000 (15:07 +0200)] 
metaplugin: Update regression tests.

3 years agometaplugin: Add proper skip handling to Bacula.
Radosław Korzeniewski [Tue, 13 Apr 2021 13:07:29 +0000 (15:07 +0200)] 
metaplugin: Add proper skip handling to Bacula.

This extends a metaplugin protocol with a SKIP command
in metadta streams handling, so backend can decide later
if the file should be skipped or extracted.
It update metaplugin and Bacula for a proper SKIP
command handling, so both xacl's and metadata's will
be properly skipped for backend.

3 years agometaplugin: Update regression test for restore with core.
Radosław Korzeniewski [Mon, 12 Apr 2021 16:43:58 +0000 (18:43 +0200)] 
metaplugin: Update regression test for restore with core.

3 years agometaplugin: Add per file Core restore functionality.
Radosław Korzeniewski [Mon, 12 Apr 2021 16:43:15 +0000 (18:43 +0200)] 
metaplugin: Add per file Core restore functionality.

Now the Backend can ask Bacula (using Metaplugin protocol) to
restore the current file using Bacula Core functionality.
To use this functionality backend has to respond with "CORE"
command during File Attributes section.

3 years agoregress: Correct compilation warnings.
Radosław Korzeniewski [Mon, 12 Apr 2021 10:39:03 +0000 (12:39 +0200)] 
regress: Correct compilation warnings.

3 years agoTweak LDAP Makefiles
Eric Bollengier [Fri, 9 Apr 2021 11:41:52 +0000 (13:41 +0200)] 
Tweak LDAP Makefiles

3 years agoAdd back bacula/src/plugins/fd/Makefile.in
Eric Bollengier [Thu, 8 Apr 2021 20:50:08 +0000 (22:50 +0200)] 
Add back bacula/src/plugins/fd/Makefile.in

3 years agometaplugin: Add local restore with Core functions.
Radosław Korzeniewski [Thu, 8 Apr 2021 13:02:12 +0000 (15:02 +0200)] 
metaplugin: Add local restore with Core functions.

3 years agoFix windows compilation
Eric Bollengier [Mon, 8 Feb 2021 13:46:12 +0000 (14:46 +0100)] 
Fix windows compilation

3 years agoregress: Adapt events-test for MySQL output
Eric Bollengier [Thu, 8 Apr 2021 09:01:57 +0000 (11:01 +0200)] 
regress: Adapt events-test for MySQL output

3 years agoregress: Add checks for the json output with unixtime of the .jlist events command
Eric Bollengier [Thu, 8 Apr 2021 08:42:01 +0000 (10:42 +0200)] 
regress: Add checks for the json output with unixtime of the .jlist events command

3 years agoAdd UnixTime to JSON output of the .jlist events command
Eric Bollengier [Thu, 8 Apr 2021 08:37:34 +0000 (10:37 +0200)] 
Add UnixTime to JSON output of the .jlist events command

3 years agoTweak corrections
Radosław Korzeniewski [Thu, 8 Apr 2021 07:03:43 +0000 (09:03 +0200)] 
Tweak corrections

3 years agoupdate ./configure.in
Eric Bollengier [Thu, 29 Apr 2021 08:28:32 +0000 (10:28 +0200)] 
update ./configure.in

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 agometaplugin: Add checkFile() callback.
Radosław Korzeniewski [Wed, 7 Apr 2021 15:33:41 +0000 (17:33 +0200)] 
metaplugin: Add checkFile() callback.

3 years agoregress: Add few more checks to bsnprintf()
Eric Bollengier [Wed, 7 Apr 2021 13:46:42 +0000 (15:46 +0200)] 
regress: Add few more checks to bsnprintf()

3 years agoregress: Revert code to detect overflow in bstring
Eric Bollengier [Wed, 7 Apr 2021 13:50:45 +0000 (15:50 +0200)] 
regress: Revert code to detect overflow in bstring

3 years agoregress: Add extra check to dlist unittest
Eric Bollengier [Wed, 7 Apr 2021 08:54:47 +0000 (10:54 +0200)] 
regress: Add extra check to dlist unittest

3 years agoregress: Add new check for alist_test
Eric Bollengier [Wed, 7 Apr 2021 08:28:32 +0000 (10:28 +0200)] 
regress: Add new check for alist_test

3 years agoregress: Add few functions to unittests lib and fix overflow in bstring
Eric Bollengier [Wed, 7 Apr 2021 07:49:51 +0000 (09:49 +0200)] 
regress: Add few functions to unittests lib and fix overflow in bstring

3 years agoregress: Added filesystem and string utilities inside unittests module
Henrique Faria [Mon, 29 Mar 2021 17:45:38 +0000 (13:45 -0400)] 
regress: Added filesystem and string utilities inside unittests module

3 years agoFix upper camel case style for SdPacketCheck directive
Marcin Haba [Wed, 7 Apr 2021 07:20:58 +0000 (09:20 +0200)] 
Fix upper camel case style for SdPacketCheck directive

3 years agovsphere: Update VIX lib to 7.0.2
Eric Bollengier [Mon, 29 Mar 2021 14:22:00 +0000 (16:22 +0200)] 
vsphere: Update VIX lib to 7.0.2

3 years agoTweak unittests compilation from tools/ directory
Eric Bollengier [Thu, 25 Mar 2021 15:39:01 +0000 (16:39 +0100)] 
Tweak unittests compilation from tools/ directory

3 years agowin32: Update openssl version to 1.1.1k
Eric Bollengier [Thu, 25 Mar 2021 11:13:00 +0000 (12:13 +0100)] 
win32: Update openssl version to 1.1.1k

3 years agoRemove suspicious debug line on setdebug()
Eric Bollengier [Thu, 25 Mar 2021 10:22:31 +0000 (11:22 +0100)] 
Remove suspicious debug line on setdebug()

It seems that this Dmsg() is causing an issue on windows2003 32 bit

3 years agowin32: Fix error message when labeling volume on Windows SD
Eric Bollengier [Thu, 25 Mar 2021 10:16:44 +0000 (11:16 +0100)] 
win32: Fix error message when labeling volume on Windows SD

The sync_data() method is not currently implemented on windows,
the function is reporting an error, and this error is reported
back to the job with an incorrect old message.

3 years agoregress: Test the output of test-plugin for store_alist_str() method
Eric Bollengier [Thu, 18 Mar 2021 13:55:32 +0000 (14:55 +0100)] 
regress: Test the output of test-plugin for store_alist_str() method

3 years agoregress: Add functions to test the alist support in plugin restore conf
Eric Bollengier [Thu, 18 Mar 2021 13:55:08 +0000 (14:55 +0100)] 
regress: Add functions to test the alist support in plugin restore conf

3 years agoAdd support for store_alist_str() in plugin configuration items
Eric Bollengier [Thu, 18 Mar 2021 13:54:42 +0000 (14:54 +0100)] 
Add support for store_alist_str() in plugin configuration items

3 years agoFix FD crash when the SD disk is full introduced with SDPacketCheck feature
Alain Spineux [Thu, 18 Mar 2021 09:23:53 +0000 (10:23 +0100)] 
Fix FD crash when the SD disk is full introduced with SDPacketCheck feature

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

The FD crash when the SD send back a message to the FD (for example when the disk is full)
This issue was introduced in 12.6.2 with SDPacketCheck feature

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

Set SDPacketCheck to some value in the bacula-fd.conf

Details:
--------

bnet_poll_manager cannot handle error msg from SD

- FD get a "3999 Failed append\n" in the hearbeat while jcr->sd_packet_mgr
  was already set to NULL

3 years agoregress: Add unittest for bdelete_and_free() macro
Eric Bollengier [Thu, 18 Mar 2021 09:27:03 +0000 (10:27 +0100)] 
regress: Add unittest for bdelete_and_free() macro

3 years agoAdd functions to unittests library
Eric Bollengier [Thu, 18 Mar 2021 09:27:27 +0000 (10:27 +0100)] 
Add functions to unittests library

3 years agoEnhance bdelete_and_free() macro
Eric Bollengier [Tue, 16 Mar 2021 12:43:32 +0000 (13:43 +0100)] 
Enhance bdelete_and_free() macro

3 years agowin32: Fix #7373 About issue with the rc build
Norbert Bizet [Thu, 11 Mar 2021 14:56:43 +0000 (09:56 -0500)] 
win32: Fix #7373 About issue with the rc build

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).