Move range.h to persistent-data

This commit is contained in:
Joe Thornber 2013-05-08 16:38:04 +01:00
parent 23ef3b387d
commit a7adefbae8
2 changed files with 5 additions and 6 deletions

View File

@ -1,12 +1,12 @@
#ifndef THIN_RANGE_H #ifndef PERSISTENT_DATA_RANGE_H
#define THIN_RANGE_H #define PERSISTENT_DATA_RANGE_H
#include <boost/optional.hpp> #include <boost/optional.hpp>
#include <ostream> #include <ostream>
//---------------------------------------------------------------- //----------------------------------------------------------------
namespace thin_provisioning { namespace base {
template <typename T> template <typename T>
class range { class range {
public: public:

View File

@ -21,10 +21,9 @@
#include "persistent-data/block.h" #include "persistent-data/block.h"
#include "persistent-data/error_set.h" #include "persistent-data/error_set.h"
#include "persistent-data/range.h"
#include "persistent-data/space_map.h" #include "persistent-data/space_map.h"
#include "thin-provisioning/range.h"
#include <deque> #include <deque>
//---------------------------------------------------------------- //----------------------------------------------------------------
@ -56,7 +55,7 @@ namespace thin_provisioning {
bool operator ==(super_block_corruption const &rhs) const; bool operator ==(super_block_corruption const &rhs) const;
}; };
typedef range<uint64_t> range64; typedef base::range<uint64_t> range64;
struct missing_device_details : public metadata_damage { struct missing_device_details : public metadata_damage {
missing_device_details(range64 missing); missing_device_details(range64 missing);