]> git.ipfire.org Git - thirdparty/bacula.git/log
thirdparty/bacula.git
4 years agowin32: Add cdp plugin
Eric Bollengier [Tue, 24 Nov 2020 14:00:46 +0000 (15:00 +0100)] 
win32: Add cdp plugin

4 years agowin32: Tweak Makefile to handle dependencies
Alain Spineux [Mon, 12 Mar 2018 16:29:02 +0000 (17:29 +0100)] 
win32: Tweak Makefile to handle dependencies

- the dependencies where ignored because the target was wrong
  before > main.o obj64/main.d: main.cpp who.h ../libwin32/main.cpp
  after  > obj64/main.o obj64/main.d: main.cpp who.h ../libwin32/main.cpp
  the "obj64" "prefix allows make to find the rule when building
  obj64/main.o
- adding "-" to "include" shut up missing .d files at first compile

4 years agoAdd support for QT5 in windows build
Eric Bollengier [Mon, 16 Mar 2020 14:11:50 +0000 (15:11 +0100)] 
Add support for QT5 in windows build

4 years agowin32: Makefile add winfiled target + NOTPARALLEL
Alain Spineux [Mon, 26 Mar 2018 10:09:16 +0000 (12:09 +0200)] 
win32: Makefile add winfiled target + NOTPARALLEL

- the .NOTPARALLEL option just disable the "-j" option effect at the
  level of the Makefile to keep it sequential. The "-j" will be passed
  to sub-level Makefile
- the new target allow to quickly RE-build the client when all files
  have been already compiled once.
- A quick way to build the client :
  use "make win64=yes bat=no winfiled -j 4" to quickly build the client
- this is not 100% reliable, but very convenient for faster development
  of the client.
- run the command twice to be sure.
- for the build of the package does as usual, don't use "-j"

4 years agoUpdate copyrights
Eric Bollengier [Tue, 24 Nov 2020 14:00:46 +0000 (15:00 +0100)] 
Update copyrights

4 years agowin32: update External-mingw*
Eric Bollengier [Fri, 3 Dec 2021 12:15:02 +0000 (13:15 +0100)] 
win32: update External-mingw*

4 years agoFix compilation warning
Eric Bollengier [Fri, 3 Dec 2021 12:14:59 +0000 (13:14 +0100)] 
Fix compilation warning

4 years agoFix compilation on Tru64
Kern Sibbald [Tue, 12 May 2020 19:41:03 +0000 (21:41 +0200)] 
Fix compilation on Tru64

4 years agoReplace a memset by bmemset in findlib/bfile.c
Eric Bollengier [Fri, 3 Dec 2021 12:02:03 +0000 (13:02 +0100)] 
Replace a memset by bmemset in findlib/bfile.c

4 years agoBEE Backport filed/fd_plugins.c
Eric Bollengier [Fri, 3 Dec 2021 11:24:51 +0000 (12:24 +0100)] 
BEE Backport filed/fd_plugins.c

4 years agoFix incorrect error message with metadata backup
Eric Bollengier [Tue, 26 Oct 2021 07:38:56 +0000 (09:38 +0200)] 
Fix incorrect error message with metadata backup

4 years agoFix #8276 About segfault when plugins are not loaded
Eric Bollengier [Tue, 19 Oct 2021 15:48:14 +0000 (17:48 +0200)] 
Fix #8276 About segfault when plugins are not loaded

4 years agoFix compilation on OSX
Eric Bollengier [Wed, 15 Sep 2021 17:17:22 +0000 (19:17 +0200)] 
Fix compilation on OSX

4 years agoFix #8142 Skip XATTR larger than MaximumNetworkBuffer
Eric Bollengier [Wed, 15 Sep 2021 15:15:29 +0000 (17:15 +0200)] 
Fix #8142 Skip XATTR larger than MaximumNetworkBuffer

4 years agoBEE Backport stored/stored_conf.h
Eric Bollengier [Fri, 3 Dec 2021 11:13:25 +0000 (12:13 +0100)] 
BEE Backport stored/stored_conf.h

4 years agoFix #8343 About weird output characters after stopping job
Michal Rakowski [Tue, 9 Nov 2021 11:07:16 +0000 (12:07 +0100)] 
Fix #8343 About weird output characters after stopping job

