35 #ifndef _FUSE_PROBLEM_FUSE_HH_ 36 #define _FUSE_PROBLEM_FUSE_HH_ 38 #ifndef _FILE_OFFSET_BITS 39 #define _FILE_OFFSET_BITS 64 42 #define FUSE_USE_VERSION 30 44 #define _XOPEN_SOURCE 500 53 #include <sys/types.h> 88 int fpr_getattr(
const char *path,
struct stat *stbuf);
102 int fpr_readdir(
const char *path,
void *buf, fuse_fill_dir_t filler,
103 off_t offset,
struct fuse_file_info *fi);
115 int fpr_open(
const char *path,
struct fuse_file_info *fi);
130 int fpr_read(
const char *path,
char *buf,
size_t size, off_t offset,
131 struct fuse_file_info *fi);
146 int fpr_write(
const char *path,
const char *buf,
size_t size,
147 off_t offset,
struct fuse_file_info *fi);
void fpr_destroy()
destroyer for the fuse.problem filesystem.
void * problem
Definition: problemFuse.h:57
int fpr_read(const char *path, char *buf, size_t size, off_t offset, struct fuse_file_info *fi)
read callback for getting file content
int fpr_readdir(const char *path, void *buf, fuse_fill_dir_t filler, off_t offset, struct fuse_file_info *fi)
fill the stat struct for the filesystem
int fpr_open(const char *path, struct fuse_file_info *fi)
open file operation
int fpr_write(const char *path, const char *buf, size_t size, off_t offset, struct fuse_file_info *fi)
write callback
int fpr_getattr(const char *path, struct stat *stbuf)
getattr callback for fuse.problem
void fpr_init(const char *path)
initializer for the fuse.problem filesystem
int fpr_truncate(const char *path, off_t size)
truncate a file (fix it to zero when overwritten)