]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix #11058 About fsync error reported for tape driver
authorEric Bollengier <eric@baculasystems.com>
Thu, 29 Aug 2024 08:25:37 +0000 (10:25 +0200)
committerEric Bollengier <eric@baculasystems.com>
Wed, 4 Dec 2024 08:14:26 +0000 (09:14 +0100)
bacula/src/stored/fifo_dev.h
bacula/src/stored/tape_dev.h

index 529a3c4b8734738c860b2476e6b6f4e9ed003f76..3ef2652a51320c815803c72baf569e31dcbc061d 100644 (file)
@@ -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_ */
index 031e3980a78bb913274e4967714fd2a595efd6f7..4f9223c22df69651c924cc22287ff2372d05909f 100644 (file)
@@ -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_ */