summaryrefslogtreecommitdiffstats
path: root/xlators/features
diff options
context:
space:
mode:
authorAnand V. Avati <avati@amp.gluster.com>2009-04-11 21:46:54 +0530
committerAnand V. Avati <avati@amp.gluster.com>2009-04-12 11:33:48 +0530
commit5d80832d2dc0127b8f380afd7d49ff7b27ac79ec (patch)
tree2f25a73e0f4ff52141b7e7361505c5f02146d567 /xlators/features
parentd7b12cdc8d2bcbf89530e00710da308bd757e35d (diff)
updated features/locks with new readv writev prototypes
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'xlators/features')
-rw-r--r--xlators/features/locks/src/posix.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/xlators/features/locks/src/posix.c b/xlators/features/locks/src/posix.c
index 095b5b288..ff557ed66 100644
--- a/xlators/features/locks/src/posix.c
+++ b/xlators/features/locks/src/posix.c
@@ -350,9 +350,10 @@ pl_create (call_frame_t *frame, xlator_t *this,
int
pl_readv_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
int32_t op_ret, int32_t op_errno,
- struct iovec *vector, int32_t count, struct stat *stbuf)
+ struct iovec *vector, int32_t count, struct stat *stbuf,
+ struct iobref *iobref)
{
- STACK_UNWIND (frame, op_ret, op_errno, vector, count, stbuf);
+ STACK_UNWIND (frame, op_ret, op_errno, vector, count, stbuf, iobref);
return 0;
}
@@ -505,7 +506,7 @@ pl_readv (call_frame_t *frame, xlator_t *this,
unwind:
if (op_ret == -1)
- STACK_UNWIND (frame, -1, op_errno, NULL, 0, NULL);
+ STACK_UNWIND (frame, -1, op_errno, NULL, 0, NULL, NULL);
return 0;
}
@@ -513,11 +514,12 @@ unwind:
int
pl_writev_cont (call_frame_t *frame, xlator_t *this, fd_t *fd,
- struct iovec *vector, int count, off_t offset)
+ struct iovec *vector, int count, off_t offset,
+ struct iobref *iobref)
{
STACK_WIND (frame, pl_writev_cbk,
FIRST_CHILD (this), FIRST_CHILD (this)->fops->writev,
- fd, vector, count, offset);
+ fd, vector, count, offset, iobref);
return 0;
}
@@ -525,7 +527,8 @@ pl_writev_cont (call_frame_t *frame, xlator_t *this, fd_t *fd,
int
pl_writev (call_frame_t *frame, xlator_t *this, fd_t *fd,
- struct iovec *vector, int32_t count, off_t offset)
+ struct iovec *vector, int32_t count, off_t offset,
+ struct iobref *iobref)
{
posix_locks_private_t *priv = NULL;
pl_inode_t *pl_inode = NULL;
@@ -570,7 +573,8 @@ pl_writev (call_frame_t *frame, xlator_t *this, fd_t *fd,
}
rw->stub = fop_writev_stub (frame, pl_writev_cont,
- fd, vector, count, offset);
+ fd, vector, count, offset,
+ iobref);
if (!rw->stub) {
gf_log (this->name, GF_LOG_ERROR,
"out of memory :(");
@@ -593,7 +597,7 @@ pl_writev (call_frame_t *frame, xlator_t *this, fd_t *fd,
STACK_WIND (frame, pl_writev_cbk,
FIRST_CHILD (this), FIRST_CHILD (this)->fops->writev,
- fd, vector, count, offset);
+ fd, vector, count, offset, iobref);
return 0;
unwind: