diff options
Diffstat (limited to 'core/src/stored/device_resource.cc')
-rw-r--r-- | core/src/stored/device_resource.cc | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/core/src/stored/device_resource.cc b/core/src/stored/device_resource.cc index 35e1e861e..7fb59d7de 100644 --- a/core/src/stored/device_resource.cc +++ b/core/src/stored/device_resource.cc @@ -3,7 +3,7 @@ Copyright (C) 2000-2011 Free Software Foundation Europe e.V. Copyright (C) 2011-2012 Planets Communications B.V. - Copyright (C) 2013-2021 Bareos GmbH & Co. KG + Copyright (C) 2013-2022 Bareos GmbH & Co. KG This program is Free Software; you can redistribute it and/or modify it under the terms of version three of the GNU Affero General Public @@ -38,7 +38,7 @@ DeviceResource::DeviceResource() , changer_command(nullptr) , alert_command(nullptr) , spool_directory(nullptr) - , dev_type(DeviceType::B_UNKNOWN_DEV) + , device_type(DeviceType::B_UNKNOWN_DEV) , label_type(B_BAREOS_LABEL) , autoselect(true) , norewindonclose(true) @@ -115,7 +115,7 @@ DeviceResource::DeviceResource(const DeviceResource& other) if (other.spool_directory) { spool_directory = strdup(other.spool_directory); } - dev_type = other.dev_type; + device_type = other.device_type; label_type = other.label_type; autoselect = other.autoselect; norewindonclose = other.norewindonclose; @@ -170,7 +170,7 @@ DeviceResource& DeviceResource::operator=(const DeviceResource& rhs) changer_command = rhs.changer_command; alert_command = rhs.alert_command; spool_directory = rhs.spool_directory; - dev_type = rhs.dev_type; + device_type = rhs.device_type; label_type = rhs.label_type; autoselect = rhs.autoselect; norewindonclose = rhs.norewindonclose; @@ -274,13 +274,10 @@ void DeviceResource::CreateAndAssignSerialNumber(uint16_t number) bool DeviceResource::Validate() { - if (max_block_size > 0 && dev_type != DeviceType::B_TAPE_DEV) { + if (max_block_size > 0 && device_type != DeviceType::B_TAPE_DEV) { my_config->AddWarning( "Setting 'Maximum Block Size' on a non-tape device is unsupported"); } - if (dev_type == DeviceType::B_RADOS_DEV) { - my_config->AddWarning("The Rados Storage Backend Device is deprecated"); - } return true; } |