add statfs cache

This commit is contained in:
Antonio SJ Musumeci 2018-12-12 10:08:17 -05:00
parent f42bd8666e
commit 5be7e007ce
22 changed files with 303 additions and 95 deletions

View file

@ -20,6 +20,7 @@
#include "fs_base_statvfs.hpp"
#include "fs_info_t.hpp"
#include "fs_path.hpp"
#include "fs_statvfs_cache.hpp"
#include "statvfs_util.hpp"
#include <stdint.h>
@ -37,7 +38,7 @@ namespace fs
int rv;
struct statvfs st;
rv = fs::statvfs(*path_,st);
rv = fs::statvfs_cache(path_->c_str(),&st);
if(rv == 0)
{
info_->readonly = StatVFS::readonly(st);