From bfb66cc535ce473afa7e330800d2d2c38afe42c9 Mon Sep 17 00:00:00 2001 From: Poornima G Date: Sat, 18 Nov 2017 15:51:43 +0530 Subject: io-threads: Implement put fop Updates #353 Change-Id: I8a30b53a52618c6a6c740d2c67b19e5322ce4ddb Signed-off-by: Poornima G --- xlators/performance/io-threads/src/io-threads.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'xlators/performance/io-threads/src') diff --git a/xlators/performance/io-threads/src/io-threads.c b/xlators/performance/io-threads/src/io-threads.c index a5a9543ae39..501e4019e90 100644 --- a/xlators/performance/io-threads/src/io-threads.c +++ b/xlators/performance/io-threads/src/io-threads.c @@ -331,6 +331,7 @@ iot_schedule (call_frame_t *frame, xlator_t *this, call_stub_t *stub) case GF_FOP_FSETXATTR: case GF_FOP_REMOVEXATTR: case GF_FOP_FREMOVEXATTR: + case GF_FOP_PUT: pri = GF_FOP_PRI_NORMAL; break; @@ -471,6 +472,17 @@ iot_create (call_frame_t *frame, xlator_t *this, loc_t *loc, int32_t flags, } +int +iot_put (call_frame_t *frame, xlator_t *this, loc_t *loc, mode_t mode, + mode_t umask, uint32_t flags, struct iovec *vector, int32_t count, + off_t offset, struct iobref *iobref, dict_t *xattr, dict_t *xdata) +{ + IOT_FOP (put, frame, this, loc, mode, umask, flags, vector, count, + offset, iobref, xattr, xdata); + return 0; +} + + int iot_readv (call_frame_t *frame, xlator_t *this, fd_t *fd, size_t size, off_t offset, uint32_t flags, dict_t *xdata) @@ -1222,6 +1234,7 @@ struct xlator_fops fops = { .lease = iot_lease, .getactivelk = iot_getactivelk, .setactivelk = iot_setactivelk, + .put = iot_put, }; struct xlator_cbks cbks = { -- cgit