From eabbb60448f790deb67f3a33f321d656a91d5d42 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 29 Aug 2024 10:25:37 +0200 Subject: [PATCH] Fix #11058 About fsync error reported for tape driver --- bacula/src/stored/fifo_dev.h | 1 + bacula/src/stored/tape_dev.h | 1 + 2 files changed, 2 insertions(+) diff --git a/bacula/src/stored/fifo_dev.h b/bacula/src/stored/fifo_dev.h index 529a3c4b8..3ef2652a5 100644 --- a/bacula/src/stored/fifo_dev.h +++ b/bacula/src/stored/fifo_dev.h @@ -35,6 +35,7 @@ public: bool truncate(DCR *dcr); const char *print_type(); virtual int device_specific_init(JCR *jcr, DEVRES *device); + bool sync_data(DCR *dcr) { return true; }; // Not implemented in fifo device }; #endif /* __FIFO_DEV_ */ diff --git a/bacula/src/stored/tape_dev.h b/bacula/src/stored/tape_dev.h index 031e3980a..4f9223c22 100644 --- a/bacula/src/stored/tape_dev.h +++ b/bacula/src/stored/tape_dev.h @@ -68,6 +68,7 @@ public: bool check_lintape_eod(); int use_worm() { return device->worm_command && device->control_name; }; alist *alert_list; + bool sync_data(DCR *dcr) { return true; }; // not implemented by tape driver }; #endif /* __TAPE_DEV_ */ -- 2.47.3