summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2012-04-16 21:32:33 -0700
committerSage Weil <sage@newdream.net>2012-04-16 21:32:33 -0700
commit2dbea12895dd86da1bad6ff97248fb55781e1bd5 (patch)
treeb952c3c4b388275a277ad838cd5f42fec39aa4f2 /src/include
parenta31392cf909b4f4af9efe446c5a6fac1bb16852a (diff)
downloadceph-2dbea12895dd86da1bad6ff97248fb55781e1bd5.tar.gz
librados: C bindings for get_pool_name()
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/rados/librados.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/include/rados/librados.h b/src/include/rados/librados.h
index d28813a9652..fe6e1710951 100644
--- a/src/include/rados/librados.h
+++ b/src/include/rados/librados.h
@@ -83,7 +83,7 @@ typedef void *rados_config_t;
* - snapshot context for writes (see
* rados_ioctx_selfmanaged_snap_set_write_ctx())
* - snapshot id to read from (see rados_ioctx_snap_set_read())
- * - object locator for all single-object operations (see
+ * - object locator for all single-object operation28e61811dc3dccd922bd0b30cf614c2768e7d6d0s (see
* rados_ioctx_locator_set_key())
*
* @warning changing any of these settings is not thread-safe -
@@ -549,6 +549,16 @@ int rados_ioctx_pool_get_auid(rados_ioctx_t io, uint64_t *auid);
*/
int64_t rados_ioctx_get_id(rados_ioctx_t io);
+/**
+ * Get the pool name of the io context
+ *
+ * @param io the io context to query
+ * @param buf pointer to buffer where name will be stored
+ * @param maxlen size of buffer where name will be stored
+ * @returns length of string stored, or -ERANGE if buffer to small
+ */
+int rados_ioctx_get_pool_name(rados_ioctx_t io, char *buf, unsigned maxlen);
+
/** @} pools */
/**