Changesets: bareos

master 536f4263

2024-11-15 12:13

arogge

Ported: N/A

Details Diff
dir: fix error in modulo schedules

replace the old implementation for the modulo scheduler with a nicer
one. This will also fix an out-of-bounds error that was present in the
previous code.

Co-Authored-By: Sebastian Sura <sebastian.sura@bareos.com>
mod - core/src/dird/run_conf.cc Diff File

master d6d41670

2024-11-15 12:10

arogge

Ported: N/A

Details Diff
btape: adapt to no-PRE_LABEL change

move to 1:0 instead of 0:1 when doing multi-tape unfill.
As we now have a file-mark right after the label block, btape needs to
move to the first block after that file-mark instead of the second block
in the first file.
This change also adds reading the volume label of the second tape, which
was not done before.
mod - core/src/stored/btape.cc Diff File

master 819e8876

2024-11-15 12:08

arogge

Ported: N/A

Details Diff
btape: avoid pointer-confusion

remove alias for g_dcr->block as this is unsafe. The memory will be
reallocated during operation which will invalidate the alias-pointer.
mod - core/src/stored/btape.cc Diff File

master 37015466

2024-11-15 09:34

pstorz


Committer: Bareos Bot

Ported: N/A

Details Diff
crypto_openssl.cc: remove unused lines
mod - core/src/lib/crypto_openssl.cc Diff File

master be204446

2024-11-14 15:57

pstorz


Committer: Bareos Bot

Ported: N/A

Details Diff
bareosfd_test.py: allow a delta of 1.1
mod - core/src/plugins/filed/python/test/bareosfd_test.py Diff File

master f8bc213f

2024-11-14 14:10

Sebastian Sura


Committer: Bareos Bot

Ported: N/A

Details Diff
statefile: add more debug info for failing test
mod - core/src/tests/statefile.cc Diff File

master 11e47b4f

2024-11-14 14:08

Sebastian Sura


Committer: Bareos Bot

Ported: N/A

Details Diff
test-path-conversions: fix mistakes

The old code did not handle ./.. correctly, so we should not try to
emulate that.
The long_file_name was not setup correctly, so I fixed that and added
a test that checked the previously checked behaviour.
mod - core/src/tests/test_path_conversion.cc Diff File

master 3adbe005

2024-11-14 13:23

Sebastian Sura


Committer: Bareos Bot

Ported: N/A

Details Diff
backup: fix deadlocking while trying to write jmsg

Jmsg may try to take the jcr->mutex_guard() lock, so we cannot call it
while having the lock held.
mod - core/src/filed/backup.cc Diff File

master 9d064cad

2024-11-14 12:52

Sebastian Sura


Committer: Bareos Bot

Ported: N/A

Details Diff
glob: add more debug messages
mod - core/src/lib/lex.cc Diff File

master 57e75edf

2024-11-14 12:50

Sebastian Sura


Committer: Bareos Bot

Ported: N/A

Details Diff
compat: fix handling of relative paths

Our fix for invalid paths messed up our handling for relative paths as
'.' was treated as an invalid character and was replaced. This caused
the '.' that glob() generated to end up in an absolute path, which was
is not valid.

We can now also reenable the parser test as this was the only reason
that it did not work.
mod - CMakeLists.txt Diff File
mod - core/src/win32/compat/compat.cc Diff File

master 4f90f177

2024-11-14 12:48

Sebastian Sura


Committer: Bareos Bot

Ported: N/A

Details Diff
util: add path component iterator
mod - core/src/lib/util.h Diff File

master edf98cf4

2024-11-14 09:31

Sebastian Sura


Committer: Bareos Bot

Ported: N/A

Details Diff
quota-softquota: disable vss for test

This test runs multiple backups and, since vss takes a long time to
setup, runs into timeouts. As such we disable VSS for this test.
mod - systemtests/tests/quota-softquota/etc/bareos/bareos-dir.d/fileset/FS_TESTJOB.conf.in Diff File

master b2cae150

2024-11-14 09:19

Sebastian Sura


Committer: Bareos Bot

Ported: N/A

Details Diff
systemtests: disable bareos-concurrency on windows

This test requires a shell script + flock to function correctly.
mod - CMakeLists.txt Diff File

master 008274f7

2024-11-14 08:19

Sebastian Sura


Committer: Bareos Bot

Ported: N/A

Details Diff
systemtests: fix disabled tests

You cannot set test properties on tests that do not exist. Subtests
dont exist if you disable the main test, so this was leading to
configuration errors on windows.
mod - systemtests/tests/always-incremental-consolidate/CMakeLists.txt Diff File
mod - systemtests/tests/ignoreduplicatecheck/CMakeLists.txt Diff File

