66 lines
1.3 KiB
C
66 lines
1.3 KiB
C
/*
|
|
* Copyright(c) 2012-2018 Intel Corporation
|
|
* SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
*/
|
|
|
|
#include "metadata.h"
|
|
#include "metadata_hash.h"
|
|
#include "metadata_raw.h"
|
|
#include "metadata_io.h"
|
|
#include "metadata_raw_volatile.h"
|
|
|
|
/*
|
|
* RAW volatile Implementation - Size on SSD
|
|
*/
|
|
uint32_t raw_volatile_size_on_ssd(ocf_cache_t cache,
|
|
struct ocf_metadata_raw *raw)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
* RAW volatile Implementation - Checksum
|
|
*/
|
|
uint32_t raw_volatile_checksum(ocf_cache_t cache,
|
|
struct ocf_metadata_raw *raw)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
* RAW volatile Implementation - Load all metadata elements from SSD
|
|
*/
|
|
void raw_volatile_load_all(ocf_cache_t cache, struct ocf_metadata_raw *raw,
|
|
ocf_metadata_end_t cmpl, void *priv)
|
|
{
|
|
cmpl(priv, -ENOTSUP);
|
|
}
|
|
|
|
/*
|
|
* RAM Implementation - Flush all elements
|
|
*/
|
|
void raw_volatile_flush_all(ocf_cache_t cache, struct ocf_metadata_raw *raw,
|
|
ocf_metadata_end_t cmpl, void *priv)
|
|
{
|
|
cmpl(priv, -ENOTSUP);
|
|
}
|
|
|
|
/*
|
|
* RAM RAM Implementation - Mark to Flush
|
|
*/
|
|
void raw_volatile_flush_mark(ocf_cache_t cache, struct ocf_request *req,
|
|
uint32_t map_idx, int to_state, uint8_t start, uint8_t stop)
|
|
{
|
|
}
|
|
|
|
/*
|
|
* RAM RAM Implementation - Do Flush asynchronously
|
|
*/
|
|
int raw_volatile_flush_do_asynch(ocf_cache_t cache,
|
|
struct ocf_request *req, struct ocf_metadata_raw *raw,
|
|
ocf_req_end_t complete)
|
|
{
|
|
complete(req, 0);
|
|
return 0;
|
|
}
|