summaryrefslogtreecommitdiffstats
path: root/rpc/xdr/src/glusterfs3-xdr.h
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2011-12-23 10:00:28 +0530
committerAnand Avati <avati@gluster.com>2012-01-25 02:28:07 -0800
commite98752525706fd6d9989367eb84f1a7fc1b81fa4 (patch)
tree178db3b2fa12ad1c492c73124bc0db74f122989d /rpc/xdr/src/glusterfs3-xdr.h
parent49c325d949b2df06572df7dd3825735fb9c8cd6f (diff)
protocol: allow extra data in all the 'fops' over wire
Change-Id: I3920c68b5b317fc4a4acfd26d64d900bf7bd59d1 BUG: 782265 Signed-off-by: Amar Tumballi <amar@gluster.com> Reviewed-on: http://review.gluster.com/2511 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@gluster.com>
Diffstat (limited to 'rpc/xdr/src/glusterfs3-xdr.h')
-rw-r--r--rpc/xdr/src/glusterfs3-xdr.h308
1 files changed, 308 insertions, 0 deletions
diff --git a/rpc/xdr/src/glusterfs3-xdr.h b/rpc/xdr/src/glusterfs3-xdr.h
index 156608ff314..76b28b7491c 100644
--- a/rpc/xdr/src/glusterfs3-xdr.h
+++ b/rpc/xdr/src/glusterfs3-xdr.h
@@ -94,6 +94,10 @@ typedef struct gf_iatt gf_iatt;
struct gfs3_stat_req {
char gfid[16];
char *path;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_stat_req gfs3_stat_req;
@@ -101,6 +105,10 @@ struct gfs3_stat_rsp {
int op_ret;
int op_errno;
struct gf_iatt stat;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_stat_rsp gfs3_stat_rsp;
@@ -108,6 +116,10 @@ struct gfs3_readlink_req {
char gfid[16];
u_int size;
char *path;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_readlink_req gfs3_readlink_req;
@@ -116,6 +128,10 @@ struct gfs3_readlink_rsp {
int op_errno;
struct gf_iatt buf;
char *path;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_readlink_rsp gfs3_readlink_rsp;
@@ -129,6 +145,10 @@ struct gfs3_mknod_req {
u_int dict_len;
char *dict_val;
} dict;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_mknod_req gfs3_mknod_req;
@@ -138,6 +158,10 @@ struct gfs3_mknod_rsp {
struct gf_iatt stat;
struct gf_iatt preparent;
struct gf_iatt postparent;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_mknod_rsp gfs3_mknod_rsp;
@@ -150,6 +174,10 @@ struct gfs3_mkdir_req {
u_int dict_len;
char *dict_val;
} dict;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_mkdir_req gfs3_mkdir_req;
@@ -159,6 +187,10 @@ struct gfs3_mkdir_rsp {
struct gf_iatt stat;
struct gf_iatt preparent;
struct gf_iatt postparent;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_mkdir_rsp gfs3_mkdir_rsp;
@@ -166,6 +198,10 @@ struct gfs3_unlink_req {
char pargfid[16];
char *path;
char *bname;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_unlink_req gfs3_unlink_req;
@@ -174,6 +210,10 @@ struct gfs3_unlink_rsp {
int op_errno;
struct gf_iatt preparent;
struct gf_iatt postparent;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_unlink_rsp gfs3_unlink_rsp;
@@ -182,6 +222,10 @@ struct gfs3_rmdir_req {
int flags;
char *path;
char *bname;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_rmdir_req gfs3_rmdir_req;
@@ -190,6 +234,10 @@ struct gfs3_rmdir_rsp {
int op_errno;
struct gf_iatt preparent;
struct gf_iatt postparent;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_rmdir_rsp gfs3_rmdir_rsp;
@@ -202,6 +250,10 @@ struct gfs3_symlink_req {
u_int dict_len;
char *dict_val;
} dict;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_symlink_req gfs3_symlink_req;
@@ -211,6 +263,10 @@ struct gfs3_symlink_rsp {
struct gf_iatt stat;
struct gf_iatt preparent;
struct gf_iatt postparent;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_symlink_rsp gfs3_symlink_rsp;
@@ -221,6 +277,10 @@ struct gfs3_rename_req {
char *oldbname;
char *newpath;
char *newbname;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_rename_req gfs3_rename_req;
@@ -232,6 +292,10 @@ struct gfs3_rename_rsp {
struct gf_iatt postoldparent;
struct gf_iatt prenewparent;
struct gf_iatt postnewparent;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_rename_rsp gfs3_rename_rsp;
@@ -241,6 +305,10 @@ struct gfs3_link_req {
char *oldpath;
char *newpath;
char *newbname;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_link_req gfs3_link_req;
@@ -250,6 +318,10 @@ struct gfs3_link_rsp {
struct gf_iatt stat;
struct gf_iatt preparent;
struct gf_iatt postparent;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_link_rsp gfs3_link_rsp;
@@ -257,6 +329,10 @@ struct gfs3_truncate_req {
char gfid[16];
u_quad_t offset;
char *path;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_truncate_req gfs3_truncate_req;
@@ -265,6 +341,10 @@ struct gfs3_truncate_rsp {
int op_errno;
struct gf_iatt prestat;
struct gf_iatt poststat;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_truncate_rsp gfs3_truncate_rsp;
@@ -273,6 +353,10 @@ struct gfs3_open_req {
u_int flags;
u_int wbflags;
char *path;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_open_req gfs3_open_req;
@@ -280,6 +364,10 @@ struct gfs3_open_rsp {
int op_ret;
int op_errno;
quad_t fd;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_open_rsp gfs3_open_rsp;
@@ -288,6 +376,10 @@ struct gfs3_read_req {
quad_t fd;
u_quad_t offset;
u_int size;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_read_req gfs3_read_req;
@@ -296,6 +388,10 @@ struct gfs3_read_rsp {
int op_errno;
struct gf_iatt stat;
u_int size;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_read_rsp gfs3_read_rsp;
@@ -309,6 +405,10 @@ struct gfs3_lookup_req {
u_int dict_len;
char *dict_val;
} dict;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_lookup_req gfs3_lookup_req;
@@ -321,6 +421,10 @@ struct gfs3_lookup_rsp {
u_int dict_len;
char *dict_val;
} dict;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_lookup_rsp gfs3_lookup_rsp;
@@ -329,6 +433,10 @@ struct gfs3_write_req {
quad_t fd;
u_quad_t offset;
u_int size;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_write_req gfs3_write_req;
@@ -337,12 +445,20 @@ struct gfs3_write_rsp {
int op_errno;
struct gf_iatt prestat;
struct gf_iatt poststat;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_write_rsp gfs3_write_rsp;
struct gfs3_statfs_req {
char gfid[16];
char *path;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_statfs_req gfs3_statfs_req;
@@ -350,6 +466,10 @@ struct gfs3_statfs_rsp {
int op_ret;
int op_errno;
struct gf_statfs statfs;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_statfs_rsp gfs3_statfs_rsp;
@@ -359,6 +479,10 @@ struct gfs3_lk_req {
u_int cmd;
u_int type;
struct gf_proto_flock flock;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_lk_req gfs3_lk_req;
@@ -366,6 +490,10 @@ struct gfs3_lk_rsp {
int op_ret;
int op_errno;
struct gf_proto_flock flock;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_lk_rsp gfs3_lk_rsp;
@@ -376,6 +504,10 @@ struct gfs3_inodelk_req {
struct gf_proto_flock flock;
char *path;
char *volume;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_inodelk_req gfs3_inodelk_req;
@@ -386,12 +518,20 @@ struct gfs3_finodelk_req {
u_int type;
struct gf_proto_flock flock;
char *volume;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_finodelk_req gfs3_finodelk_req;
struct gfs3_flush_req {
char gfid[16];
quad_t fd;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_flush_req gfs3_flush_req;
@@ -399,6 +539,10 @@ struct gfs3_fsync_req {
char gfid[16];
quad_t fd;
u_int data;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_fsync_req gfs3_fsync_req;
@@ -407,6 +551,10 @@ struct gfs3_fsync_rsp {
int op_errno;
struct gf_iatt prestat;
struct gf_iatt poststat;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_fsync_rsp gfs3_fsync_rsp;
@@ -418,6 +566,10 @@ struct gfs3_setxattr_req {
char *dict_val;
} dict;
char *path;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_setxattr_req gfs3_setxattr_req;
@@ -429,6 +581,10 @@ struct gfs3_fsetxattr_req {
u_int dict_len;
char *dict_val;
} dict;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_fsetxattr_req gfs3_fsetxattr_req;
@@ -440,6 +596,10 @@ struct gfs3_xattrop_req {
char *dict_val;
} dict;
char *path;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_xattrop_req gfs3_xattrop_req;
@@ -450,6 +610,10 @@ struct gfs3_xattrop_rsp {
u_int dict_len;
char *dict_val;
} dict;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_xattrop_rsp gfs3_xattrop_rsp;
@@ -461,6 +625,10 @@ struct gfs3_fxattrop_req {
u_int dict_len;
char *dict_val;
} dict;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_fxattrop_req gfs3_fxattrop_req;
@@ -471,6 +639,10 @@ struct gfs3_fxattrop_rsp {
u_int dict_len;
char *dict_val;
} dict;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_fxattrop_rsp gfs3_fxattrop_rsp;
@@ -479,6 +651,10 @@ struct gfs3_getxattr_req {
u_int namelen;
char *path;
char *name;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_getxattr_req gfs3_getxattr_req;
@@ -489,6 +665,10 @@ struct gfs3_getxattr_rsp {
u_int dict_len;
char *dict_val;
} dict;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_getxattr_rsp gfs3_getxattr_rsp;
@@ -497,6 +677,10 @@ struct gfs3_fgetxattr_req {
quad_t fd;
u_int namelen;
char *name;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_fgetxattr_req gfs3_fgetxattr_req;
@@ -507,6 +691,10 @@ struct gfs3_fgetxattr_rsp {
u_int dict_len;
char *dict_val;
} dict;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_fgetxattr_rsp gfs3_fgetxattr_rsp;
@@ -514,6 +702,10 @@ struct gfs3_removexattr_req {
char gfid[16];
char *path;
char *name;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_removexattr_req gfs3_removexattr_req;
@@ -521,12 +713,20 @@ struct gfs3_fremovexattr_req {
char gfid[16];
quad_t fd;
char *name;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_fremovexattr_req gfs3_fremovexattr_req;
struct gfs3_opendir_req {
char gfid[16];
char *path;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_opendir_req gfs3_opendir_req;
@@ -534,6 +734,10 @@ struct gfs3_opendir_rsp {
int op_ret;
int op_errno;
quad_t fd;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_opendir_rsp gfs3_opendir_rsp;
@@ -541,6 +745,10 @@ struct gfs3_fsyncdir_req {
char gfid[16];
quad_t fd;
int data;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_fsyncdir_req gfs3_fsyncdir_req;
@@ -549,6 +757,10 @@ struct gfs3_readdir_req {
quad_t fd;
u_quad_t offset;
u_int size;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_readdir_req gfs3_readdir_req;
@@ -586,6 +798,10 @@ struct gfs3_access_req {
char gfid[16];
u_int mask;
char *path;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_access_req gfs3_access_req;
@@ -599,6 +815,10 @@ struct gfs3_create_req {
u_int dict_len;
char *dict_val;
} dict;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_create_req gfs3_create_req;
@@ -609,6 +829,10 @@ struct gfs3_create_rsp {
u_quad_t fd;
struct gf_iatt preparent;
struct gf_iatt postparent;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_create_rsp gfs3_create_rsp;
@@ -616,6 +840,10 @@ struct gfs3_ftruncate_req {
char gfid[16];
quad_t fd;
u_quad_t offset;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_ftruncate_req gfs3_ftruncate_req;
@@ -624,12 +852,20 @@ struct gfs3_ftruncate_rsp {
int op_errno;
struct gf_iatt prestat;
struct gf_iatt poststat;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_ftruncate_rsp gfs3_ftruncate_rsp;
struct gfs3_fstat_req {
char gfid[16];
quad_t fd;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_fstat_req gfs3_fstat_req;
@@ -637,6 +873,10 @@ struct gfs3_fstat_rsp {
int op_ret;
int op_errno;
struct gf_iatt stat;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_fstat_rsp gfs3_fstat_rsp;
@@ -648,6 +888,10 @@ struct gfs3_entrylk_req {
char *path;
char *name;
char *volume;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_entrylk_req gfs3_entrylk_req;
@@ -659,6 +903,10 @@ struct gfs3_fentrylk_req {
u_quad_t namelen;
char *name;
char *volume;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_fentrylk_req gfs3_fentrylk_req;
@@ -667,6 +915,10 @@ struct gfs3_setattr_req {
struct gf_iatt stbuf;
int valid;
char *path;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_setattr_req gfs3_setattr_req;
@@ -675,6 +927,10 @@ struct gfs3_setattr_rsp {
int op_errno;
struct gf_iatt statpre;
struct gf_iatt statpost;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_setattr_rsp gfs3_setattr_rsp;
@@ -682,6 +938,10 @@ struct gfs3_fsetattr_req {
quad_t fd;
struct gf_iatt stbuf;
int valid;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_fsetattr_req gfs3_fsetattr_req;
@@ -690,6 +950,10 @@ struct gfs3_fsetattr_rsp {
int op_errno;
struct gf_iatt statpre;
struct gf_iatt statpost;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_fsetattr_rsp gfs3_fsetattr_rsp;
@@ -697,6 +961,10 @@ struct gfs3_rchecksum_req {
quad_t fd;
u_quad_t offset;
u_int len;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_rchecksum_req gfs3_rchecksum_req;
@@ -708,12 +976,20 @@ struct gfs3_rchecksum_rsp {
u_int strong_checksum_len;
char *strong_checksum_val;
} strong_checksum;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_rchecksum_rsp gfs3_rchecksum_rsp;
struct gf_getspec_req {
u_int flags;
char *key;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gf_getspec_req gf_getspec_req;
@@ -721,6 +997,10 @@ struct gf_getspec_rsp {
int op_ret;
int op_errno;
char *spec;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gf_getspec_rsp gf_getspec_rsp;
@@ -735,6 +1015,10 @@ typedef struct gf_log_req gf_log_req;
struct gf_notify_req {
u_int flags;
char *buf;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gf_notify_req gf_notify_req;
@@ -743,24 +1027,40 @@ struct gf_notify_rsp {
int op_errno;
u_int flags;
char *buf;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gf_notify_rsp gf_notify_rsp;
struct gfs3_releasedir_req {
char gfid[16];
quad_t fd;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_releasedir_req gfs3_releasedir_req;
struct gfs3_release_req {
char gfid[16];
quad_t fd;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_release_req gfs3_release_req;
struct gf_common_rsp {
int op_ret;
int op_errno;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gf_common_rsp gf_common_rsp;
@@ -778,6 +1078,10 @@ struct gfs3_readdir_rsp {
int op_ret;
int op_errno;
struct gfs3_dirlist *reply;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_readdir_rsp gfs3_readdir_rsp;
@@ -800,6 +1104,10 @@ struct gfs3_readdirp_rsp {
int op_ret;
int op_errno;
struct gfs3_dirplist *reply;
+ struct {
+ u_int xdata_len;
+ char *xdata_val;
+ } xdata;
};
typedef struct gfs3_readdirp_rsp gfs3_readdirp_rsp;