summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/ec/src/ec-fops.h
diff options
context:
space:
mode:
authorSunil Kumar Acharya <sheggodu@redhat.com>2017-06-14 16:28:40 +0530
committerPranith Kumar K <pkarampu@redhat.com>2017-10-25 17:22:41 +0530
commit63160cb952fe7716a3313ce5ee32f890fe4d7a0c (patch)
tree3a82114a57071e68ed645e014931a34edebb13fe /xlators/cluster/ec/src/ec-fops.h
parent2ade36cd98ea0f5bd2a8f619a19c20438318afaf (diff)
cluster/ec: Implement DISCARD FOP for EC
Updates #254 This code change implements DISCARD FOP support for EC. BUG: 1461018 Change-Id: I09a9cb2aa9d91ec27add4f422dc9074af5b8b2db Signed-off-by: Sunil Kumar Acharya <sheggodu@redhat.com>
Diffstat (limited to 'xlators/cluster/ec/src/ec-fops.h')
-rw-r--r--xlators/cluster/ec/src/ec-fops.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/cluster/ec/src/ec-fops.h b/xlators/cluster/ec/src/ec-fops.h
index fab22d8240d..4a926cf4802 100644
--- a/xlators/cluster/ec/src/ec-fops.h
+++ b/xlators/cluster/ec/src/ec-fops.h
@@ -172,6 +172,10 @@ void ec_fallocate(call_frame_t *frame, xlator_t *this, uintptr_t target,
int32_t minimum, fop_fallocate_cbk_t func, void *data, fd_t *fd,
int32_t mode, off_t offset, size_t len, dict_t *xdata);
+void ec_discard(call_frame_t *frame, xlator_t *this, uintptr_t target,
+ int32_t minimum, fop_discard_cbk_t func, void *data, fd_t *fd,
+ off_t offset, size_t len, dict_t *xdata);
+
void ec_truncate(call_frame_t * frame, xlator_t * this, uintptr_t target,
int32_t minimum, fop_truncate_cbk_t func, void *data,
loc_t * loc, off_t offset, dict_t * xdata);