thin-provisioning-tools/block-cache/copier.h

31 lines
596 B
C
Raw Normal View History

2016-03-17 20:45:52 +05:30
#ifndef BLOCK_CACHE_COPIER_H
#define BLOCK_CACHE_COPIER_H
#include "block_cache.h"
#include <string>
//----------------------------------------------------------------
namespace bcache {
class copier {
public:
// block size in sectors
copier(std::string const &src, std::string const &dest,
unsigned block_size);
~copier();
// Returns the number of sectors copied
unsigned copy(block_address from, block_address to);
unsigned get_block_size() const;
private:
unsigned block_size_;
};
}
//----------------------------------------------------------------
#endif