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-11-02 11:55:50 +0300
committerAndreas Rogge <andreas.rogge@bareos.com>2022-11-07 19:40:28 +0300
commit4f18cc6f46c4bf5172c45490fa752b20329d414b (patch)
treeee784be3ac373797711aa820614c4a6bfed9d9ad
parent8208f2ad40a3f34317fda7bdedfd998fa89d6752 (diff)
stored: improve texts for Device Types
-rw-r--r--core/src/stored/dev.cc2
-rw-r--r--core/src/stored/stored_conf.cc4
2 files changed, 3 insertions, 3 deletions
diff --git a/core/src/stored/dev.cc b/core/src/stored/dev.cc
index a5d0e25a3..f5374c1ca 100644
--- a/core/src/stored/dev.cc
+++ b/core/src/stored/dev.cc
@@ -124,7 +124,7 @@ Device* FactoryCreateDevice(JobControlRecord* jcr,
if (!ImplementationFactory<Device>::IsRegistered(
device_resource->device_type)) {
- Jmsg2(jcr, M_ERROR, 0, _("%s has an unknown device type %s\n"),
+ Jmsg2(jcr, M_ERROR, 0, _("%s has an unsupported Device Type %s\n"),
device_resource->archive_device_string,
device_resource->device_type.c_str());
return nullptr;
diff --git a/core/src/stored/stored_conf.cc b/core/src/stored/stored_conf.cc
index ed9bc7ce5..6ef9e1d40 100644
--- a/core/src/stored/stored_conf.cc
+++ b/core/src/stored/stored_conf.cc
@@ -536,8 +536,8 @@ static void GuessMissingDeviceTypes(ConfigurationParser& my_config)
d->device_type = DeviceType::B_FIFO_DEV;
} else if (!BitIsSet(CAP_REQMOUNT, d->cap_bits)) {
Jmsg2(nullptr, M_ERROR_TERM, 0,
- _("%s is an unknown device type. Must be tape or directory, "
- "st_mode=%04o\n"),
+ "cannot deduce Device Type from '%s'. Must be tape or directory, "
+ "st_mode=%04o\n",
d->archive_device_string, (statp.st_mode & ~S_IFMT));
return;
}