4 years agocloud: Fix #8265 Do not re-open part.1 during truncate
Norbert Bizet [Wed, 3 Nov 2021 13:30:10 +0000 (09:30 -0400)] 
cloud: Fix #8265 Do not re-open part.1 during truncate

Whem using glacier, if we re-open the part.1 after the truncate,
bacula might have to wait 3 days to get the part.1 from the cloud
to finally truncate it as well. During this call, the SD is locked
and all jobs are blocked.

4 years agoFix #7396 grant command error in granting privileges script for MySQL
Marcin Haba [Wed, 3 Mar 2021 14:21:59 +0000 (15:21 +0100)] 
Fix #7396 grant command error in granting privileges script for MySQL

4 years agoFix #7319 Introduce 'du' command inside restore menu
Michal Rakowski [Sun, 14 Feb 2021 22:31:15 +0000 (23:31 +0100)] 
Fix #7319 Introduce 'du' command inside restore menu

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

Restore menu's du commands mimics Linux 'du' commands in terms that it
simply sums size of all files in directories below. For files, it simply
prints it's sizes.

TREE_NODE`s delta_seq size was reduced to int16_t since we don't expect
it to be any bigger at all while it reduced struct`s size a little bit
(it was still expanded by the `size` filed though).

4 years agoUpdate information message with 'purge jobs name=' command
Eric Bollengier [Mon, 22 Feb 2021 08:46:57 +0000 (09:46 +0100)] 
Update information message with 'purge jobs name=' command

4 years agoFix #6051 About adding 'name' arg for 'purge jobs' command
Michal Rakowski [Mon, 15 Feb 2021 22:59:07 +0000 (23:59 +0100)] 
Fix #6051 About adding 'name' arg for 'purge jobs' command

4 years agoChange .bvfs_get_jobids() to use PriorJob
Eric Bollengier [Tue, 26 Oct 2021 09:19:49 +0000 (11:19 +0200)] 
Change .bvfs_get_jobids() to use PriorJob

4 years agoBackport dird/ua_cmds.c from Enterprise
Eric Bollengier [Fri, 3 Dec 2021 10:49:38 +0000 (11:49 +0100)] 
Backport dird/ua_cmds.c from Enterprise

Remove useless bmemset() with POOL_DBR

4 years agoUpdate help command for the purge command
Eric Bollengier [Mon, 22 Feb 2021 08:52:16 +0000 (09:52 +0100)] 
Update help command for the purge command

4 years agoUse bmemset in dird/job.c
Eric Bollengier [Fri, 3 Dec 2021 10:45:50 +0000 (11:45 +0100)] 
Use bmemset in dird/job.c

4 years agoFix #8167 About BAT tool crashing the dir
Norbert Bizet [Tue, 21 Sep 2021 09:22:49 +0000 (05:22 -0400)] 
Fix #8167 About BAT tool crashing the dir

Reintroduced missing 'if(job)' case for get_job_storage, so that it
works for both 'run' and 'job' arguments provided.
Removed unneded get_job_storage() call from get_storage().

4 years agoMove the delete volume event just before the actual deletion
Eric Bollengier [Wed, 8 Sep 2021 15:39:35 +0000 (17:39 +0200)] 
Move the delete volume event just before the actual deletion

4 years agoTweak debug message in lib/progress.h
Eric Bollengier [Fri, 3 Dec 2021 10:32:22 +0000 (11:32 +0100)] 
Tweak debug message in lib/progress.h

4 years agoregress: Fix base64-unittest
Eric Bollengier [Tue, 27 Oct 2020 15:52:43 +0000 (16:52 +0100)] 
regress: Fix base64-unittest

4 years agoscripts: Fix git version script.
Radosław Korzeniewski [Thu, 16 Sep 2021 08:39:21 +0000 (10:39 +0200)] 
scripts: Fix git version script.

4 years agoAdd PriorJob to llist job output
Eric Bollengier [Tue, 26 Oct 2021 11:59:56 +0000 (13:59 +0200)] 
Add PriorJob to llist job output

