From: Samuel Just Date: Sat, 15 Feb 2014 00:13:01 +0000 (-0800) Subject: ObjectStore: add bufferlist/string getattr X-Git-Tag: v0.78~163^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7731a9490cc5b12a439f1842cdf1ce86c3e4fd30;p=ceph.git ObjectStore: add bufferlist/string getattr Signed-off-by: Samuel Just --- diff --git a/src/os/ObjectStore.h b/src/os/ObjectStore.h index f9c937b07455..1b75ecb26501 100644 --- a/src/os/ObjectStore.h +++ b/src/os/ObjectStore.h @@ -946,6 +946,14 @@ public: value.push_back(bp); return r; } + int getattr( + coll_t cid, const ghobject_t& oid, + const string name, bufferlist& value) { + bufferptr bp; + int r = getattr(cid, oid, name.c_str(), bp); + value.push_back(bp); + return r; + } virtual int getattrs(coll_t cid, const ghobject_t& oid, map& aset, bool user_only = false) = 0; int getattrs(coll_t cid, const ghobject_t& oid, map& aset, bool user_only = false) { map bmap;