Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bareos/bareos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rogge <andreas.rogge@bareos.com>2022-10-05 11:23:09 +0300
committerAndreas Rogge <andreas.rogge@bareos.com>2022-11-07 19:37:28 +0300
commit30dc42f550b6731670c669b4c7b123addad07971 (patch)
tree2b381379501a26437e711ef147685fe3bb8a5e89 /systemtests
parent7a8e50f3ea94bc886ba903bee32cabe9b2a0f214 (diff)
stored: move device-type guessing to configparser
Previously the device-type for a device where the type was not specified was determined when it was first used. Now we do the check for every device right after the configuration was loaded and fail early if needed.
Diffstat (limited to 'systemtests')
-rw-r--r--systemtests/tests/bconsole/etc/bareos/bconsole.conf.in1
-rw-r--r--systemtests/tests/copy-remote-bscan/etc/bareos-remote/bareos-sd.d/device/FileStorage.conf2
2 files changed, 2 insertions, 1 deletions
diff --git a/systemtests/tests/bconsole/etc/bareos/bconsole.conf.in b/systemtests/tests/bconsole/etc/bareos/bconsole.conf.in
index 50b647c1d..df3050688 100644
--- a/systemtests/tests/bconsole/etc/bareos/bconsole.conf.in
+++ b/systemtests/tests/bconsole/etc/bareos/bconsole.conf.in
@@ -1,7 +1,6 @@
#
# Bareos User Agent (or Console) Configuration File
#
-
Director {
Name = @basename@-dir
DIRport = @dir_port@
diff --git a/systemtests/tests/copy-remote-bscan/etc/bareos-remote/bareos-sd.d/device/FileStorage.conf b/systemtests/tests/copy-remote-bscan/etc/bareos-remote/bareos-sd.d/device/FileStorage.conf
index 41d7a2ea8..c78922256 100644
--- a/systemtests/tests/copy-remote-bscan/etc/bareos-remote/bareos-sd.d/device/FileStorage.conf
+++ b/systemtests/tests/copy-remote-bscan/etc/bareos-remote/bareos-sd.d/device/FileStorage.conf
@@ -2,6 +2,7 @@ Device {
Name = RemoteFileStorage
Media Type = File
Archive Device = storage-remote
+ Device Type = File
LabelMedia = yes; # lets Bareos label unlabeled media
Random Access = yes;
AutomaticMount = yes; # when device opened, read it
@@ -13,6 +14,7 @@ Device {
Name = RemoteFileStorage2
Media Type = File
Archive Device = storage2-remote
+ Device Type = File
LabelMedia = yes; # lets Bareos label unlabeled media
Random Access = yes;
AutomaticMount = yes; # when device opened, read it