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

@ -14,14 +14,6 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include <fuse.h>
#include <algorithm>
#include <limits>
#include <map>
#include <string>
#include <vector>
#include "config.hpp"
#include "errno.hpp"
#include "fs_base_stat.hpp"
@ -31,6 +23,14 @@
#include "statvfs_util.hpp"
#include "ugid.hpp"
#include <fuse.h>
#include <algorithm>
#include <limits>
#include <map>
#include <string>
#include <vector>
using std::string;
using std::map;
using std::vector;
@ -108,7 +108,7 @@ _statfs(const Branches &branches_,
if(rv == -1)
continue;
rv = fs::lstatvfs(fullpath,stvfs);
rv = fs::lstatvfs(fullpath,&stvfs);
if(rv == -1)
continue;