summaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorSusant Palai <spalai@redhat.com>2016-04-17 10:23:02 +0530
committerNiels de Vos <ndevos@redhat.com>2016-05-01 18:04:52 -0700
commit888c29bac041ea45973a4a50acb903143a5ce28c (patch)
treed630f2ae8192b12243bc5246bf026efe41406f30 /rpc
parent358b5007dfa400d8b09871de81d079d47c51f6a0 (diff)
protocol: add setactivelk () fop
Change-Id: I60fe2d59c454095febce4c0fbef87a2dad9636e4 BUG: 1326085 Signed-off-by: Susant Palai <spalai@redhat.com> Reviewed-on: http://review.gluster.org/14013 Smoke: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Niels de Vos <ndevos@redhat.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.h1
-rw-r--r--rpc/xdr/src/glusterfs3-xdr.x12
2 files changed, 13 insertions, 0 deletions
diff --git a/rpc/rpc-lib/src/protocol-common.h b/rpc/rpc-lib/src/protocol-common.h
index ae6189d..915d358 100644
--- a/rpc/rpc-lib/src/protocol-common.h
+++ b/rpc/rpc-lib/src/protocol-common.h
@@ -64,6 +64,7 @@ enum gf_fop_procnum {
GFS3_OP_COMPOUND,
GFS3_OP_LEASE,
GFS3_OP_GETACTIVELK,
+ GFS3_OP_SETACTIVELK,
GFS3_OP_MAXVALUE,
};
diff --git a/rpc/xdr/src/glusterfs3-xdr.x b/rpc/xdr/src/glusterfs3-xdr.x
index f0c5f12..dcd10cb 100644
--- a/rpc/xdr/src/glusterfs3-xdr.x
+++ b/rpc/xdr/src/glusterfs3-xdr.x
@@ -980,3 +980,15 @@ struct gfs3_getactivelk_req {
opaque gfid[16];
opaque xdata<>;
};
+
+struct gfs3_setactivelk_rsp {
+ int op_ret;
+ int op_errno;
+ opaque xdata<>;
+};
+
+struct gfs3_setactivelk_req {
+ opaque gfid[16];
+ struct gfs3_locklist *request;
+ opaque xdata<>;
+};