From bdf3fc698515b44e6f1a11f6dbc8d9ff4b5fd74e Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Thu, 25 Feb 2010 15:37:45 +0000 Subject: iobuf: Expose macros and create new ones Signed-off-by: Shehjar Tikoo Signed-off-by: Anand V. Avati 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 --- libglusterfs/src/iobuf.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libglusterfs/src/iobuf.c') 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); +} + -- cgit