1 #ifndef DBFS_OPS_H |
|
2 #define DBFS_OPS_H |
|
3 |
|
4 #include "../evfuse.h" |
|
5 |
|
6 /* dbfs.c */ |
|
7 void dbfs_init (void *userdata, struct fuse_conn_info *conn); |
|
8 void dbfs_destroy (void *arg); |
|
9 |
|
10 /* attr.c */ |
|
11 void dbfs_getattr (struct fuse_req *req, fuse_ino_t ino, struct fuse_file_info *fi); |
|
12 void dbfs_setattr(struct fuse_req *req, fuse_ino_t ino, struct stat *attr, int to_set, struct fuse_file_info *fi); |
|
13 |
|
14 /* link.c */ |
|
15 void dbfs_lookup (struct fuse_req *req, fuse_ino_t parent, const char *name); |
|
16 void dbfs_readlink (struct fuse_req *req, fuse_ino_t ino); |
|
17 void dbfs_unlink (struct fuse_req *req, fuse_ino_t parent, const char *name); |
|
18 void dbfs_link (struct fuse_req *req, fuse_ino_t ino, fuse_ino_t newparent, const char *newname); |
|
19 |
|
20 /* dirop.c */ |
|
21 void dbfs_opendir (struct fuse_req *req, fuse_ino_t ino, struct fuse_file_info *fi); |
|
22 void dbfs_readdir (struct fuse_req *req, fuse_ino_t ino, size_t size, off_t off, struct fuse_file_info *fi); |
|
23 void dbfs_releasedir (struct fuse_req *req, fuse_ino_t ino, struct fuse_file_info *fi); |
|
24 |
|
25 /* mk.c */ |
|
26 void dbfs_mknod (struct fuse_req *req, fuse_ino_t parent, const char *name, mode_t mode, dev_t rdev); |
|
27 void dbfs_mkdir (struct fuse_req *req, fuse_ino_t parent, const char *name, mode_t mode); |
|
28 void dbfs_symlink (struct fuse_req *req, const char *link, fuse_ino_t parent, const char *name); |
|
29 |
|
30 /* tree.c */ |
|
31 void dbfs_rename (struct fuse_req *req, fuse_ino_t parent, const char *name, fuse_ino_t newparent, const char *newname); |
|
32 |
|
33 /* fileop.c */ |
|
34 void dbfs_open (struct fuse_req *req, fuse_ino_t ino, struct fuse_file_info *fi); |
|
35 void dbfs_read (struct fuse_req *req, fuse_ino_t ino, size_t size, off_t off, struct fuse_file_info *fi); |
|
36 void dbfs_write (struct fuse_req *req, fuse_ino_t ino, const char *buf, size_t size, off_t off, struct fuse_file_info *fi); |
|
37 void dbfs_flush (struct fuse_req *req, fuse_ino_t ino, struct fuse_file_info *fi); |
|
38 void dbfs_release (struct fuse_req *req, fuse_ino_t ino, struct fuse_file_info *fi); |
|
39 |
|
40 #endif /* DBFS_OPS_H */ |
|