From 7731a9490cc5b12a439f1842cdf1ce86c3e4fd30 Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Fri, 14 Feb 2014 16:13:01 -0800 Subject: [PATCH] ObjectStore: add bufferlist/string getattr Signed-off-by: Samuel Just --- src/os/ObjectStore.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/os/ObjectStore.h b/src/os/ObjectStore.h index f9c937b074553..1b75ecb265012 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; -- 2.39.5