/**
* Create a pool with default settings
*
- * The default owner is the admin user (auid 0).
* The default crush rule is rule 0.
*
* @param cluster the cluster in which the pool will be created
CEPH_RADOS_API int rados_pool_create(rados_t cluster, const char *pool_name);
/**
- * Create a pool owned by a specific auid
+ * Create a pool owned by a specific auid.
*
- * The auid is the authenticated user id to give ownership of the pool.
- * TODO: document auid and the rest of the auth system
+ * DEPRECATED: auid support has been removed, and this call will be removed in a future
+ * release.
*
* @param cluster the cluster in which the pool will be created
* @param pool_name the name of the new pool
*/
CEPH_RADOS_API int rados_pool_create_with_auid(rados_t cluster,
const char *pool_name,
- uint64_t auid);
+ uint64_t auid)
+ __attribute__((deprecated));
/**
* Create a pool with a specific CRUSH rule
/**
* Create a pool with a specific CRUSH rule and auid
*
+ * DEPRECATED: auid support has been removed and this call will be removed
+ * in a future release.
+ *
* This is a combination of rados_pool_create_with_crush_rule() and
* rados_pool_create_with_auid().
*
CEPH_RADOS_API int rados_pool_create_with_all(rados_t cluster,
const char *pool_name,
uint64_t auid,
- uint8_t crush_rule_num);
+ uint8_t crush_rule_num)
+ __attribute__((deprecated));
/**
* Returns the pool that is the base tier for this pool.
/**
* Attempt to change an io context's associated auid "owner"
*
+ * DEPRECATED: auid support has been removed and this call has no effect.
+ *
* Requires that you have write permission on both the current and new
* auid.
*
* @param auid the auid you wish the io to have.
* @returns 0 on success, negative error code on failure
*/
-CEPH_RADOS_API int rados_ioctx_pool_set_auid(rados_ioctx_t io, uint64_t auid);
+CEPH_RADOS_API int rados_ioctx_pool_set_auid(rados_ioctx_t io, uint64_t auid)
+ __attribute__((deprecated));
+
/**
* Get the auid of a pool
*
+ * DEPRECATED: auid support has been removed and this call always reports
+ * CEPH_AUTH_UID_DEFAULT (-1).
+
* @param io pool to query
* @param auid where to store the auid
* @returns 0 on success, negative error code on failure
*/
-CEPH_RADOS_API int rados_ioctx_pool_get_auid(rados_ioctx_t io, uint64_t *auid);
+CEPH_RADOS_API int rados_ioctx_pool_get_auid(rados_ioctx_t io, uint64_t *auid)
+ __attribute__((deprecated));
/* deprecated, use rados_ioctx_pool_requires_alignment2 instead */
CEPH_RADOS_API int rados_ioctx_pool_requires_alignment(rados_ioctx_t io)
void dup(const IoCtx& rhs);
// set pool auid
- int set_auid(uint64_t auid_);
+ int set_auid(uint64_t auid_)
+ __attribute__ ((deprecated));
// set pool auid
- int set_auid_async(uint64_t auid_, PoolAsyncCompletion *c);
+ int set_auid_async(uint64_t auid_, PoolAsyncCompletion *c)
+ __attribute__ ((deprecated));
// get pool auid
- int get_auid(uint64_t *auid_);
+ int get_auid(uint64_t *auid_)
+ __attribute__ ((deprecated));
uint64_t get_instance_id() const;
std::map<std::string,std::string>&& status);
int pool_create(const char *name);
- int pool_create(const char *name, uint64_t auid);
- int pool_create(const char *name, uint64_t auid, uint8_t crush_rule);
+ int pool_create(const char *name, uint64_t auid)
+ __attribute__ ((deprecated));
+ int pool_create(const char *name, uint64_t auid, uint8_t crush_rule)
+ __attribute__ ((deprecated));
int pool_create_async(const char *name, PoolAsyncCompletion *c);
- int pool_create_async(const char *name, uint64_t auid, PoolAsyncCompletion *c);
- int pool_create_async(const char *name, uint64_t auid, uint8_t crush_rule, PoolAsyncCompletion *c);
+ int pool_create_async(const char *name, uint64_t auid, PoolAsyncCompletion *c)
+ __attribute__ ((deprecated));
+ int pool_create_async(const char *name, uint64_t auid, uint8_t crush_rule, PoolAsyncCompletion *c)
+ __attribute__ ((deprecated));
int pool_get_base_tier(int64_t pool, int64_t* base_tier);
int pool_delete(const char *name);
int pool_delete_async(const char *name, PoolAsyncCompletion *c);