Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 650f8674b3
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (17 sloc) 0.521 kB
#ifndef S3FS_CACHE_H_
#define S3FS_CACHE_H_
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
struct stat_cache_entry {
struct stat stbuf;
unsigned long hit_count;
stat_cache_entry() : hit_count(0) {}
};
extern bool foreground;
extern unsigned long max_stat_cache_size;
int get_stat_cache_entry(const char *path, struct stat *buf);
void add_stat_cache_entry(const char *path, struct stat *st);
void delete_stat_cache_entry(const char *path);
void truncate_stat_cache();
#endif // S3FS_CACHE_H_
Jump to Line
Something went wrong with that request. Please try again.