4 years agoAllow to use PriorJob in db_get_job_record() if the Job is not found
Eric Bollengier [Tue, 26 Oct 2021 09:19:02 +0000 (11:19 +0200)] 
Allow to use PriorJob in db_get_job_record() if the Job is not found

The .bvfs_get_jobids ujobid=xxxx function will set the Job and the PriorJob
fields to search for a JobId. It will allow to search on Copy Jobs.

4 years agoAdd support for Fujitsu Eternus LT under Solaris 11
Eric Bollengier [Mon, 13 Mar 2017 13:33:17 +0000 (14:33 +0100)] 
Add support for Fujitsu Eternus LT under Solaris 11

4 years agoTweak spaces in inc_conf.c
Eric Bollengier [Tue, 12 Oct 2021 09:45:00 +0000 (11:45 +0200)] 
Tweak spaces in inc_conf.c

4 years agoUse const in global names in dird_conf.h
Eric Bollengier [Tue, 12 Oct 2021 09:43:28 +0000 (11:43 +0200)] 
Use const in global names in dird_conf.h

4 years agoFix #8140 About wrong version mentioned in catalog update scripts
Michal Rakowski [Mon, 13 Sep 2021 10:14:16 +0000 (12:14 +0200)] 
Fix #8140 About wrong version mentioned in catalog update scripts

4 years agoFix #8159 About a deadlock when starting the Director with a missconfigured catalog
Eric Bollengier [Thu, 16 Sep 2021 11:39:49 +0000 (13:39 +0200)] 
Fix #8159 About a deadlock when starting the Director with a missconfigured catalog

4 years agomysql: add Primary Key for all fixed tables
Michal Rakowski [Sun, 2 Aug 2020 20:55:16 +0000 (22:55 +0200)] 
mysql: add Primary Key for all fixed tables

4 years agoRemove debugging information
Dan Langille [Sun, 10 Oct 2021 20:14:51 +0000 (20:14 +0000)] 
Remove debugging information

4 years agoRemove extraneous file committed in error
Dan Langille [Sun, 10 Oct 2021 20:13:42 +0000 (20:13 +0000)] 
Remove extraneous file committed in error

4 years agoGet regression testing working on FreeBSD
Dan Langille [Sun, 10 Oct 2021 20:12:12 +0000 (20:12 +0000)] 
Get regression testing working on FreeBSD

4 years agoFix #8126 About strange ouput for the .status client command
Michal Rakowski [Mon, 6 Sep 2021 10:03:33 +0000 (12:03 +0200)] 
Fix #8126 About strange ouput for the .status client command

4 years agoFix compilation warning on STATUS_PKT
Eric Bollengier [Thu, 2 Sep 2021 09:41:37 +0000 (11:41 +0200)] 
Fix compilation warning on STATUS_PKT

4 years agoregress: Schedule new store mngr test
Eric Bollengier [Wed, 1 Sep 2021 14:53:20 +0000 (16:53 +0200)] 
regress: Schedule new store mngr test

4 years agoregress: add all-store-mngr-tests
Michal Rakowski [Tue, 31 Aug 2021 08:19:19 +0000 (10:19 +0200)] 
regress: add all-store-mngr-tests

4 years agoregress: add store-mngr-many-read-devs-test
Michal Rakowski [Mon, 30 Aug 2021 08:57:07 +0000 (10:57 +0200)] 
regress: add store-mngr-many-read-devs-test

4 years agoFix #8098 About director crash for Migration job
Michal Rakowski [Mon, 30 Aug 2021 08:54:56 +0000 (10:54 +0200)] 
Fix #8098 About director crash for Migration job

All of the 'read' storage groups members have to be
incremented/decremented instead of just first on from the list.

4 years agotweak comment about lmgr_mutex_is_locked()
Alain Spineux [Wed, 1 Sep 2021 13:36:50 +0000 (15:36 +0200)] 
tweak comment about lmgr_mutex_is_locked()

4 years agoProgressCounter::find_accounting(state=0) return start_t & end_t
Alain Spineux [Fri, 27 Aug 2021 13:42:29 +0000 (15:42 +0200)] 
ProgressCounter::find_accounting(state=0) return start_t & end_t

- this allow to use find_accounting() method instead of accessing
  directly the fields start_t & end_t

