1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/files/block_file_opener.cc Sun Mar 14 21:41:49 2021 +0100
1.3 @@ -0,0 +1,16 @@
1.4 +#include "block_file_accessor.h"
1.5 +#include "block_file_opener.h"
1.6 +
1.7 +/* Return a new accessor for 'fileid'. */
1.8 +
1.9 +Accessor *BlockFileOpener::make_accessor(fileid_t fileid)
1.10 +{
1.11 + FilePaths::iterator found = _paths.find(fileid);
1.12 +
1.13 + if (found != _paths.end())
1.14 + return new BlockFileAccessor(found->second, fileid);
1.15 + else
1.16 + return NULL;
1.17 +}
1.18 +
1.19 +// vim: tabstop=4 expandtab shiftwidth=4