summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/iobuf.c
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2010-02-25 15:37:45 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-03-04 03:12:10 -0800
commitbdf3fc698515b44e6f1a11f6dbc8d9ff4b5fd74e (patch)
tree4b046729ca9e7dfd4578e82097c6d9cd93e192d6 /libglusterfs/src/iobuf.c
parentdb199434dfccfb4db5335f6ba18298e9e61bc415 (diff)
iobuf: Expose macros and create new ones
Signed-off-by: Shehjar Tikoo <shehjart@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 597 (miscellaneous fixes for xlators to work well with NFS xlator) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=597
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 c2c1b9ac..e075bf52 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);
+}
+