master 38c4fba8

2024-11-14 07:54

Sebastian Sura


Committer: Bareos Bot

Ported: N/A

Details Diff
bareos-basic: fix check for non existing file on windows

dangling-link does not get created on windows, so we need to chose a
different file.
mod - systemtests/tests/bareos-basic/testrunner-bls-autoxflate Diff File

master 3afb1825

2024-11-14 07:35

Sebastian Sura


Committer: Bareos Bot

Ported: N/A

Details Diff
systemtests: fix /dev/null for windows

We replace /dev/null with a variable so that we can use NUL on windows
instead!
mod - systemtests/CMakeLists.txt Diff File
mod - systemtests/environment.in Diff File
mod - systemtests/tests/accurate-lmdb-stresstest/testrunner-duplicate-files Diff File
mod - systemtests/tests/accurate-lmdb-stresstest/testrunner-file-miscount Diff File
mod - systemtests/tests/accurate-stresstest/testrunner-duplicate-files Diff File
mod - systemtests/tests/accurate-stresstest/testrunner-file-miscount Diff File
mod - systemtests/tests/acl/testrunner Diff File
mod - systemtests/tests/bareos-basic/testrunner-filesettext-is-updated Diff File
mod - systemtests/tests/bareos-basic/testrunner-hardlinks Diff File
mod - systemtests/tests/bareos-basic/testrunner-rerun-jobs Diff File
mod - systemtests/tests/bareos-basic/testrunner-run-non-existing-jobid Diff File
mod - systemtests/tests/bareos-basic/testrunner-simple-backup-and-restore Diff File
mod - systemtests/tests/bareos-basic/testrunner-status-subscriptions Diff File
mod - systemtests/tests/bareos-basic/testrunner-test-make-catalog-backup Diff File
mod - systemtests/tests/bareos-basic/testrunner-very-long-job-names Diff File
mod - systemtests/tests/bareos-concurrency/test-concurrency-common Diff File
mod - systemtests/tests/bconsole-basic/testrunner-dotjobstatus Diff File
mod - systemtests/tests/bconsole-basic/testrunner-status-client Diff File
mod - systemtests/tests/bconsole-pam/testrunner Diff File
mod - systemtests/tests/bscan-bextract-bls-bcopy/testrunner Diff File
mod - systemtests/tests/checkpoints/testrunner-checkpoints-and-spooling Diff File
mod - systemtests/tests/checkpoints/testrunner-checkpoints-on-cancel Diff File
mod - systemtests/tests/checkpoints/testrunner-checkpoints-on-kill Diff File
mod - systemtests/tests/checkpoints/testrunner-checkpoints-on-stop Diff File
mod - systemtests/tests/checkpoints/testrunner-checkpoints-regular-backup Diff File
mod - systemtests/tests/chflags/testrunner Diff File
mod - systemtests/tests/client-initiated/testrunner Diff File
mod - systemtests/tests/copy-archive-job/testrunner Diff File
mod - systemtests/tests/copy-migrate/testrunner-01-backup Diff File
mod - systemtests/tests/copy-migrate/testrunner-02-copy Diff File
mod - systemtests/tests/copy-migrate/testrunner-03-impossible-copy Diff File
mod - systemtests/tests/copy-migrate/testrunner-04-bscan Diff File
mod - systemtests/tests/copy-migrate/testrunner-05-migrate Diff File
mod - systemtests/tests/copy-remote-bscan/testrunner Diff File
mod - systemtests/tests/dedupable/testrunner-create-backup Diff File
mod - systemtests/tests/dedupable/testrunner-full-restore Diff File
mod - systemtests/tests/dedupable/testrunner-restore-dir Diff File
mod - systemtests/tests/dedupable/testrunner-restore-file Diff File
mod - systemtests/tests/dedupestimate/testrunner-create-backup Diff File
mod - systemtests/tests/droplet-s3/testrunner Diff File
mod - systemtests/tests/encrypt-signature-no-tls/testrunner Diff File
mod - systemtests/tests/encrypt-signature-tls-cert/testrunner Diff File
mod - systemtests/tests/file-count-regression/testrunner-check-regression Diff File
mod - systemtests/tests/gfapi-fd/testrunner Diff File
mod - systemtests/tests/glusterfs-backend/testrunner Diff File
mod - systemtests/tests/heartbeat-interval/testrunner-check Diff File
mod - systemtests/tests/ignoreduplicatecheck/testrunner-consolidate Diff File
mod - systemtests/tests/ignoreduplicatecheck/testrunner-copy Diff File
mod - systemtests/tests/ignoreduplicatecheck/testrunner-create-backups Diff File
mod - systemtests/tests/ignoreduplicatecheck/testrunner-migrate Diff File
mod - systemtests/tests/just-in-time-reservation/testrunner-01-create-backup Diff File
mod - systemtests/tests/just-in-time-reservation/testrunner-02-restore-backup Diff File
mod - systemtests/tests/just-in-time-reservation/testrunner-03-copy-local Diff File
mod - systemtests/tests/just-in-time-reservation/testrunner-04-restore-local-copy Diff File
mod - systemtests/tests/just-in-time-reservation/testrunner-05-migrate-remote Diff File
mod - systemtests/tests/just-in-time-reservation/testrunner-06-restore-remote-migration Diff File
mod - systemtests/tests/list-backups/testrunner Diff File
mod - systemtests/tests/multiple-clients/testrunner-consolidate-client Diff File
mod - systemtests/tests/multiplied-device/testrunner Diff File
mod - systemtests/tests/notls/testrunner Diff File
mod - systemtests/tests/parallel-jobs/testrunner-parallel-jobs Diff File
mod - systemtests/tests/parallel-jobs/testrunner-reservation-order Diff File
mod - systemtests/tests/passive/testrunner Diff File
mod - systemtests/tests/pruning/testrunner Diff File
mod - systemtests/tests/py3plug-dir/testrunner Diff File
mod - systemtests/tests/py3plug-fd-basic/testrunner-cancel-check Diff File
mod - systemtests/tests/py3plug-fd-basic/testrunner-cancel-check-no-wait Diff File
mod - systemtests/tests/py3plug-fd-basic/testrunner-config Diff File
mod - systemtests/tests/py3plug-fd-basic/testrunner-forcebackup Diff File
mod - systemtests/tests/py3plug-fd-basic/testrunner-jobmsg Diff File
mod - systemtests/tests/py3plug-fd-ldap/testrunner-backup Diff File
mod - systemtests/tests/py3plug-fd-ldap/testrunner-wrong_credentials Diff File
mod - systemtests/tests/py3plug-fd-libcloud/testrunner-default Diff File
mod - systemtests/tests/py3plug-fd-local-fileset-basic/testrunner-basic Diff File
mod - systemtests/tests/py3plug-fd-local-fileset-basic/testrunner-io_in_core Diff File
mod - systemtests/tests/py3plug-fd-local-fileset-restoreobject/testrunner Diff File
mod - systemtests/tests/py3plug-fd-postgresql/testrunner-debian Diff File
mod - systemtests/tests/py3plug-fd-postgresql/testrunner-default Diff File
mod - systemtests/tests/py3plug-fd-postgresql/testrunner-roles Diff File
mod - systemtests/tests/py3plug-fd-postgresql/testrunner-tablespace Diff File
mod - systemtests/tests/py3plug-fd-postgresql/testrunner-tasks-pgsql Diff File
mod - systemtests/tests/py3plug-fd-postgresql/testrunner-walsymlink Diff File
mod - systemtests/tests/py3plug-fd-vmware/testrunner Diff File
mod - systemtests/tests/py3plug-sd/testrunner Diff File
mod - systemtests/tests/restapi/testrunner Diff File
mod - systemtests/tests/restore/testrunner-archive-full-restore Diff File
mod - systemtests/tests/restore/testrunner-archive-restore-dir Diff File
mod - systemtests/tests/restore/testrunner-archive-restore-file Diff File
mod - systemtests/tests/restore/testrunner-check-hints Diff File
mod - systemtests/tests/restore/testrunner-create-backup Diff File
mod - systemtests/tests/restore/testrunner-error-full-restore Diff File
mod - systemtests/tests/restore/testrunner-full-restore Diff File
mod - systemtests/tests/restore/testrunner-multi Diff File
mod - systemtests/tests/restore/testrunner-restore-dir Diff File
mod - systemtests/tests/restore/testrunner-restore-file Diff File
mod - systemtests/tests/restore/testrunner-restore-old-archive Diff File
mod - systemtests/tests/scheduler/testrunner-scheduler-backup Diff File
mod - systemtests/tests/scsicrypto/testrunner-backup-bscrypto Diff File
mod - systemtests/tests/sparse-file/testrunner Diff File
mod - systemtests/tests/spool/testrunner Diff File

