1 /* 2 BAREOS® - Backup Archiving REcovery Open Sourced 3 4 Copyright (C) 2000-2012 Free Software Foundation Europe e.V. 5 Copyright (C) 2011-2012 Planets Communications B.V. 6 Copyright (C) 2013-2020 Bareos GmbH & Co. KG 7 8 This program is Free Software; you can redistribute it and/or 9 modify it under the terms of version three of the GNU Affero General Public 10 License as published by the Free Software Foundation and included 11 in the file LICENSE. 12 13 This program is distributed in the hope that it will be useful, but 14 WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 Affero General Public License for more details. 17 18 You should have received a copy of the GNU Affero General Public License 19 along with this program; if not, write to the Free Software 20 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 21 02110-1301, USA. 22 */ 23 24 #ifndef BAREOS_SRC_STORED_SD_DEVICE_CONTROL_RECORD_H_ 25 #define BAREOS_SRC_STORED_SD_DEVICE_CONTROL_RECORD_H_ 26 27 #include "stored/device_control_record.h" 28 29 namespace storagedaemon { 30 31 class StorageDaemonDeviceControlRecord : public DeviceControlRecord { 32 public: 33 bool DirFindNextAppendableVolume() override; 34 bool DirUpdateVolumeInfo(bool label, bool update_LastWritten) override; 35 bool DirCreateJobmediaRecord(bool zero) override; 36 bool DirUpdateFileAttributes(DeviceRecord* record) override; 37 bool DirAskSysopToMountVolume(int mode) override; 38 bool DirAskSysopToCreateAppendableVolume() override; 39 bool DirGetVolumeInfo(enum get_vol_info_rw writing) override; 40 DeviceControlRecord* get_new_spooling_dcr() override; 41 }; 42 43 44 } // namespace storagedaemon 45 46 #endif // BAREOS_SRC_STORED_SD_DEVICE_CONTROL_RECORD_H_ 47