4 years agofix the %W hexdump output size limit problem in bsnprintf
Alain Spineux [Fri, 27 Aug 2021 13:38:44 +0000 (15:38 +0200)] 
fix the %W hexdump output size limit problem in bsnprintf

- bsnprintf was display twice the number of digits
- this is exclusively used by dedup

4 years agoFix incorrect patch merged with WIP work
Eric Bollengier [Wed, 1 Sep 2021 14:37:44 +0000 (16:37 +0200)] 
Fix incorrect patch merged with WIP work

4 years agoFix compilation error on redhat7
Eric Bollengier [Wed, 1 Sep 2021 13:40:28 +0000 (15:40 +0200)] 
Fix compilation error on redhat7

4 years agoregress: Add regress tests for metaplugin accurate get feature.
Radosław Korzeniewski [Mon, 30 Aug 2021 08:02:38 +0000 (10:02 +0200)] 
regress: Add regress tests for metaplugin accurate get feature.

4 years agometaplugin: Add accurate get feature for backends.
Radosław Korzeniewski [Mon, 30 Aug 2021 08:02:00 +0000 (10:02 +0200)] 
metaplugin: Add accurate get feature for backends.

4 years agoAdd getAccurateAttribs() FD Plugins callback.
Radosław Korzeniewski [Mon, 30 Aug 2021 07:58:41 +0000 (09:58 +0200)] 
Add getAccurateAttribs() FD Plugins callback.

This callback implements a direct query on accurate database.
To make a query you need to provide `fname` in `accurate_attribs_pkt`
parameter struct. Then you will get response at other struct fields.

4 years agometaplugin: Add missing files.
Radosław Korzeniewski [Thu, 26 Aug 2021 14:40:09 +0000 (16:40 +0200)] 
metaplugin: Add missing files.

4 years agoregress: Update kubernetes regress test.
Radosław Korzeniewski [Wed, 25 Aug 2021 15:37:38 +0000 (17:37 +0200)] 
regress: Update kubernetes regress test.

4 years agoregress: Update metaplugin regress tests.
Radosław Korzeniewski [Wed, 25 Aug 2021 15:37:14 +0000 (17:37 +0200)] 
regress: Update metaplugin regress tests.

4 years agoregress: Update regression script for accurate mode.
Radosław Korzeniewski [Wed, 25 Aug 2021 14:54:04 +0000 (16:54 +0200)] 
regress: Update regression script for accurate mode.

4 years agometaplugin: Add accurate mode query.
Radosław Korzeniewski [Wed, 25 Aug 2021 14:52:53 +0000 (16:52 +0200)] 
metaplugin: Add accurate mode query.

This patch implements a basic accurate mode query to the metaplugin
protocol. In this extension the backend can issue `CHECK:$fname`
command followed by a standard `STAT:...` and `TSTAMP:...` commands
to ask Bacula if it should backup $fname in this job.
The metaplugin will response with simple "OK", you should backup this
file or "SEEN" it before, backup is not required. This feature will work
with Accurate jobs only. If job is not accurate then user will get
an error job message.

4 years agopluginlib: Update general build.
Radosław Korzeniewski [Tue, 24 Aug 2021 11:10:40 +0000 (13:10 +0200)] 
pluginlib: Update general build.

4 years agoUpdate general plugins build.
Radosław Korzeniewski [Mon, 23 Aug 2021 14:59:36 +0000 (16:59 +0200)] 
Update general plugins build.

4 years agometaplugin: Fix invalid constant comparision.
Radosław Korzeniewski [Mon, 23 Aug 2021 14:35:46 +0000 (16:35 +0200)] 
metaplugin: Fix invalid constant comparision.

This is a possible regression as we changed the PTCOMM
Interface but do not update error condition verification.

4 years agometaplugin: Update regression to check large RestoreObject.
Radosław Korzeniewski [Tue, 20 Jul 2021 14:15:43 +0000 (16:15 +0200)] 
metaplugin: Update regression to check large RestoreObject.

4 years agometaplugin: sendbackend() update.
Radosław Korzeniewski [Tue, 20 Jul 2021 14:15:01 +0000 (16:15 +0200)] 
metaplugin: sendbackend() update.

