summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/iobuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs/src/iobuf.c')
-rw-r--r--libglusterfs/src/iobuf.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libglusterfs/src/iobuf.c b/libglusterfs/src/iobuf.c
index c2c1b9ac3e6..e075bf52445 100644
--- a/libglusterfs/src/iobuf.c
+++ b/libglusterfs/src/iobuf.c
@@ -740,3 +740,12 @@ iobuf_stats_dump (struct iobuf_pool *iobuf_pool)
return;
}
+
+
+void
+iobuf_to_iovec(struct iobuf *iob, struct iovec *iov)
+{
+ iov->iov_base = iobuf_ptr (iob);
+ iov->iov_len = iobuf_pagesize (iob);
+}
+