- // NOTE: We just do the stat() to get the data into the dentry cache for fast access;
- // we don't care about the return value. Thus, the callback has no parameter lists.
- // If we have no io_uring, the callback will be made immediately, with no stat() call
- // being done.
- void submit_stat(const char *path, std::function<void()> cb);
+ // NOTE: We just do the stat() to get the data into the dentry cache for fast access,
+ // or to check whether the file exists. Thus, the callback has only an OK/not OK boolean.
+ void submit_stat(const char *path, std::function<void(bool ok)> cb);