diff options
author | Susant Palai <spalai@redhat.com> | 2016-04-30 18:00:44 +0530 |
---|---|---|
committer | Niels de Vos <ndevos@redhat.com> | 2016-05-01 18:04:31 -0700 |
commit | 2cca000fcc2adbffbb3f5258c57ae564b9e2d51f (patch) | |
tree | 971db1740040b652d226987baf417a33bb8ab035 /rpc | |
parent | c823603f5aab0a60eb076ea43b869739745d9f21 (diff) |
protocol: add getactivelk () fop
Change-Id: Ie38198db990f133fe163ba160cdf647e34f83f4f
BUG: 1326085
Signed-off-by: Susant Palai <spalai@redhat.com>
Reviewed-on: http://review.gluster.org/13994
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Smoke: Gluster Build System <jenkins@build.gluster.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/rpc-lib/src/protocol-common.h | 3 | ||||
-rw-r--r-- | rpc/xdr/src/glusterfs3-xdr.x | 18 |
2 files changed, 20 insertions, 1 deletions
diff --git a/rpc/rpc-lib/src/protocol-common.h b/rpc/rpc-lib/src/protocol-common.h index e711f33b00f..ae6189d2e9b 100644 --- a/rpc/rpc-lib/src/protocol-common.h +++ b/rpc/rpc-lib/src/protocol-common.h @@ -63,8 +63,9 @@ enum gf_fop_procnum { GFS3_OP_SEEK, GFS3_OP_COMPOUND, GFS3_OP_LEASE, + GFS3_OP_GETACTIVELK, GFS3_OP_MAXVALUE, -} ; +}; enum gf_handshake_procnum { GF_HNDSK_NULL, diff --git a/rpc/xdr/src/glusterfs3-xdr.x b/rpc/xdr/src/glusterfs3-xdr.x index 33f1a9357cf..f0c5f12301f 100644 --- a/rpc/xdr/src/glusterfs3-xdr.x +++ b/rpc/xdr/src/glusterfs3-xdr.x @@ -962,3 +962,21 @@ struct gfs3_compound_rsp { compound_rsp compound_rsp_array<>; opaque xdata<>; }; + +struct gfs3_locklist { + struct gf_proto_flock flock; + string client_uid<>; + struct gfs3_locklist *nextentry; +}; + +struct gfs3_getactivelk_rsp { + int op_ret; + int op_errno; + struct gfs3_locklist *reply; + opaque xdata<>; +}; + +struct gfs3_getactivelk_req { + opaque gfid[16]; + opaque xdata<>; +}; |