Signed-off-by: Sage Weil <sage@redhat.com>
*/
virtual bool collection_empty(coll_t c) = 0;
+ /**
+ * return the number of significant bits of the coll_t::pgid.
+ *
+ * This should return what the last create_collection or split_collection
+ * set. A lazy backend can choose not to store and report this (e.g.,
+ * FileStore).
+ */
+ virtual int collection_bits(coll_t c) {
+ return -EOPNOTSUPP;
+ }
+
/**
* list contents of a collection that fall in the range [start, end) and no more than a specified many result
*
bool sort_bitwise, int max,
vector<ghobject_t> *ls, ghobject_t *next) = 0;
+
/// OMAP
/// Get omap contents
virtual int omap_get(