00001 00007 #ifndef INC_DB5FUSE_OPERATIONS_H 00008 #define INC_DB5FUSE_OPERATIONS_H 00009 #include <errno.h> 00010 #include <fcntl.h> 00011 #include <fuse.h> 00012 #include <stdio.h> 00013 #include <string.h> 00014 #include <unistd.h> 00015 00019 extern const char *fuse_device; 00020 00027 int fuse_impl_getattr (const char *path, struct stat *attr); 00028 00034 int fuse_impl_unlink (const char *path); 00035 00042 int fuse_impl_rename (const char *path, const char *newname); 00043 00050 int fuse_impl_truncate (const char *path, off_t newsize); 00051 00058 int fuse_impl_open (const char *path, struct fuse_file_info *filedata); 00059 00069 int fuse_impl_read (const char *path, char *data, size_t size, off_t offset, struct fuse_file_info *filedata); 00070 00080 int fuse_impl_write (const char *path, const char *data, size_t size, off_t offset, struct fuse_file_info *filedata); 00081 00088 int fuse_impl_statfs (const char *path, struct statvfs *stat); 00089 00096 int fuse_impl_flush (const char *path, struct fuse_file_info *filedata); 00097 00107 int fuse_impl_readdir(const char *path, void *data, fuse_fill_dir_t filler, off_t offset, struct fuse_file_info *filedata); 00108 00113 void *fuse_impl_init (struct fuse_conn_info *fs_attr); 00114 00119 void fuse_impl_destroy (void *data); 00120 00128 int fuse_impl_create (const char *path, mode_t mode, struct fuse_file_info *filedata); 00129 00136 int fuse_impl_utimens (const char *path, const struct timespec tv[2]); 00137 00145 int fuse_impl_fsync(const char *path, int inode, struct fuse_file_info *filedata); 00146 00147 #endif 00148