diff options
author | Poornima G <pgurusid@redhat.com> | 2016-09-02 12:47:15 +0530 |
---|---|---|
committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2016-09-25 12:30:18 -0700 |
commit | 359b72a57b7c92fc2a11236ac05f5d740db2f540 (patch) | |
tree | b2473cb285daec571cec57673ac0ac8ad522d904 /xlators/cluster/ec/src/ec.c | |
parent | f6a3c541941df6fd19ef57185aca5c4bcec2dec3 (diff) |
ec: Implement ipc fop
The ipc will be wound to all the bricks, but for it to be
successfull, the fop should succeed on minimum number of bricks.
Change-Id: I3f8cb6a349e87bafd0773583def9d4e3765aa140
BUG: 1211863
Signed-off-by: Poornima G <pgurusid@redhat.com>
Reviewed-on: http://review.gluster.org/15387
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Smoke: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Ashish Pandey <aspandey@redhat.com>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'xlators/cluster/ec/src/ec.c')
-rw-r--r-- | xlators/cluster/ec/src/ec.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/xlators/cluster/ec/src/ec.c b/xlators/cluster/ec/src/ec.c index 2aff4374b82..dff5a784b2b 100644 --- a/xlators/cluster/ec/src/ec.c +++ b/xlators/cluster/ec/src/ec.c @@ -1212,6 +1212,13 @@ int32_t ec_gf_seek(call_frame_t *frame, xlator_t *this, fd_t *fd, off_t offset, return 0; } +int32_t ec_gf_ipc(call_frame_t *frame, xlator_t *this, int32_t op, + dict_t *xdata) +{ + ec_ipc(frame, this, -1, EC_MINIMUM_MIN, default_ipc_cbk, NULL, op, xdata); + return 0; +} + int32_t ec_gf_forget(xlator_t * this, inode_t * inode) { uint64_t value = 0; @@ -1327,7 +1334,8 @@ struct xlator_fops fops = .fallocate = ec_gf_fallocate, .discard = ec_gf_discard, .zerofill = ec_gf_zerofill, - .seek = ec_gf_seek + .seek = ec_gf_seek, + .ipc = ec_gf_ipc }; struct xlator_cbks cbks = |