From: Eric Bollengier Date: Wed, 17 Aug 2022 07:50:29 +0000 (+0200) Subject: Add device function to compute the file_size depending on the device driver X-Git-Tag: Beta-15.0.0~119 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7e58af0d0f12aad1ac65267f315946a293e0a46;p=thirdparty%2Fbacula.git Add device function to compute the file_size depending on the device driver --- diff --git a/bacula/src/stored/dev.h b/bacula/src/stored/dev.h index 5eab15067..2224ed367 100644 --- a/bacula/src/stored/dev.h +++ b/bacula/src/stored/dev.h @@ -537,6 +537,8 @@ public: /* Virtual functions that can be overridden */ + virtual void set_file_size(uint64_t val) { file_size = val;}; + virtual uint64_t update_file_size(uint64_t add) { file_size += add; return file_size; }; virtual void setVolCatName(const char *name); virtual void setVolCatStatus(const char *status); virtual void free_dcr_blocks(DCR *dcr); /* in block_util.c */