From 1d6dfe94fb970b51d96653da6c3361533d697fc3 Mon Sep 17 00:00:00 2001 From: "Anand V. Avati" Date: Fri, 17 Apr 2009 23:12:37 +0530 Subject: added 2 APIs iobuf_size and iobref_size to return the system memory usage by an iobuf, and by all iobufs in an iobref respectively --- libglusterfs/src/iobuf.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libglusterfs/src/iobuf.h') diff --git a/libglusterfs/src/iobuf.h b/libglusterfs/src/iobuf.h index 2ad640bbc5a..4c34770849e 100644 --- a/libglusterfs/src/iobuf.h +++ b/libglusterfs/src/iobuf.h @@ -109,4 +109,8 @@ void iobref_unref (struct iobref *iobref); int iobref_add (struct iobref *iobref, struct iobuf *iobuf); int iobref_merge (struct iobref *to, struct iobref *from); + +size_t iobuf_size (struct iobuf *iobuf); +size_t iobref_size (struct iobref *iobref); + #endif /* !_IOBUF_H_ */ -- cgit