4 years agocdp: open the inotify stream using the CLOEXEC (close on exec) flag
Alain Spineux [Tue, 31 Aug 2021 08:57:24 +0000 (10:57 +0200)] 
cdp: open the inotify stream using the CLOEXEC (close on exec) flag

- this will avoid for any child to corrupt the inotify stream

4 years agocloud: Fix #8101 Update S3 error list to match the libs3 index
Norbert Bizet [Tue, 31 Aug 2021 14:15:36 +0000 (10:15 -0400)] 
cloud: Fix #8101 Update S3 error list to match the libs3 index

4 years agocloud: Fix destination name when moving part
Norbert Bizet [Thu, 26 Aug 2021 16:44:08 +0000 (12:44 -0400)] 
cloud: Fix destination name when moving part

4 years agocloud: S3 delete parts once it's been renamed
Norbert Bizet [Thu, 26 Aug 2021 16:32:24 +0000 (12:32 -0400)] 
cloud: S3 delete parts once it's been renamed

4 years agoFix compilation
Eric Bollengier [Thu, 26 Aug 2021 13:44:46 +0000 (15:44 +0200)] 
Fix compilation

4 years agocloud: Fix S3 error msg generation during upload
Norbert Bizet [Thu, 26 Aug 2021 09:58:47 +0000 (05:58 -0400)] 
cloud: Fix S3 error msg generation during upload

4 years agowin32: Switch to OpenSSL 1.1.1l
Eric Bollengier [Tue, 24 Aug 2021 18:20:30 +0000 (20:20 +0200)] 
win32: Switch to OpenSSL 1.1.1l

4 years agotweak ProgressCounter to store some accounting for the different state
Alain Spineux [Mon, 23 Aug 2021 12:49:10 +0000 (14:49 +0200)] 
tweak ProgressCounter to store some accounting for the different state

- this make it easier to show the time spend in the different part of the
   vacuum for example.

4 years agoAdd macro for MmsgD7-8
Alain Spineux [Wed, 1 Sep 2021 13:12:11 +0000 (15:12 +0200)] 
Add macro for MmsgD7-8

4 years agoadd built-in hexdump to bsnprintf()
Alain Spineux [Fri, 20 Aug 2021 11:52:43 +0000 (13:52 +0200)] 
add built-in hexdump to bsnprintf()

- sample
char hash[MAX_HASH_SIZE];
int hash_size=32;

/* notice that the length is the length in the output "buffer" not the
   length of the input buffer. This is like in any printf() "length"
   any char in the input will generate 2 digit in the output, you must
   multiply by 2 the size of the input buffer or get a small output!
   It is safe because bnsprintf() knows the length of its output buffer
   and truncate any overload
*/
Mmsg(0, "the hash is :%64W", hash);             // fixed size
Mmsg(0, "the hash is :%*W", 2*hash_size, hash); // variable size

4 years agoregress: Schedule new test remote-console-duplicate-test in CDASH
Eric Bollengier [Wed, 11 Aug 2021 07:32:05 +0000 (09:32 +0200)] 
regress: Schedule new test remote-console-duplicate-test in CDASH

4 years agoregress: add test for #7998 About client initiated backup crash
Michal Rakowski [Tue, 10 Aug 2021 10:51:32 +0000 (12:51 +0200)] 
regress: add test for #7998 About client initiated backup crash

4 years agoFix #7998 About dir crashing for client intiated backup
Michal Rakowski [Tue, 10 Aug 2021 10:51:06 +0000 (12:51 +0200)] 
Fix #7998 About dir crashing for client intiated backup

Description:
For client initiated backup, ua->UA_sock == jcr->file_bsock, see
(ua_run.c:275):
if (rc.fdcalled) {
      jcr->file_bsock = ua->UA_sock;
      jcr->file_bsock->set_jcr(jcr);
}

So when jcr is freed, the ua->UA_sock which is used by ua->error_msg
and others, is no longer valid.

4 years agoRevert "Fix #7998 About dir crashing for client intiated backup"
Michal Rakowski [Tue, 10 Aug 2021 10:44:23 +0000 (12:44 +0200)] 
Revert "Fix #7998 About dir crashing for client intiated backup"

This reverts commit c891dfd15fda4841ed8f6c69b6db7c43c80fb026.

