io-threads: Implement put fop
Updates #353 Change-Id: I8a30b53a52618c6a6c740d2c67b19e5322ce4ddb Signed-off-by: Poornima G <pgurusid@redhat.com>
This commit is contained in:
parent
535fd517c6
commit
bfb66cc535
@ -345,6 +345,10 @@ default_zerofill
|
||||
default_zerofill_cbk
|
||||
default_zerofill_failure_cbk
|
||||
default_zerofill_resume
|
||||
default_put
|
||||
default_put_cbk
|
||||
default_put_failure_cbk
|
||||
default_put_resume
|
||||
__dentry_grep
|
||||
dht_is_linkfile
|
||||
dict_add
|
||||
|
@ -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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user