Commit Graph

469 Commits

Author SHA1 Message Date
Joe Thornber
a134e853b4 rename core_map -> space_map_core 2011-10-28 14:28:59 +01:00
Joe Thornber
076131aac1 pass an extra open|create enum to metadata ctr 2011-10-28 14:26:06 +01:00
Joe Thornber
8f9d71ccc8 wire up thin_restore to use the restore_emitter 2011-10-28 14:07:17 +01:00
Joe Thornber
2937ed2d2b restore_emitter 2011-10-28 14:01:44 +01:00
Joe Thornber
25d9cfffa5 we need to dump the time field of the mappings also 2011-10-28 13:53:15 +01:00
Joe Thornber
b98fc8abb6 rename metadata_ll -> metadata 2011-10-28 12:25:06 +01:00
Joe Thornber
c2dfb0b462 Rename metadata -> thin_pool/thin 2011-10-28 12:21:58 +01:00
Joe Thornber
9a4ebc8c25 metadata_dumper 2011-10-28 12:13:03 +01:00
Joe Thornber
925d9d583f metadata_checker 2011-10-28 12:07:21 +01:00
Joe Thornber
9c9d6f2e15 Split the metadata class into a low level one that other interfaces
can use (metadata_ll), and the existing high level one.
2011-10-28 11:31:00 +01:00
Joe Thornber
28ab23fe6c thin_restore now parses xml and hands to an emitter 2011-10-25 14:47:49 +01:00
Joe Thornber
13e26684f7 [thin_repair] speed up ref count validation 2011-10-25 11:27:59 +01:00
Joe Thornber
d02fcde793 add a cache to the block manager 2011-10-24 18:04:19 +01:00
Joe Thornber
97f8d913e2 first pass at cache 2011-10-21 17:07:19 +01:00
Joe Thornber
ad8a70ce76 fix another breakage in btree_checker 2011-10-11 12:50:02 +01:00
Joe Thornber
bfb05ccfb7 fix bug in btree_checker not being passed the corerct sub_root flag 2011-10-11 12:26:24 +01:00
Joe Thornber
8999232657 block manager can now be opened read only or read/write 2011-10-10 17:21:22 +01:00
Joe Thornber
61293708e3 command line processing for thin_restore 2011-10-10 16:45:32 +01:00
Joe Thornber
64f4c341bd output superblock in xml format 2011-10-10 16:14:36 +01:00
Joe Thornber
8389ca31a8 add program options to thin_dump 2011-10-10 15:59:37 +01:00
Joe Thornber
687525fdb0 start an xml format 2011-10-10 15:06:07 +01:00
Joe Thornber
d255180e37 thin dump now does something useful 2011-10-10 14:10:30 +01:00
Joe Thornber
16539b59ff update ignore file 2011-10-10 10:30:27 +01:00
Joe Thornber
478069c4ec more checksum stuff 2011-09-16 10:08:53 +01:00
Joe Thornber
1f6f79782a wrap zlibs checksum functionality 2011-09-12 11:49:42 +01:00
Joe Thornber
aafcfaaa19 a slightly better README 2011-09-09 12:08:10 +01:00
Joe Thornber
6da9ce9ef7 calculate the number of blocks in a metadata device properly 2011-09-02 15:22:46 +01:00
Joe Thornber
f8aab12baf fix typo 2011-09-02 15:05:26 +01:00
Joe Thornber
c39f782deb reset the last_leaf counts every time we enter a new subtree 2011-09-02 14:28:42 +01:00
Joe Thornber
e727bc943a check keys are strictly ordered, and parent keys are correct 2011-09-02 14:06:36 +01:00
Joe Thornber
096da9233b check all the index entries are present, and they\'re no extra ones 2011-09-01 14:05:01 +01:00
Joe Thornber
b4dbf8d74c g++ 4.4 fixups 2011-09-01 10:42:57 +01:00
Joe Thornber
28a2639036 stub thin_restore 2011-08-31 14:01:48 +01:00
Joe Thornber
c2ab11e034 separate out a separate makefile for the tests 2011-08-31 13:53:46 +01:00
Joe Thornber
c7d946a3d9 simplify clone to just be an increment 2011-08-31 13:40:52 +01:00
Joe Thornber
e408192b06 rename btree_validator to btree_checker 2011-08-31 13:38:22 +01:00
Joe Thornber
dec79974b2 [block] use an enum to designate a block as a super block 2011-08-31 13:22:37 +01:00
Joe Thornber
2973c64e00 [block] remove flush() method 2011-08-31 13:19:55 +01:00
Joe Thornber
6d37d86d55 [block] always use a validator, but default to a noop one 2011-08-31 13:18:28 +01:00
Joe Thornber
9cfdbfb8cc Having the block size as a template parameter makes all the code very
verbose, and we're not likely to change it.  So this change removes
that template arg from everything except the block manager.
2011-08-31 13:04:08 +01:00
Joe Thornber
a285fee757 get unit-tests working with g++ 4.4 2011-08-30 12:47:42 +01:00
Joe Thornber
19c7144b3b roots automatically get their ref count bumped now 2011-08-26 15:30:14 +01:00
Joe Thornber
90675d3a95 include sm_disk bitmaps in metadata counts 2011-08-26 11:13:13 +01:00
Joe Thornber
240e782a07 include ref_count tree in ref counts 2011-08-25 16:27:58 +01:00
Joe Thornber
3f5e95809f include the btree roots in the ref count audit 2011-08-25 16:13:54 +01:00
Joe Thornber
550b8ca35a make sure we take the metadata bitmaps into account for the reference counting 2011-08-25 16:10:03 +01:00
Joe Thornber
fce7e99d9a improve reference count tracking 2011-08-25 15:51:40 +01:00
Joe Thornber
52f03b7542 check metadata reference counts 2011-08-25 15:05:23 +01:00
Joe Thornber
dfe3275eac get compiling on g++ 4.4 2011-08-25 10:54:43 +01:00
Joe Thornber
04d7b7ce5b [thin-repair] stop using c++0x features 2011-08-24 14:27:45 +01:00