diff options
author | Poornima G <pgurusid@redhat.com> | 2018-01-16 14:14:39 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-01-31 09:13:58 +0000 |
commit | 542af5714d761e787276111ca8bf7a5c69afb721 (patch) | |
tree | c546c94eac9711ad403bd5c04493f5bb543c800b /rpc | |
parent | bb34b07fd2ec5e6c3eed4fe0cdf33479dbf5127b (diff) |
protocol: Implement put fop
Updates #353
Change-Id: I755b9208690be76935d763688fa414521eba3a40
Signed-off-by: Poornima G <pgurusid@redhat.com>
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/rpc-lib/src/protocol-common.h | 1 | ||||
-rw-r--r-- | rpc/xdr/src/glusterfs4-xdr.x | 12 | ||||
-rw-r--r-- | rpc/xdr/src/libgfxdr.sym | 1 |
3 files changed, 14 insertions, 0 deletions
diff --git a/rpc/rpc-lib/src/protocol-common.h b/rpc/rpc-lib/src/protocol-common.h index aafd94400c6..e922c890854 100644 --- a/rpc/rpc-lib/src/protocol-common.h +++ b/rpc/rpc-lib/src/protocol-common.h @@ -67,6 +67,7 @@ enum gf_fop_procnum { GFS3_OP_SETACTIVELK, GFS3_OP_ICREATE, GFS3_OP_NAMELINK, + GFS3_OP_PUT, GFS3_OP_MAXVALUE, }; diff --git a/rpc/xdr/src/glusterfs4-xdr.x b/rpc/xdr/src/glusterfs4-xdr.x index bf92c8db9de..5ee86c24a0b 100644 --- a/rpc/xdr/src/glusterfs4-xdr.x +++ b/rpc/xdr/src/glusterfs4-xdr.x @@ -153,6 +153,18 @@ struct gfx_icreate_req { gfx_dict xdata; }; +struct gfx_put_req { + opaque pargfid[16]; + string bname<>; + unsigned int mode; + unsigned int umask; + unsigned int flag; + u_quad_t offset; + unsigned int size; + gfx_dict xattr; + gfx_dict xdata; +}; + struct gfx_namelink_req { opaque pargfid[16]; string bname<>; diff --git a/rpc/xdr/src/libgfxdr.sym b/rpc/xdr/src/libgfxdr.sym index 89fc513eda7..bd9131be7c6 100644 --- a/rpc/xdr/src/libgfxdr.sym +++ b/rpc/xdr/src/libgfxdr.sym @@ -339,6 +339,7 @@ xdr_gfx_getsnap_name_uuid_rsp xdr_gfx_getactivelk_rsp xdr_gfx_getactivelk_req xdr_gfx_setactivelk_req +xdr_gfx_put_req xdr_compound_req_v2 xdr_gfx_compound_req xdr_compound_rsp_v2 |