Changesets: bareos

master 387d6b95

2023-11-30 16:36

arogge

Ported: N/A

Details Diff
scripts: add script to encode plugin parameters
mod - core/CMakeLists.txt Diff File
mod - core/platforms/freebsd/bareos-freebsd/bareos.com-common/pkg-plist.filedaemon-python-plugins-common Diff File
mod - core/platforms/packaging/bareos.spec Diff File
mod - core/scripts/CMakeLists.txt Diff File
add - core/scripts/bareos_encode_string.py Diff File
mod - debian/bareos-filedaemon-python-plugins-common.install.in Diff File

master 10983896

2023-11-30 16:09

joergs


Committer: Bareos Bot

Ported: N/A

Details Diff
cmake: print variables
add - cmake/BareosHelper.cmake Diff File
mod - cmake/BareosSetVariableDefaults.cmake Diff File
mod - core/CMakeLists.txt Diff File

master 12441636

2023-11-30 16:08

bruno-at-bareos


Committer: Bareos Bot

Ported: N/A

Details Diff
libcloud: split testrunner, improve cmake message

- cmake adjust python version to less than 3.8
make the comment less confusing
- split testrunner to local test-cleanup and test-setup
- add the import of empty dir to cover the case by uploading an
empty file with same name as dir
- improve comments, remove obsolete parts

Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
Co-authored-by: Sebastian Sura <124262655+sebsura@users.noreply.github.com>
mod - systemtests/tests/py3plug-fd-libcloud/CMakeLists.txt Diff File
add - systemtests/tests/py3plug-fd-libcloud/test-cleanup Diff File
add - systemtests/tests/py3plug-fd-libcloud/testrunner-default Diff File

master ee1ab4fe

2023-11-30 16:07

joergs


Committer: arogge

Ported: N/A

Details Diff
macos: make sure to use openssl v3
mod - core/CMakeLists.txt Diff File

master f1ce2bc0

2023-11-29 14:16

bruno-at-bareos


Committer: Bareos Bot

Ported: N/A

Details Diff
scripts: improve comment wording
mod - core/src/cats/create_bareos_database.in Diff File
mod - core/src/cats/drop_bareos_database.in Diff File
mod - core/src/cats/drop_bareos_tables.in Diff File
mod - core/src/cats/grant_bareos_privileges.in Diff File
mod - core/src/cats/make_bareos_tables.in Diff File
mod - core/src/cats/update_bareos_tables.in Diff File

master 50d59f6d

2023-11-29 11:00

bruno-at-bareos


Committer: Bareos Bot

Ported: N/A

Details Diff
apply fix copyright
mod - core/src/cats/drop_bareos_database.in Diff File
mod - core/src/cats/drop_bareos_tables.in Diff File
mod - core/src/cats/grant_bareos_privileges.in Diff File

master aaf044b7

2023-11-29 10:33

Sebastian Sura

Ported: N/A

Details Diff
fvec-test: add unit test for dedup/fvec.h
mod - core/src/tests/CMakeLists.txt Diff File
add - core/src/tests/fvec.cc Diff File

master 80524f7e

2023-11-29 09:08

Sebastian Sura

Ported: N/A

Details Diff
fvec: add fvec prototype
add - core/src/stored/backends/dedup/fvec.h Diff File

master 5082c118

2023-11-28 18:12

arogge

Ported: N/A

Details Diff
python-fd: expose actual enum values

the dictionaries in the module were previously filled with arbitrary
numbers that matched what we had in the enums.
With this patch we now export the enum value itself, so no mismatches
can happen.
The patch also converts the filetype defines into an enum.
mod - core/src/include/filetypes.h Diff File
mod - core/src/plugins/filed/python/module/bareosfd.h Diff File

master 08713dba

2023-11-28 14:43

bruno-at-bareos


Committer: Bareos Bot

Ported: N/A

Details Diff
scripts: force cd / for all postgresql scripts

add a forced cd / in scripts headers, with an explicit comment.

PostgreSQL binaries tried to chdir() at the end.
we force them to start somewhere postgres user will be able
to return without permissions errors.

Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
mod - core/src/cats/create_bareos_database.in Diff File
mod - core/src/cats/drop_bareos_database.in Diff File
mod - core/src/cats/drop_bareos_tables.in Diff File
mod - core/src/cats/grant_bareos_privileges.in Diff File
mod - core/src/cats/make_bareos_tables.in Diff File
mod - core/src/cats/update_bareos_tables.in Diff File

master 89dbdfe5

