diff options
author | 2001-10-29 14:57:57 +0000 | |
---|---|---|
committer | 2001-10-29 14:57:57 +0000 | |
commit | b483c93623dd64eb5f1dcf23f32adb32f616ee0e (patch) | |
tree | 63818a8154d98c143d8bbb63d444818dced3caac /include | |
parent | 85c74fcdfd9e67d411c3e1734b34effd0d73fa4d (diff) |
x
Diffstat (limited to 'include')
-rw-r--r-- | include/fuse.h | 6 | ||||
-rw-r--r-- | include/linux/fuse.h | 18 |
2 files changed, 22 insertions, 2 deletions
diff --git a/include/fuse.h b/include/fuse.h index 6b1a151..6837b9e 100644 --- a/include/fuse.h +++ b/include/fuse.h @@ -20,8 +20,12 @@ typedef int (*dirfiller_t) (struct fuse_dh *, const char *, int type); struct fuse_operations { int (*getattr) (const char *path, struct stat *stbuf); int (*readlink) (const char *path, char *buf, size_t size); - int (*mknod) (const char *path, int mode, int rdev); 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); }; struct fuse *fuse_new(); diff --git a/include/linux/fuse.h b/include/linux/fuse.h index fb3aca0..b519a8d 100644 --- a/include/linux/fuse.h +++ b/include/linux/fuse.h @@ -39,6 +39,11 @@ enum fuse_opcode { FUSE_READLINK, FUSE_GETDIR, FUSE_MKNOD, + FUSE_MKDIR, + FUSE_SYMLINK, + FUSE_UNLINK, + FUSE_RMDIR, + FUSE_RENAME, }; /* Conservative buffer size for the client */ @@ -69,10 +74,21 @@ struct fuse_mknod_out { struct fuse_attr attr; }; +struct fuse_mkdir_in { + unsigned short mode; + char name[1]; +}; + + +struct fuse_rename_in { + unsigned long newdir; + char names[2]; +}; + struct fuse_in_header { int unique; enum fuse_opcode opcode; - unsigned long ino; + unsigned long ino; }; struct fuse_out_header { |