master a49ecb7d

2024-11-13 17:33

arogge

Ported: N/A

Details Diff
bpipe: don't unset empty vars

instead of unsetting variables that have an empty value, we now just set
them with an empty value.
mod - core/src/lib/bpipe_unix.cc Diff File

master 5c8f195e

2024-11-13 17:30

arogge

Ported: N/A

Details Diff
tests: fix bpipe_env_test for older compilers

some older compilers (GCC 8.5) did not like the code, so we replace the
implementation using std::string only.
mod - core/src/tests/bpipe_env_test.h Diff File

master eb35dc35

2024-11-13 15:25

Sebastian Sura


Committer: Bareos Bot

Ported: N/A

Details Diff
cmake: disable non functioning tests
mod - CMakeLists.txt Diff File

master d8df09ce

2024-11-13 15:12

Sebastian Sura


Committer: Bareos Bot

Ported: N/A

Details Diff
ua-output: fix not printing what bareos does

Its important that error messages output what bareos thinks and not
what the user inputed (as the user knows that himself).

This caused a weird issue on windows when 'show job=<jobname>' was
interpreted as 'show jobdefs=<jobname>' which returned the error

job resource <jobname> not found.

Which is extremely misleading, as bareos never searched for a job in
that case. If the error message would have been instead

jobdefs resource <jobname> not found.