2023-11-28 13:22

Sebastian Sura


Committer: Bareos Bot

Ported: N/A

Details Diff
address-conf: fix not closing the opened socket

On windows one hase to use ::closesocket() instead of ::close() to
close sockets. See: bsock_tcp.cc:50-58
mod - core/src/lib/address_conf.cc Diff File

master 6f35a043

2023-11-27 17:41

Bareos Bot


Committer: GitHub

Ported: N/A

Details Diff
Merge pull request 0001606

plugins: remove old deprecated postgres plugin
mod - CHANGELOG.md Diff File
mod - core/platforms/packaging/bareos.spec Diff File
mod - core/src/plugins/filed/python/CMakeLists.txt Diff File
rm - core/src/plugins/filed/python/postgres/bareos-fd-postgres.py Diff File
mod - debian/bareos-filedaemon-postgresql-python-plugin.install.in Diff File
mod - systemtests/tests/CMakeLists.txt Diff File
rm - systemtests/tests/py3plug-fd-postgres/CMakeLists.txt Diff File
rm - systemtests/tests/py3plug-fd-postgres/database/setup_local_db.sh.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/catalog/MyCatalog.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/client/bareos-fd.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/director/bareos-dir.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/fileset/Catalog.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/fileset/PluginTest.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/fileset/PluginTestNoRole.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/fileset/PluginTestRole.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/fileset/SelfTest.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/job/RestoreFiles.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/job/backup-bareos-fd.conf Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/jobdefs/DefaultJob.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/messages/Daemon.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/messages/Standard.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/pool/Differential.conf Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/pool/Full.conf Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/pool/Incremental.conf Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/pool/Scratch.conf Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/storage/File.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-fd.d/client/myself.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-fd.d/director/bareos-dir.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-fd.d/messages/Standard.conf Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-sd.d/device/FileStorage.conf Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-sd.d/director/bareos-dir.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-sd.d/messages/Standard.conf Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-sd.d/storage/bareos-sd.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bconsole.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/testrunner-default Diff File
rm - systemtests/tests/py3plug-fd-postgres/testrunner-roles Diff File

master 4167c959

2023-11-27 17:41

Bareos Bot

Ported: N/A

Details Diff
Update CHANGELOG.md
mod - CHANGELOG.md Diff File

master aeb794ad

2023-11-27 14:34

Sebastian Sura

Ported: N/A

Details Diff
vadp-dumper: remove struct keyword
mod - core/src/vmware/vadp_dumper/bareos_vadp_dumper.cc Diff File

master 942b0081

2023-11-27 14:22

Sebastian Sura

Ported: N/A

Details Diff
copy-thread: add assertions

Since we cannot meaningfully recover from a mutex error, we should
just assert that they do not happen.
mod - core/src/vmware/vadp_dumper/copy_thread.cc Diff File

master ddc4ea86

2023-11-27 14:21

Sebastian Sura

Ported: N/A

Details Diff
vadp-dumper: fix buffer overflow

Since sectors_per_call is not actually bounded by SECTORS_PER_CALL, we
need to ensure that the buffer has enough space at runtime.
mod - core/src/vmware/vadp_dumper/bareos_vadp_dumper.cc Diff File

master 7be69c0c

2023-11-27 13:53

bruno-at-bareos

Ported: N/A

Details Diff
plugins: remove old deprecated postgres plugin

Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
mod - core/platforms/packaging/bareos.spec Diff File
mod - core/src/plugins/filed/python/CMakeLists.txt Diff File
rm - core/src/plugins/filed/python/postgres/bareos-fd-postgres.py Diff File
mod - debian/bareos-filedaemon-postgresql-python-plugin.install.in Diff File
mod - systemtests/tests/CMakeLists.txt Diff File
rm - systemtests/tests/py3plug-fd-postgres/CMakeLists.txt Diff File
rm - systemtests/tests/py3plug-fd-postgres/database/setup_local_db.sh.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/catalog/MyCatalog.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/client/bareos-fd.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/director/bareos-dir.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/fileset/Catalog.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/fileset/PluginTest.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/fileset/PluginTestNoRole.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/fileset/PluginTestRole.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/fileset/SelfTest.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/job/RestoreFiles.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/job/backup-bareos-fd.conf Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/jobdefs/DefaultJob.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/messages/Daemon.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/messages/Standard.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/pool/Differential.conf Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/pool/Full.conf Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/pool/Incremental.conf Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/pool/Scratch.conf Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-dir.d/storage/File.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-fd.d/client/myself.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-fd.d/director/bareos-dir.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-fd.d/messages/Standard.conf Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-sd.d/device/FileStorage.conf Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-sd.d/director/bareos-dir.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-sd.d/messages/Standard.conf Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bareos-sd.d/storage/bareos-sd.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/etc/bareos/bconsole.conf.in Diff File
rm - systemtests/tests/py3plug-fd-postgres/testrunner-default Diff File
rm - systemtests/tests/py3plug-fd-postgres/testrunner-roles Diff File

