1.1 --- a/libfsserver/include/fsserver/block_file_accessor.h Thu Apr 22 00:12:16 2021 +0200
1.2 +++ b/libfsserver/include/fsserver/block_file_accessor.h Sat Apr 24 23:15:21 2021 +0200
1.3 @@ -21,6 +21,8 @@
1.4
1.5 #pragma once
1.6
1.7 +#include <stdio.h>
1.8 +
1.9 #include <fsserver/accessor.h>
1.10
1.11
1.12 @@ -32,6 +34,7 @@
1.13 {
1.14 protected:
1.15 offset_t _size;
1.16 + FILE *_fp;
1.17 char *_data;
1.18
1.19 /* Data transfer helper methods. */
1.20 @@ -41,7 +44,7 @@
1.21 virtual void flush_populated(Flexpage *flexpage);
1.22
1.23 public:
1.24 - explicit BlockFileAccessor(const char *path, fileid_t fileid);
1.25 + explicit BlockFileAccessor(FILE *fp, fileid_t fileid);
1.26
1.27 virtual offset_t get_size();
1.28