diff --git a/include/ircd/fs/read.h b/include/ircd/fs/read.h index 357f30b62..255af9d1a 100644 --- a/include/ircd/fs/read.h +++ b/include/ircd/fs/read.h @@ -28,7 +28,7 @@ namespace ircd::fs std::string read(const string_view &path, const read_opts & = read_opts_default); // Test whether bytes in the specified range are cached and should not block - bool fetched(const fd &, const size_t &, const read_opts & = read_opts_default); + bool fincore(const fd &, const size_t &, const read_opts & = read_opts_default); // Prefetch bytes for subsequent read(); offset is given in opts. size_t prefetch(const fd &, const size_t &, const read_opts & = read_opts_default); diff --git a/ircd/fs.cc b/ircd/fs.cc index ee3caa708..1ae0a6a36 100644 --- a/ircd/fs.cc +++ b/ircd/fs.cc @@ -504,7 +504,7 @@ ircd::fs::prefetch(const fd &fd, } bool -ircd::fs::fetched(const fd &fd, +ircd::fs::fincore(const fd &fd, const size_t &count, const read_opts &opts) {