Commit Graph

861 Commits

Author SHA1 Message Date
Joe Thornber
8761b6defc [progress bar] Add an extra newline at the end 2014-09-01 14:44:37 +01:00
Joe Thornber
93468190bd [bitset] When reopening a bitset some bits could be lost at the far end.
The number of words necessary to store the bits was being miscalculated.
2014-09-01 14:17:44 +01:00
Joe Thornber
14cfcf2dfd [bitset] Don't visit bits in the tail end of the final word if they're beyond the nr bits in the bitset.
Also shift 1ULL in the test.
2014-09-01 14:16:03 +01:00
Joe Thornber
67865e0732 [bitset_t] Add test for walk_bitset 2014-09-01 14:15:32 +01:00
Joe Thornber
5a6b92312e [features] check that quiet mode really outputs nothing.
Previously it was checking the output contained a null string within it.
2014-08-28 14:00:08 +01:00
Joe Thornber
0608df97d8 bug introduced when renaming to pdata_tools 2014-08-28 11:43:02 +01:00
Joe Thornber
5a45f5ac95 [bild] strip the binary when installing 2014-08-28 11:06:16 +01:00
Christian Hesse
3cafc0d6e8 fix symbolic link at install time
Packaging tools often install via

$ make DESTDIR="${pkgdir}" install

which breaks the symbolic links. The package contains symbolic links to
${pkgdir}/$(BINDIR)/pdata_tools, which is wrong. Just use relative path,
which is really easy as binary and symlinks are in the same directory.
2014-08-27 22:31:50 +02:00
Joe Thornber
efe1a2a70f update CHANGES 2014-08-27 14:08:06 +01:00
Joe Thornber
6f8b7e2914 [all] Build a single executable 2014-08-27 14:01:31 +01:00
Joe Thornber
c1e0799367 [build] deps weren't being calculated for the top level source file of some of the tools. 2014-08-26 13:13:32 +01:00
Joe Thornber
828f654800 [*_restore] Add progress bar to cache_restore and era_restore.
A lot of refactoring common code between the restore tools.
2014-08-26 13:05:21 +01:00
Joe Thornber
e31ffe0874 update ignore file 2014-08-26 11:26:18 +01:00
Joe Thornber
7f6bdf2acf Add callgrind files to the ignore file 2014-08-26 11:24:07 +01:00
Joe Thornber
d17ad86a88 [*_restore] Use a little wrapper class for the expat XML_Parser to ensure it gets destroyed. 2014-08-26 11:23:29 +01:00
Joe Thornber
a7c96c0e1e [everything] Fix circular shared pointer references.
We had a cycle from transaction_manager <-> space_map, and also from
the ref_counters back up to the tm.

This prevented objects being destroyed when various programs exited.

From now on we'll try and only use a shared ptr if ownership is
implied.  Otherwise a reference will be used (eg, for up pointers).
2014-08-26 11:14:49 +01:00
Joe Thornber
930cc9d412 [block-manager] Superblocks weren't being marked as DIRTY
Gulp
2014-08-21 14:25:02 +01:00
Joe Thornber
b493a30b65 [block-cache] tweak when validators are swapped
Makes it more consitent in the face of exceptions
2014-08-21 14:23:14 +01:00
Joe Thornber
6f760ccd87 [block-cache] When changing validators the new validator check fn was only being called if the block was dirty. 2014-08-21 14:22:14 +01:00
Joe Thornber
b5a9cd6043 [block-cache] Create just one noop_validator
No need to create a separate one for each block.
2014-08-21 14:20:36 +01:00
Joe Thornber
4799becb01 [block-cache] fix leaking validators
The memory for the blocks is explicitly managed, and the destructors
for the blocks wasn't being called.
2014-08-21 14:19:36 +01:00
Joe Thornber
0d3942cae8 [block-manager] ensure the superblock cannot be taken concurrently with any other lock. 2014-08-21 12:18:05 +01:00
Joe Thornber
3724f78a13 [block_t] Fix a validator test 2014-08-21 11:51:04 +01:00
Joe Thornber
e3d459a148 [era_restore] add some cucumber tests 2014-08-21 11:27:52 +01:00
Joe Thornber
feb8a03d5f [btree_damage_tracker] Initialise all path_tracker objects with a null path.
This fixes an insidious bug that took me ages to track down.  Without
it the non-existent front() of a list was sometimes being accessed.
2014-08-21 11:25:07 +01:00
Joe Thornber
1a632f9d53 [era/xml restorer] bug fixes 2014-08-21 11:22:12 +01:00
Joe Thornber
5465c95134 [era/xml format] bring in line with the Ruby library 2014-08-21 11:21:47 +01:00
Joe Thornber
85ab149685 [era/metadata.{h,cc}] Support creation of new metadata 2014-08-21 11:20:43 +01:00
Joe Thornber
bf1b65e62f Update gemfile.lock 2014-08-21 11:18:06 +01:00
Joe Thornber
6f804cab24 [block_manager] Track the number of superblocks, throw an exception if someone tries to open two a once. 2014-08-21 11:17:20 +01:00
Joe Thornber
94356a1648 [era_check] Was returning after just checking the superblock.
Presumably old debug.
2014-08-15 10:11:35 +01:00
Joe Thornber
157eca4dd0 [era_restore] tweak help message 2014-08-12 10:20:29 +01:00
Joe Thornber
75a797253e [build] build era_restore by default 2014-08-12 10:18:58 +01:00
Joe Thornber
ad38cfe9c9 [block cache] Comment out the statistics output for now 2014-08-12 10:15:14 +01:00
Joe Thornber
56e79676f3 update Gemfile.lock 2014-08-12 10:09:30 +01:00
Joe Thornber
283ab4ad99 first drop of era_restore 2014-08-07 15:43:01 +01:00
Joe Thornber
1d12d0ff8e remove empty destructor 2014-08-07 15:42:10 +01:00
Joe Thornber
936e14441f Merge branch 'master' of github.com:jthornber/thin-provisioning-tools 2014-08-06 16:32:04 +01:00
Joe Thornber
8f73241119 [era] parser for the XML format 2014-08-06 16:30:38 +01:00
Joe Thornber
3e5c02459c whitespace 2014-08-06 16:30:26 +01:00
Joe Thornber
efe597f097 [README] Add dep for libaio 2014-08-06 16:29:50 +01:00
Joe Thornber
7e2ea38534 [configure.ac] Make sure libaio.h is present, and remove deps for a couple of boost headers we're no longer using. 2014-08-06 16:27:18 +01:00
Joe Thornber
1d38b390b5 Factor common code out of the xml_format files. 2014-08-06 15:29:02 +01:00
Joe Thornber
d8f678b079 Rename configure.in to configure.ac to stop auto tools bleating 2014-08-06 15:20:40 +01:00
Joe Thornber
a75a2118a0 era_invalidate: update help to reflect --metadata-snapshot 2014-08-06 11:15:18 +01:00
Joe Thornber
aa08c8393a Man pages were being installed in a v. funny place. 2014-08-06 11:14:15 +01:00
Joe Thornber
672582b2a8 Install era manpages 2014-08-06 11:10:22 +01:00
Joe Thornber
bdec4b353c tweak some man pages 2014-08-06 10:33:23 +01:00
Joe Thornber
41ade2a259 Add era_invalidate manpage 2014-08-06 10:32:39 +01:00
Joe Thornber
a2d6e86c51 Add era_dump man page. 2014-08-05 15:43:54 +01:00