2021-04-11 | Paul Boddie | raw annotate files changeset graph | Changed mmap to return the file size, not the populated extent of the region. Introduced a higher-level client library for file access. Adjusted handling of the region state in the file library. Added a test of the higher-level client library. |
1 #pragma once 2 3 #include "host_file_opener.h" 4 5 6 7 /* Support for providing access to files. */ 8 9 class BlockFileOpener : public HostFileOpener 10 { 11 protected: 12 /* Configurable methods. */ 13 14 virtual Accessor *make_accessor(fileid_t fileid); 15 16 public: 17 explicit BlockFileOpener(Pages *pages) 18 : HostFileOpener(pages) 19 { 20 } 21 }; 22 23 // vim: tabstop=4 expandtab shiftwidth=4