4 years agoregress: Schedule new test copy-job-res-rename-test in CDASH
Eric Bollengier [Wed, 11 Aug 2021 07:30:06 +0000 (09:30 +0200)] 
regress: Schedule new test copy-job-res-rename-test in CDASH

4 years agoregress: add test for org#2627 about dir crashing during copy job
Michal Rakowski [Tue, 10 Aug 2021 16:00:35 +0000 (18:00 +0200)] 
regress: add test for org#2627 about dir crashing during copy job

4 years agoFix org#2627 About DIR crashing for copy jobs and resource rename
Michal Rakowski [Tue, 10 Aug 2021 15:58:45 +0000 (17:58 +0200)] 
Fix org#2627 About DIR crashing for copy jobs and resource rename

4 years agoEnsure that the DIR will reject catalog update from the FD
Alain Spineux [Tue, 3 Aug 2021 11:25:56 +0000 (13:25 +0200)] 
Ensure that the DIR will reject catalog update from the FD

- bget_dirmsg() allows or denies some operation reagarding the role

4 years agoremove dead code mount_request()
Alain Spineux [Tue, 3 Aug 2021 08:18:59 +0000 (10:18 +0200)] 
remove dead code mount_request()

4 years agocleanup dead code: dir_send_job_status()
Alain Spineux [Tue, 3 Aug 2021 07:39:22 +0000 (09:39 +0200)] 
cleanup dead code: dir_send_job_status()

4 years agoFix #7998 About dir crashing for client intiated backup
Michal Rakowski [Fri, 6 Aug 2021 21:40:59 +0000 (23:40 +0200)] 
Fix #7998 About dir crashing for client intiated backup

Description:
For client initiated backup, ua->UA_sock == jcr->file_bsock, see
(ua_run.c:275):
if (rc.fdcalled) {
      jcr->file_bsock = ua->UA_sock;
      jcr->file_bsock->set_jcr(jcr);
}

So when jcr is freed, the ua->UA_sock which is used by ua->error_msg
and others, is no longer valid.

4 years agoFix compilation warning in storage manager to get rid of 'initialzer lists' warning
Michal Rakowski [Fri, 6 Aug 2021 16:35:46 +0000 (18:35 +0200)] 
Fix compilation warning in storage manager to get rid of 'initialzer lists' warning

Description:
when using:
mutex = PTHREAD_MUTEX_INITIALIZER;
instead of:
pthread_mutex_init(&mutex, NULL);
There could be warning on some environments:
store_mngr.c:31:10: warning: extended initializer lists only available
with -std=c++11 or -std=gnu++11 [enabled by default]
    mutex = PTHREAD_MUTEX_INITIALIZER;

To get rid of it, simply use the init/destroy mutex helpers.

4 years agodocker: Check the presence of the docker tools duing loadPlugins()
Eric Bollengier [Fri, 6 Aug 2021 15:50:14 +0000 (17:50 +0200)] 
docker: Check the presence of the docker tools duing loadPlugins()

If the plugin is installed without the tools, the status client command
is broken.

*st client
Automatically selected Client: centos7-64-fd
Connecting to Client centos7-64-fd at centos7-64:9102
Failed to connect to Client centos7-64-fd.
====
You have messages.
*m
06-Aug 02:47 centos7-64-dir JobId 0: Fatal error: File daemon "centos7-64-fd" rejected Job command: docker: Unable to use command tool: /usr/bin/docker Err=No such file or directory

4 years agoFix segfault with the status dir command and debug level 250
Eric Bollengier [Fri, 6 Aug 2021 13:47:21 +0000 (15:47 +0200)] 
Fix segfault with the status dir command and debug level 250

4 years agoregress: Fix plugin-objects-test for MySQL
Eric Bollengier [Fri, 6 Aug 2021 13:26:24 +0000 (15:26 +0200)] 
regress: Fix plugin-objects-test for MySQL

4 years agoFix compilation warnings
Eric Bollengier [Fri, 6 Aug 2021 07:39:22 +0000 (09:39 +0200)] 
Fix compilation warnings

