Joe Thornber
21603c5a5d
ostream operator << for range template.
2013-05-01 16:30:59 +01:00
Joe Thornber
e1c5d485eb
Tidy up a typedef
2013-05-01 16:29:44 +01:00
Joe Thornber
5d0b23beea
Some btree visitor tidying.
...
Introduce node_location to replace the long list of parameters. Also
add a depth field to keep track of the depth from root.
2013-05-01 16:16:23 +01:00
Joe Thornber
1884233a2b
DeviceCheckerTests.passes_with_valid_metadata_containing_some_devices
2013-04-29 16:35:03 +01:00
Joe Thornber
c782da7a34
Use a mock of the metadata_damage_visitor to confirm the type off damage reported from the device_checker.
2013-04-29 16:13:18 +01:00
Joe Thornber
fa96ec6301
Add operator == for the range template
2013-04-29 16:12:34 +01:00
Joe Thornber
5e26d51372
add equality operators for the metadata_damage classes.
2013-04-29 16:12:05 +01:00
Joe Thornber
969a5f62c6
Working on device_checker
2013-04-29 15:37:53 +01:00
Joe Thornber
524f9474cf
Add a range class
2013-04-29 15:10:01 +01:00
Joe Thornber
6422b22610
Move block_manager member down into checker base class.
2013-04-29 13:31:33 +01:00
Joe Thornber
1a8b1b29e8
Start device_checker
2013-04-29 13:24:19 +01:00
Joe Thornber
c0b14ce280
fluff
2013-04-29 12:49:32 +01:00
Joe Thornber
034abaff1e
Stop metadata:commit printing the superblock out to stderr.
2013-04-29 12:48:58 +01:00
Joe Thornber
2b8b74065b
add fixme
2013-04-29 12:40:56 +01:00
Joe Thornber
925dbdbc53
[block_t] verify any exception thrown by validator->check() gets passed up, and the lock is not consequently taken.
2013-04-29 12:32:04 +01:00
Joe Thornber
a7c0b0c39b
[block, lock_checker] add an is_locked() method for use in unit tests.
2013-04-29 12:31:30 +01:00
Joe Thornber
a0f53f47aa
[block_t] a superblock_zero test was mistakenly calling plain write_lock.
2013-04-29 12:05:55 +01:00
Joe Thornber
1fe0df9f1a
[block_t] make sure validator->check isn't called unexpectedly.
2013-04-29 12:03:47 +01:00
Joe Thornber
441cba7185
Small work on metadata_checker tests.
2013-04-26 15:55:45 +01:00
Joe Thornber
b1e0ca2207
[block] make sure we can change validators
2013-04-26 15:54:15 +01:00
Joe Thornber
5367631c8c
[various data structures] Reuse validators rather than always creating a new one.
2013-04-26 14:15:20 +01:00
Joe Thornber
53ac7b8119
[block_manager] Allow people to change the validator for a block
2013-04-26 14:14:28 +01:00
Joe Thornber
0b4c359a63
[block manager] The dirty flag for blocks was never being cleared, causes redundant writes.
2013-04-26 13:18:24 +01:00
Joe Thornber
a55f6fcf78
A stack of thin_check refactorings
2013-04-25 16:27:07 +01:00
Joe Thornber
20ff78c818
[thin_check] Start refactoring metadata_checker.
2013-04-23 15:21:44 +01:00
Joe Thornber
70fd048426
Add a TODO file
2013-04-23 11:18:21 +01:00
Joe Thornber
9943bd6549
cucumber tests were generating invalid xml metadata.
2013-04-23 11:17:50 +01:00
Joe Thornber
d8a208cbc8
A stack of space map tweaks.
...
new_block() is now a concrete method implemented using the virtual
find_free() and inc() methods.
recursive space map is better at giving correct reference counts.
2013-04-23 10:57:47 +01:00
Joe Thornber
e0230c5c55
Fix broken dependencies for .gmo files
2013-04-22 13:50:40 +01:00
Joe Thornber
4cb19a06ba
Pull subtracting_span_iterator out into separate file + test.
2013-04-22 13:41:34 +01:00
Joe Thornber
bf75b5c827
Add a space map unit test that creates a metadata sm and a disk sm
2013-04-11 14:01:54 +01:00
Joe Thornber
dde775ef52
thin_metadata_t now reproduces the recursive new_block() error.
2013-04-11 13:41:43 +01:00
Joe Thornber
3629e1e2b5
cucumber test for thin_check --super-block-only
2013-04-11 13:40:47 +01:00
Joe Thornber
7d3ab79789
some build updates
2013-03-25 12:56:03 +00:00
Joe Thornber
bc25afd686
update ignore file
2013-03-25 11:54:52 +00:00
Joe Thornber
6df7f345cd
remove Rakefile
2013-03-25 11:54:31 +00:00
Joe Thornber
89f658862a
[build] add features target
2013-03-25 11:53:55 +00:00
Joe Thornber
be7801f111
some __le -> le issues
2013-03-22 15:48:43 +00:00
Joe Thornber
a7081a4789
Some build updates
2013-03-22 15:41:13 +00:00
Joe Thornber
e794079cf7
unit-test makefile
2013-03-22 15:26:18 +00:00
Joe Thornber
f2a388dbab
transaction_t -> gmock
2013-03-22 15:19:40 +00:00
Joe Thornber
2ec15f74b8
space_map_t -> gmock
2013-03-22 15:08:52 +00:00
Joe Thornber
a018647d0a
btree_t -> gmock
2013-03-22 14:57:46 +00:00
Joe Thornber
9c4bfe4cf9
endian_t -> gmock
2013-03-22 14:53:53 +00:00
Joe Thornber
28128624eb
cache_t -> gmock
2013-03-22 14:46:43 +00:00
Joe Thornber
9ed0ecabfe
block_t to gmock
2013-03-22 14:43:15 +00:00
Joe Thornber
0a70c17268
Convert bitset_t to gmock
2013-03-22 14:36:31 +00:00
Joe Thornber
1e141f83bb
Convert array_block_t to gmock
2013-03-22 14:13:58 +00:00
Joe Thornber
f9bf18adf6
Move array_t to gmock
2013-03-22 13:42:20 +00:00
Joe Thornber
50bab1c90a
Quieten down the build
2013-03-22 12:19:31 +00:00