]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: define ceph_extract_encoded_string()
authorAlex Elder <elder@inktank.com>
Wed, 11 Jul 2012 13:24:45 +0000 (08:24 -0500)
committerSage Weil <sage@inktank.com>
Mon, 30 Jul 2012 16:29:57 +0000 (09:29 -0700)
commitff3e0205c542b564b9ee87d6020e983a1c4620ec
tree905ff1a9df30c0200732af71b806c39145dcd641
parent1d1df0276c0df463e8c944e3fb91cf3f730ae4d1
libceph: define ceph_extract_encoded_string()

This adds a new utility routine which will return a dynamically-
allocated buffer containing a string that has been decoded from ceph
over-the-wire format.  It also returns the length of the string
if the address of a size variable is supplied to receive it.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
include/linux/ceph/decode.h