summaryrefslogtreecommitdiffstats
path: root/src/os/DBObjectMap.h
diff options
context:
space:
mode:
authorSamuel Just <samuel.just@dreamhost.com>2012-03-13 00:52:58 +0100
committerSamuel Just <samuel.just@dreamhost.com>2012-03-16 19:29:00 +0100
commit983fd190109a6e3f1357df043b354d6925a1d93a (patch)
treebf17a0d7dccc1358c81aca4c3a07c61911e903dc /src/os/DBObjectMap.h
parentDBObjectMap: add support for storing xattrs (diff)
downloadceph-983fd190109a6e3f1357df043b354d6925a1d93a.tar.xz
ceph-983fd190109a6e3f1357df043b354d6925a1d93a.zip
ObjectMap: add interface for storing xattrs
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
Diffstat (limited to 'src/os/DBObjectMap.h')
-rw-r--r--src/os/DBObjectMap.h29
1 files changed, 27 insertions, 2 deletions
diff --git a/src/os/DBObjectMap.h b/src/os/DBObjectMap.h
index 236e8cfaf9f..e26d7351fb6 100644
--- a/src/os/DBObjectMap.h
+++ b/src/os/DBObjectMap.h
@@ -136,14 +136,39 @@ public:
set<string> *out
);
- int clone_keys(
+ int get_xattrs(
+ const hobject_t &hoid,
+ CollectionIndex::IndexedPath path,
+ const set<string> &to_get,
+ map<string, bufferlist> *out
+ );
+
+ int get_all_xattrs(
+ const hobject_t &hoid,
+ CollectionIndex::IndexedPath path,
+ set<string> *out
+ );
+
+ int set_xattrs(
+ const hobject_t &hoid,
+ CollectionIndex::IndexedPath path,
+ const map<string, bufferlist> &to_set
+ );
+
+ int remove_xattrs(
+ const hobject_t &hoid,
+ CollectionIndex::IndexedPath path,
+ const set<string> &to_remove
+ );
+
+ int clone(
const hobject_t &hoid,
CollectionIndex::IndexedPath path,
const hobject_t &target,
CollectionIndex::IndexedPath target_path
);
- int link_keys(
+ int link(
const hobject_t &hoid,
CollectionIndex::IndexedPath path,
const hobject_t &target,