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:
Diffstat (limited to 'core/src/stored/backends/gfapi_device.h')
-rw-r--r--core/src/stored/backends/gfapi_device.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/src/stored/backends/gfapi_device.h b/core/src/stored/backends/gfapi_device.h
index 282865f42..049cfaeb8 100644
--- a/core/src/stored/backends/gfapi_device.h
+++ b/core/src/stored/backends/gfapi_device.h
@@ -2,7 +2,7 @@
BAREOSĀ® - Backup Archiving REcovery Open Sourced
Copyright (C) 2014-2014 Planets Communications B.V.
- Copyright (C) 2014-2021 Bareos GmbH & Co. KG
+ Copyright (C) 2014-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
@@ -56,6 +56,8 @@ class gfapi_device : public Device {
~gfapi_device();
// Interface from Device
+ SeekMode GetSeekMode() const override { return SeekMode::BYTES; }
+ bool CanReadConcurrently() const override { return true; }
int d_close(int) override;
int d_open(const char* pathname, int flags, int mode) override;
int d_ioctl(int fd, ioctl_req_t request, char* mt = NULL) override;
@@ -65,6 +67,6 @@ class gfapi_device : public Device {
ssize_t d_read(int fd, void* buffer, size_t count) override;
ssize_t d_write(int fd, const void* buffer, size_t count) override;
bool d_truncate(DeviceControlRecord* dcr) override;
-} override;
+};
} /* namespace storagedaemon */
#endif // BAREOS_STORED_BACKENDS_GFAPI_DEVICE_H_