master 82193f5d

2023-11-27 13:07

arogge

Ported: N/A

Details Diff
python-fd: allow storing values in encoded format

by adding a transform (currently only "enc") to an option name, the
python baseclass will now decode the value.
i.e. if you configure `password#enc=E+*g/GAhM4` you will end up with
the option password containing the value "password".
mod - core/src/plugins/filed/python/pyfiles/BareosFdPluginBaseclass.py Diff File
mod - systemtests/tests/py3plug-fd-basic/etc/bareos/bareos-dir.d/fileset/PluginConfigTestNoFile.conf.in Diff File
mod - systemtests/tests/py3plug-fd-basic/etc/bareos/bareos-fd.d/plugin_defaults.ini Diff File
mod - systemtests/tests/py3plug-fd-basic/testrunner-config Diff File

master d4861da2

2023-11-27 09:54

Sebastian Sura

Ported: N/A

Details Diff
apply bareos-check-sources
mod - core/src/vmware/vadp_dumper/cbuf.cc Diff File
mod - core/src/vmware/vadp_dumper/cbuf.h Diff File
mod - core/src/vmware/vadp_dumper/copy_thread.cc Diff File
mod - core/src/vmware/vadp_dumper/copy_thread.h Diff File

master fd3277fe

2023-11-27 09:47

Sebastian Sura

Ported: N/A

Details Diff
copy-thread: fix data race

We need to ensure that the writer does not write into the block we are
currently reading. Currently we only distinguish between data thats
inside the queue (which can neither be written to nor read from) and
data thats outside the queue (which can _both_ be written to and read
from).
To fix this data race we split the data into three categories instead:
- The head of the queue (which can only be read from)
- The rest of the queue (which can neither be read from nor written
to)
- The data outside the queue (which can only be written to)
To accomplish this we split the normal dequeue() function into two
parts. The normal dequeue() becomes peek-like, only returning the
head element, and the new function FinishDeq() does the actual
dequeuing.
mod - core/src/vmware/vadp_dumper/cbuf.cc Diff File
mod - core/src/vmware/vadp_dumper/cbuf.h Diff File
mod - core/src/vmware/vadp_dumper/copy_thread.cc Diff File

master ec1c7b19

2023-11-27 09:44

Sebastian Sura

Ported: N/A

Details Diff
copy-thread: add capacity check

Since the input size is a variable, we need to ensure that we hold
enough capacity to actually read the data into the buffer. Otherwise,
if we get unlucky, we will run into the situation were the first few
cbts are very small, and the rest are really big, ensuring a buffer
overflow; possibly causing a crash.
mod - core/src/vmware/vadp_dumper/copy_thread.cc Diff File
mod - core/src/vmware/vadp_dumper/copy_thread.h Diff File

master 0544bbb0

2023-11-27 09:39

Sebastian Sura

Ported: N/A

Details Diff
vadp-dumper: apply bareos_check_sources
mod - core/src/vmware/vadp_dumper/bareos_vadp_dumper.cc Diff File

master 9d9a51c5

2023-11-27 09:38

Sebastian Sura

Ported: N/A

Details Diff
vadp-dumper: read from stdin during restore

This code path is only taken if multithreaded restore is selected.
mod - core/src/vmware/vadp_dumper/bareos_vadp_dumper.cc Diff File

master c1cefba3

2023-11-27 09:37

Sebastian Sura

Ported: N/A

Details Diff
vadp-dumper: add error message on read/write failure
mod - core/src/vmware/vadp_dumper/bareos_vadp_dumper.cc Diff File

master cae977b4

2023-11-27 09:09

Sebastian Sura

Ported: N/A

Details Diff
vadp-dumper: const -> inline constexpr
mod - core/src/vmware/vadp_dumper/bareos_vadp_dumper.cc Diff File
 First  Prev  1 2 3 ... 16 17 18 19 20 21 22 ... 60 ... 120 ... 180 ... 240 ... 300 ... 360 ... 420 ... 480 ... 540 ... 600 ... 607 608 609  Next  Last