4 years agoregress: add some sleep in store-mngr-busy-dev-test
Michal Rakowski [Thu, 5 Aug 2021 13:20:06 +0000 (15:20 +0200)] 
regress: add some sleep in store-mngr-busy-dev-test

4 years agoregress: Fix console-acl-test
Eric Bollengier [Thu, 5 Aug 2021 09:43:21 +0000 (11:43 +0200)] 
regress: Fix console-acl-test

With the new features of the "list jobmedia" command (filter by jobid),
the command used in the script "list jobmedia jobid=1" now works as
expected and is returning only one record instead of everything.

4 years agoregress: Cleanup files generated by the regexwhere-test
Eric Bollengier [Thu, 5 Aug 2021 09:17:22 +0000 (11:17 +0200)] 
regress: Cleanup files generated by the regexwhere-test

4 years agoFix SQL query generated with ACLs
Eric Bollengier [Thu, 5 Aug 2021 09:06:19 +0000 (11:06 +0200)] 
Fix SQL query generated with ACLs

Issue reported by the console-acl-test

05-Aug 10:59 localhost-dir JobId 0: bdb.h:141 SELECT JobId,Media.VolumeName,FirstIndex,LastIndex FROM JobMedia JOIN Media
USING (MediaId)  JOIN Job USING (JobId)  JOIN Client USING (ClientId)  JOIN Pool USING (PoolId)  LEFT JOIN FileSet USING (
FileSetId)    WHERE  (Client.Name IN ('localhost-fd'))  ORDER BY JobMediaId ASC
05-Aug 10:59 localhost-dir JobId 0: Fatal error: bdb.h:141 bdb.h:141 query SELECT JobMediaId,JobId,Media.MediaId,Media.VolumeName,FirstIndex,LastIndex,StartFile,JobMedia.EndFile,StartBlock,JobMedia.EndBlock FROM JobMedia JOIN Media USING (MediaId)  JOIN Job USING (JobId)  JOIN Client USING (ClientId)  JOIN Pool USING (PoolId)  LEFT JOIN FileSet USING (FileSetId) WHERE  (Client.Name IN ('localhost-fd'))  ORDER BY JobMediaId ASC failed:
ERROR:  common column name "poolid" appears more than once in left table

The Pool restriction was introduced recently and is not mandatory.

4 years agoregress: Fix edit-unittests
Eric Bollengier [Thu, 5 Aug 2021 08:58:50 +0000 (10:58 +0200)] 
regress: Fix edit-unittests

The test procedure tries to run the test from src/lib,
and it doesn't work very well with libtool...

make: Entering directory '/home/r1/r1/regress/build/src/lib'
/bin/rm -f edit.o
/usr/bin/g++ -DTEST_PROGRAM   -c -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -Wall -g -O0 -fno-strict-aliasing -fno-exceptions -fno-rtti  edit.c
/home/r1/r1/regress/build/libtool --silent --tag=CXX --mode=link /usr/bin/g++  -L. -o edit_test edit.o unittests.o  -lbac -lm -lpthread -ldl -ldl  -lssl -lcrypto
/home/r1/r1/regress/build/libtool --silent --tag=CXX --mode=install /usr/bin/install -c -m 0750 edit_test /home/r1/r1/regress/bin/
/bin/rm -f edit.o
/usr/bin/g++   -c -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -Wall -g -O0 -fno-strict-aliasing -fno-exceptions -fno-rtti  edit.c
make: Leaving directory '/home/r1/r1/regress/build/src/lib'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit statusn

4 years agoAdd !verified to default FD configuration files
Eric Bollengier [Thu, 5 Aug 2021 07:46:47 +0000 (09:46 +0200)] 
Add !verified to default FD configuration files

4 years agoregress: Update verify tests with files listing
Michal Rakowski [Wed, 21 Jul 2021 11:18:55 +0000 (13:18 +0200)] 
regress: Update verify tests with files listing

4 years agoFix #6119 About listing files being verified
Michal Rakowski [Wed, 4 Aug 2021 10:29:38 +0000 (12:29 +0200)] 
Fix #6119 About listing files being verified

4 years agoregress: tweak copy-job-mail-test
Michal Rakowski [Thu, 5 Aug 2021 06:15:46 +0000 (08:15 +0200)] 
regress: tweak copy-job-mail-test