aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/fuse.h4
-rw-r--r--include/linux/fuse.h11
2 files changed, 11 insertions, 4 deletions
diff --git a/include/fuse.h b/include/fuse.h
index 6837b9e..e18f606 100644
--- a/include/fuse.h
+++ b/include/fuse.h
@@ -23,9 +23,11 @@ struct fuse_operations {
int (*getdir) (const char *path, struct fuse_dh *h, dirfiller_t filler);
int (*mknod) (const char *path, int mode, int rdev);
int (*mkdir) (const char *path, int mode);
- int (*symlink) (const char *from, const char *to);
int (*unlink) (const char *path);
int (*rmdir) (const char *path);
+ int (*rename) (const char *from, const char *to);
+ int (*symlink) (const char *from, const char *to);
+ int (*link) (const char *from, const char *to);
};
struct fuse *fuse_new();
diff --git a/include/linux/fuse.h b/include/linux/fuse.h
index b519a8d..64a4af3 100644
--- a/include/linux/fuse.h
+++ b/include/linux/fuse.h
@@ -44,6 +44,7 @@ enum fuse_opcode {
FUSE_UNLINK,
FUSE_RMDIR,
FUSE_RENAME,
+ FUSE_LINK,
};
/* Conservative buffer size for the client */
@@ -79,10 +80,14 @@ struct fuse_mkdir_in {
char name[1];
};
-
struct fuse_rename_in {
unsigned long newdir;
- char names[2];
+ char names[1];
+};
+
+struct fuse_link_in {
+ unsigned long newdir;
+ char name[1];
};
struct fuse_in_header {
@@ -93,7 +98,7 @@ struct fuse_in_header {
struct fuse_out_header {
int unique;
- int result;
+ int error;
};
struct fuse_dirent {