recursive space map

This commit is contained in:
Joe Thornber
2011-11-09 10:21:25 +00:00
parent 45042ed0e1
commit 4f325b96ad
10 changed files with 333 additions and 40 deletions

View File

@@ -2,6 +2,7 @@
#define SPACE_MAP_H
#include "block.h"
#include "block_counter.h"
#include <boost/shared_ptr.hpp>
@@ -49,6 +50,15 @@ namespace persistent_data {
virtual void copy_root(void *dest, size_t len) = 0;
};
class checked_space_map : public persistent_space_map {
public:
typedef boost::shared_ptr<checked_space_map> ptr;
virtual void check(block_counter &counter) const {
throw std::runtime_error("not implemented");
}
};
class sm_adjust {
public:
sm_adjust(space_map::ptr sm, block_address b, int delta)