From 5e183482b09cec20f54ccb44e767a7fab51833e9 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Wed, 31 Oct 2001 14:52:35 +0000 Subject: x --- include/linux/fuse.h | 35 +++++++++++++++++++++++++++++------ 1 file changed, 29 insertions(+), 6 deletions(-) (limited to 'include/linux/fuse.h') diff --git a/include/linux/fuse.h b/include/linux/fuse.h index 64a4af3..5fe008c 100644 --- a/include/linux/fuse.h +++ b/include/linux/fuse.h @@ -19,11 +19,11 @@ struct fuse_mount_data { #define FUSE_ROOT_INO 1 struct fuse_attr { - unsigned short mode; - unsigned short nlink; - unsigned short uid; - unsigned short gid; - unsigned short rdev; + unsigned int mode; + unsigned int nlink; + unsigned int uid; + unsigned int gid; + unsigned int rdev; unsigned long long size; unsigned long blksize; unsigned long blocks; @@ -32,19 +32,28 @@ struct fuse_attr { unsigned long ctime; }; +#define FATTR_MODE (1 << 0) +#define FATTR_UID (1 << 1) +#define FATTR_GID (1 << 2) +#define FATTR_SIZE (1 << 3) +#define FATTR_UTIME (1 << 4) + enum fuse_opcode { FUSE_LOOKUP = 1, FUSE_FORGET, FUSE_GETATTR, + FUSE_SETATTR, FUSE_READLINK, + FUSE_SYMLINK, FUSE_GETDIR, FUSE_MKNOD, FUSE_MKDIR, - FUSE_SYMLINK, FUSE_UNLINK, FUSE_RMDIR, FUSE_RENAME, FUSE_LINK, + FUSE_OPEN, + FUSE_READ, }; /* Conservative buffer size for the client */ @@ -90,6 +99,20 @@ struct fuse_link_in { char name[1]; }; +struct fuse_setattr_in { + struct fuse_attr attr; + unsigned int valid; +}; + +struct fuse_open_in { + unsigned int flags; +}; + +struct fuse_read_in { + unsigned long long offset; + unsigned int size; +}; + struct fuse_in_header { int unique; enum fuse_opcode opcode; -- cgit v1.2.3