summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/ha
diff options
context:
space:
mode:
authorAnand V. Avati <avati@amp.gluster.com>2009-04-11 01:59:56 +0530
committerAnand V. Avati <avati@amp.gluster.com>2009-04-12 11:33:47 +0530
commit645c60e308de5290b9059eae557a320bd6a294d9 (patch)
tree19c221ce4df4aa690f1d640ee5d18edb39caf5c7 /xlators/cluster/ha
parent89cacef43e843c7563ed5d4ebb6ec16a3b81df3e (diff)
update cluster/ha with new readv writev prototypes
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'xlators/cluster/ha')
-rw-r--r--xlators/cluster/ha/src/ha.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/xlators/cluster/ha/src/ha.c b/xlators/cluster/ha/src/ha.c
index 7e25f6c11c9..e7391eeade1 100644
--- a/xlators/cluster/ha/src/ha.c
+++ b/xlators/cluster/ha/src/ha.c
@@ -1849,7 +1849,8 @@ ha_readv_cbk (call_frame_t *frame,
int32_t op_errno,
struct iovec *vector,
int32_t count,
- struct stat *stbuf)
+ struct stat *stbuf,
+ struct iobref *iobref)
{
int ret = 0;
@@ -1861,7 +1862,8 @@ ha_readv_cbk (call_frame_t *frame,
op_errno,
vector,
count,
- stbuf);
+ stbuf,
+ iobref);
}
return 0;
}
@@ -1894,7 +1896,7 @@ ha_readv (call_frame_t *frame,
offset);
return 0;
err:
- STACK_UNWIND (frame, -1, op_errno, NULL);
+ STACK_UNWIND (frame, -1, op_errno, NULL, 0, NULL, NULL);
return 0;
}
@@ -1924,7 +1926,8 @@ ha_writev (call_frame_t *frame,
fd_t *fd,
struct iovec *vector,
int32_t count,
- off_t off)
+ off_t off,
+ struct iobref *iobref)
{
ha_local_t *local = NULL;
int op_errno = 0;
@@ -1935,7 +1938,7 @@ ha_writev (call_frame_t *frame,
goto err;
}
local = frame->local;
- local->stub = fop_writev_stub (frame, ha_writev, fd, vector, count, off);
+ local->stub = fop_writev_stub (frame, ha_writev, fd, vector, count, off, iobref);
STACK_WIND_COOKIE (frame,
ha_writev_cbk,
@@ -1945,7 +1948,8 @@ ha_writev (call_frame_t *frame,
fd,
vector,
count,
- off);
+ off,
+ iobref);
return 0;
err:
STACK_UNWIND (frame, -1, op_errno, NULL);