then the user at least notices that bareos did something wrong and try
some other input instead of trying to understand why the job was not
found.
mod - core/src/dird/ua_output.cc Diff File

master 2ca064e9

2024-11-13 14:41

Sebastian Sura


Committer: Bareos Bot

Ported: N/A

Details Diff
ua-output: fix resource order

Previously the iteration order depended on the c++ lib
implementation (and could also be change from run to run). This lead
to issues where 'show job' would print jobs on linux but jobdefs on
windows.

To make sure that always the same element is chosen, we need to make
sure the order is always the same. This is easily done by just using
a vector here.
mod - core/src/dird/ua_output.cc Diff File
mod - core/src/dird/ua_output.h Diff File

master 3ec4c738

2024-11-13 13:55

Sebastian Sura


Committer: Bareos Bot

Ported: N/A

Details Diff
testfind: fix number of found files on windows

Now that windows supports hardlinks, we need to add them back to the
count, as they are not deleted in setup_data anymore.
mod - systemtests/tests/testfind/testrunner Diff File

master 60ee24c1

2024-11-13 11:33

arogge

Ported: N/A

Details Diff
dplcompat: fix systemtest on FreeBSD

On FreeBSD xattr on FIFOs don't work. As this produces an error during
backing up these files, the backup job will finish with a warning,
eventually being treated as a test failure. To work around that the two
fifos are deleted before the test here.
mod - systemtests/tests/dplcompat/etc/bareos/bareos-dir.d/fileset/SelfTest.conf.in Diff File
mod - systemtests/tests/dplcompat/testrunner-backup Diff File

master 2893613d

2024-11-12 10:12

bruno-at-bareos


Committer: Bareos Bot

Ported: N/A

Details Diff
adr: always-use-integer-when-comparing-timestamp-numbers

Introduce newly accepted adr for python code:
0003-always-use-integer-when-comparing-timestamp-numbers-in-python

Fix typo in README.md

Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
Co-authored-by: Sebastian Sura <124262655+sebsura@users.noreply.github.com>
add - docs/adr/0003-always-use-integer-when-comparing-timestamps-numbers-in-python.md Diff File
mod - docs/adr/README.md Diff File

master e558de7f

2024-11-11 15:34

Bareos Bot


Committer: GitHub

Ported: N/A

Details Diff
Merge pull request #1989

docs: move bareos-devel to github discussion
mod - CHANGELOG.md Diff File
mod - docs/manuals/source/DeveloperGuide/Webui.rst Diff File
mod - docs/manuals/source/DeveloperGuide/generaldevel.rst Diff File
mod - docs/manuals/source/DocumentationStyleGuide/CommonNames.rst Diff File
mod - docs/manuals/source/TasksAndConcepts/BareosSecurityIssues.rst Diff File
mod - docs/manuals/source/TasksAndConcepts/Plugins/FileDaemonPlugins/VMwarePlugin.rst.inc Diff File
mod - docs/manuals/source/TasksAndConcepts/TheWindowsVersionOfBareos.rst Diff File
mod - docs/manuals/source/conf.py Diff File
 First  Prev  1 2 3 ... 19 20 21 22 23 24 25 ... 70 ... 140 ... 210 ... 280 ... 350 ... 420 ... 490 ... 560 ... 630 ... 665 666 667  Next  Last