Code Review
/
stor4nfv.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Merge "Add script files of test and spdk-ansible for SPDK"
[stor4nfv.git]
/
src
/
ceph
/
src
/
test
/
bench
/
backend.h
1
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2
3
#ifndef BACKENDH
4
#define BACKENDH
5
6
#include "include/Context.h"
7
8
class Backend {
9
public:
10
virtual void write(
11
const string &oid,
12
uint64_t offset,
13
const bufferlist &bl,
14
Context *on_applied,
15
Context *on_commit) = 0;
16
17
virtual void read(
18
const string &oid,
19
uint64_t offset,
20
uint64_t length,
21
bufferlist *bl,
22
Context *on_complete) = 0;
23
virtual ~Backend() {}
24
};
25
26
#endif