Commit a52946cd authored by Philip Carns's avatar Philip Carns
Browse files

remove old stub target set_conf fns

parent da26ffb5
......@@ -92,10 +92,6 @@ typedef int (*bake_create_fileset_fn)(backend_context_t context,
remi_fileset_t* fileset);
#endif
typedef int (*bake_set_conf_fn)(backend_context_t context,
const char* key,
const char* value);
typedef struct bake_backend {
const char* name;
bake_backend_initialize_fn _initialize;
......@@ -115,7 +111,6 @@ typedef struct bake_backend {
#ifdef USE_REMI
bake_create_fileset_fn _create_fileset;
#endif
bake_set_conf_fn _set_conf;
} bake_backend;
typedef bake_backend* bake_backend_t;
......
......@@ -567,13 +567,6 @@ static int bake_file_migrate_region(backend_context_t context,
return BAKE_ERR_OP_UNSUPPORTED;
}
static int bake_file_set_conf(backend_context_t context,
const char* key,
const char* value)
{
return 0;
}
#ifdef USE_REMI
static int bake_file_create_fileset(backend_context_t context,
remi_fileset_t* fileset)
......@@ -603,26 +596,26 @@ error:
}
#endif
bake_backend g_bake_file_backend
= {.name = "file",
._initialize = bake_file_backend_initialize,
._finalize = bake_file_backend_finalize,
._create = bake_file_create,
._write_raw = bake_file_write_raw,
._write_bulk = bake_file_write_bulk,
._read_raw = bake_file_read_raw,
._read_bulk = bake_file_read_bulk,
._persist = bake_file_persist,
._create_write_persist_raw = NULL, /* use default implementation */
._create_write_persist_bulk = NULL, /* use default implementation */
._get_region_size = bake_file_get_region_size,
._get_region_data = bake_file_get_region_data,
._remove = bake_file_remove,
._migrate_region = bake_file_migrate_region,
bake_backend g_bake_file_backend = {
.name = "file",
._initialize = bake_file_backend_initialize,
._finalize = bake_file_backend_finalize,
._create = bake_file_create,
._write_raw = bake_file_write_raw,
._write_bulk = bake_file_write_bulk,
._read_raw = bake_file_read_raw,
._read_bulk = bake_file_read_bulk,
._persist = bake_file_persist,
._create_write_persist_raw = NULL, /* use default implementation */
._create_write_persist_bulk = NULL, /* use default implementation */
._get_region_size = bake_file_get_region_size,
._get_region_data = bake_file_get_region_data,
._remove = bake_file_remove,
._migrate_region = bake_file_migrate_region,
#ifdef USE_REMI
._create_fileset = bake_file_create_fileset,
._create_fileset = bake_file_create_fileset,
#endif
._set_conf = bake_file_set_conf};
};
/* common utility function for relaying data in read_bulk/write_bulk */
static int transfer_data(bake_file_entry_t* entry,
......
......@@ -673,33 +673,26 @@ error:
}
#endif
static int bake_pmem_set_conf(backend_context_t context,
const char* key,
const char* value)
{
return 0;
}
bake_backend g_bake_pmem_backend
= {.name = "pmem",
._initialize = bake_pmem_backend_initialize,
._finalize = bake_pmem_backend_finalize,
._create = bake_pmem_create,
._write_raw = bake_pmem_write_raw,
._write_bulk = bake_pmem_write_bulk,
._read_raw = bake_pmem_read_raw,
._read_bulk = bake_pmem_read_bulk,
._persist = bake_pmem_persist,
._create_write_persist_raw = bake_pmem_create_write_persist_raw,
._create_write_persist_bulk = bake_pmem_create_write_persist_bulk,
._get_region_size = bake_pmem_get_region_size,
._get_region_data = bake_pmem_get_region_data,
._remove = bake_pmem_remove,
._migrate_region = bake_pmem_migrate_region,
bake_backend g_bake_pmem_backend = {
.name = "pmem",
._initialize = bake_pmem_backend_initialize,
._finalize = bake_pmem_backend_finalize,
._create = bake_pmem_create,
._write_raw = bake_pmem_write_raw,
._write_bulk = bake_pmem_write_bulk,
._read_raw = bake_pmem_read_raw,
._read_bulk = bake_pmem_read_bulk,
._persist = bake_pmem_persist,
._create_write_persist_raw = bake_pmem_create_write_persist_raw,
._create_write_persist_bulk = bake_pmem_create_write_persist_bulk,
._get_region_size = bake_pmem_get_region_size,
._get_region_data = bake_pmem_get_region_data,
._remove = bake_pmem_remove,
._migrate_region = bake_pmem_migrate_region,
#ifdef USE_REMI
._create_fileset = bake_pmem_create_fileset,
._create_fileset = bake_pmem_create_fileset,
#endif
._set_conf = bake_pmem_set_conf};
};
static void xfer_ult(void* _args)
{
......
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