Commit 59fd13a9 authored by Shane Snyder's avatar Shane Snyder

add pool create/destroy functions (noops for now)

parent f81ae155
......@@ -207,6 +207,33 @@ int mobject_store_connect(mobject_store_t cluster);
*/
void mobject_store_shutdown(mobject_store_t cluster);
/**********************************************
* mobject store pool setup/teardown routines *
**********************************************/
/**
* Creates a new storage pool.
*
* @param[in] cluster handle to mobject cluster
* @param[in] pool_name the name of the pool
* @returns 0 on success, negative error code on failure
*/
int mobject_store_pool_create(
mobject_store_t cluster,
const char * pool_name);
/**
* Deletes a storage pool and all data stored in it.
*
* @param[in] cluster handle to mobject cluster
* @param[in] pool_name the name of the pool
* @returns 0 on success, negative error code on failure
*/
int mobject_store_pool_delete(
mobject_store_t cluster,
const char * pool_name);
/*****************************************************
* mobject store i/o context setup/teardown routines *
*****************************************************/
......
......@@ -36,6 +36,8 @@ typedef mobject_store_callback_t rados_callback_t;
#define rados_create mobject_store_create
#define rados_connect mobject_store_connect
#define rados_shutdown mobject_store_shutdown
#define rados_pool_create mobject_store_pool_create
#define rados_pool_delete mobject_store_pool_delete
#define rados_ioctx_create mobject_store_ioctx_create
#define rados_ioctx_destroy mobject_store_ioctx_destroy
#define rados_create_write_op mobject_store_create_write_op
......
......@@ -178,6 +178,22 @@ void mobject_store_shutdown(mobject_store_t cluster)
return;
}
int mobject_store_pool_create(mobject_store_t cluster, const char * pool_name)
{
/* XXX: this is a NOOP -- we don't implement pools currently */
(void)cluster;
(void)pool_name;
return 0;
}
int mobject_store_pool_delete(mobject_store_t cluster, const char * pool_name)
{
/* XXX: this is a NOOP -- we don't implement pools currently */
(void)cluster;
(void)pool_name;
return 0;
}
int mobject_store_ioctx_create(
mobject_store_t cluster,
const char * pool_name,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment