]> 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)
commita1d0c6aed5c982941d692028e8b841c949188493
tree905ff1a9df30c0200732af71b806c39145dcd641
parent6425a7c0857041323bfe202e17eec601e47a35f7
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