Commit Graph

1652 Commits

Author SHA1 Message Date
Joe Thornber
24931b3bda [thin_check] --override-mapping-root 2017-10-04 11:43:13 +01:00
Joe Thornber
dcb0fe1148 [functional-tests] add a useful script for investigating corrupt thin metadata 2017-10-04 10:45:39 +01:00
Joe Thornber
3b30d9e225 [functional-tests] Move mapping tree to metadata, and add functions for device-tree 2017-10-04 10:40:25 +01:00
Joe Thornber
48b3ac960c [functional-tests] Export some more from (persistent-data btree) 2017-10-04 10:30:15 +01:00
Joe Thornber
5fd33b9560 [functional-tests] Knock up some crc32c code.
This works 1 byte at a time so will be slow.
2017-10-04 10:25:32 +01:00
Joe Thornber
8b7e5acc48 [functional-tests/utils] add all?, some? and none?
They only work with one list though.  Use every from srfi1.
2017-10-04 10:19:46 +01:00
Joe Thornber
331303fe03 [functional-tests] Add thin_repair test for accidental XML input.
Was segfaulting.
2017-09-29 10:19:56 +01:00
Joe Thornber
5b92f410ec [*_restore] if things go wrong wipe the superblock.
So we don't leave the metadata device with partially restored metadata.
2017-09-28 14:39:24 +01:00
Joe Thornber
8035e10b2a Merge branch 'master' of github.com:jthornber/thin-provisioning-tools 2017-09-28 14:37:18 +01:00
Joe Thornber
f018e6ecf7 [functional-tests] Check *_restore doesn't touch the metadata if the xml doesn't exists, or isn't xml. 2017-09-28 14:36:01 +01:00
Joe Thornber
5e2cd1e9f2 [functional-tests] more work on the dm-ioctl bindings 2017-09-27 15:50:16 +01:00
Joe Thornber
742629fb8d [functional-tests] start working on dm-ioctl bindings 2017-09-26 15:16:45 +01:00
Joe Thornber
a1acd0c868 [functional-tests] fix bug in run_tests if command line pattern was shorter than "re:" 2017-09-26 14:02:42 +01:00
Joe Thornber
7796b4eecb [functional-tests] bcache makefile 2017-09-21 15:12:07 +01:00
Joe Thornber
d4df0cc272 [man pages] tweak cache_check manpage. 2017-09-21 13:14:20 +01:00
Joe Thornber
af063b0e9d [man pages] add a bit of text from the Fedora build. 2017-09-21 13:02:17 +01:00
Joe Thornber
eb564b32fe [man pages] Add --clear-needs-check to thin_check manpage 2017-09-21 12:56:31 +01:00
Joe Thornber
22430c636d bump version to 0.7.2 2017-09-21 11:23:59 +01:00
Joe Thornber
2b29d6c20c [man pages] Don't refer to the non-existant era_repair. 2017-09-21 10:37:28 +01:00
Joe Thornber
48e7ab89a5 [*_dump] Fix segfault when given a tiny metadata file 2017-09-21 10:22:38 +01:00
Joe Thornber
7079b1ec9e [functional-tests] fix up some tests. 2017-09-20 17:13:03 +01:00
Joe Thornber
5814fea96a [man pages] fix some formatting issues with the new man pages. 2017-09-20 13:53:59 +01:00
Joe Thornber
dd8848f088 [manpages] Rewrite man pages in a simpler text format.
Makefile still needs work, but I wanted to commit to save progress.
2017-09-20 11:15:00 +01:00
Joe Thornber
e48516914d [thin_trim] add some required args to the manpage 2017-09-19 12:36:25 +01:00
Joe Thornber
7dec2bfa08 [thin_ls manpage] add comma 2017-09-19 11:45:22 +01:00
Joe Thornber
313716028e [thin-metadata-size] -V was exiting with 1 2017-09-19 11:29:35 +01:00
Joe Thornber
3790f2e79c [thin_rmap] Fail if no regions are supplied. 2017-09-19 11:05:00 +01:00
Joe Thornber
f7d79339e8 [man pages] Various updates. 2017-09-18 16:10:56 +01:00
Joe Thornber
2a39350235 [functional-test] remove out of date comment 2017-09-15 15:59:10 +01:00
Joe Thornber
b10d8d4440 [thin_check] Spot XML and be helpful. 2017-09-15 15:22:04 +01:00
Joe Thornber
9ba75c890b [functional-tests] Don't reiterate the failures if there were no
successes.
2017-09-15 12:48:34 +01:00
Joe Thornber
a424417475 [thin_delta] long opts weren't being terminated properly.
This caused a seg fault with an unknown switch
2017-09-15 12:28:19 +01:00
Joe Thornber
738ab8391d [functional-tests] Improve the (thin-delta unrecognised-option) test 2017-09-15 12:26:54 +01:00
Joe Thornber
4d3733d0e7 [functional-tests] change btree functions to take a spine.
Also change the step-spine interface slightly.
2017-09-14 16:09:43 +01:00
Joe Thornber
48ae5beead [funtional-tests] remove old code 2017-09-14 15:14:56 +01:00
Joe Thornber
6b36f68ef5 [unit-tests/block_t] Comment out failing test
WONTFIX
2017-09-14 14:39:42 +01:00
Joe Thornber
977bbf05e5 [unit-tests/btree_counter_t] Add a couple of flushes().
This fixes the two failing btree_counter tests.  The blocknr in each
node is filled in when written out.  These days (thanks to Ming) the
counter also checks the btree, *but* if there are any problems
encoutered it just skips counting that node.
2017-09-14 14:00:21 +01:00
Joe Thornber
eeb66ad83a [doc] add some ramblings on thinp metadata v2 2017-09-14 11:58:56 +01:00
Joe Thornber
9bc5d9fbfe [functional-tests] Some work on thin-check and thin-dump 2017-09-14 11:47:23 +01:00
Joe Thornber
f27b1e36c6 [functional-tests] Remove redundant library load in run-tests 2017-09-14 11:45:49 +01:00
Joe Thornber
f756ff02df [functional tests] Fix bug in return type of parser-combinators/eof 2017-09-14 11:44:01 +01:00
Joe Thornber
111d64ec9e [functional-tests] Change btree code to use a spine 2017-09-14 11:41:26 +01:00
Joe Thornber
205caab84c [functional-tests] move thin-check and thin-xml into a sub dir 2017-09-14 11:39:38 +01:00
Joe Thornber
40b257d42e [functional-tests] change btree to use the bcache 2017-09-08 15:51:33 +01:00
Joe Thornber
3b7320cd84 [functional-tests] a few more bcache tests 2017-09-08 09:20:16 +01:00
Joe Thornber
3f8add4334 Merge branch 'master' of github.com:jthornber/thin-provisioning-tools 2017-09-07 15:42:31 +01:00
Joe Thornber
6a054e35df [functional-tests] Scheme interface to the block cache. 2017-09-07 15:40:25 +01:00
Joe Thornber
7825380ffe [functional-tests] recode the block cache in C 2017-09-07 15:39:55 +01:00
Ming-Hung Tsai
591f725232 [space map disk] reduce the lock counts to speed up free block searching (#84)
Avoid repetitively acquiring/releasing the bitmap while finding a free block
2017-09-04 18:05:19 +01:00
Joe Thornber
c70aad52e6 [functional-tests] add dlambda to utils 2017-09-04 12:31:39 +01:00