Joe Thornber
c58c15e788
[thin_show_dups] move scan_with_variable_sized_chunks() into the dup detector
2015-09-08 13:17:52 +01:00
Joe Thornber
b6e3a12297
[thin_show_dups] move scan into the duplicate_detector
2015-09-07 15:40:35 +01:00
Joe Thornber
cb56b47400
[thin-show-dups] add --content-based-chunks
2015-09-04 15:27:48 +01:00
Joe Thornber
251762e6d9
[thin_show_dups] tidy up reporting
2015-09-04 15:16:49 +01:00
Joe Thornber
41a1b85c27
[thin_show_dups] take out some old assertions
2015-09-04 13:56:38 +01:00
Joe Thornber
216e5acb6c
[thin_show_dups] remove variable number of mems per chunks.
...
Too slow and not used.
2015-09-04 13:48:02 +01:00
Joe Thornber
7633c5d7ae
[thin_show_dups] get the progress bar working again
2015-09-04 10:36:39 +01:00
Joe Thornber
5d383c0293
[thin_show_dups] get the backup break working in the rolling hash
2015-09-04 10:10:41 +01:00
Joe Thornber
750ce0f47b
[thin_show_dups] variable_chunk_stream
2015-09-03 13:02:29 +01:00
Joe Thornber
d44a817c60
[thin_show_dups] Track zero blocks
2015-08-25 09:14:40 +01:00
Joe Thornber
6dd6fcb4cd
[thin_show_dups] fix bug calculating block size for linear volumes
2015-08-25 08:38:01 +01:00
Joe Thornber
10f93be8b1
[thin_show_dups] put linear branch back in
2015-08-25 08:22:16 +01:00
Joe Thornber
3470ede50b
[thin_show_dups] pull the various streams out to their own files
2015-08-24 16:55:53 +01:00
Joe Thornber
46fe4525bb
[thin_show_dups] factor out a pool stream
2015-08-24 14:29:06 +01:00
Joe Thornber
ac4104d063
add prefetching
2015-08-24 11:24:55 +01:00
Joe Thornber
c8d3ce6af5
[thin_show_duplicates] start factoring out a chunk_stream abstraction
2015-08-24 11:18:31 +01:00
Joe Thornber
d954f230fa
[thin_show_duplicates] wip
2015-08-21 13:10:49 +01:00
Joe Thornber
94636b63d7
[thin_show_duplicates] print out the percentage of duplicates
2015-08-19 13:46:02 +01:00
Joe Thornber
929a824184
[thin_show_duplicates] add --block-sectors switch
2015-08-19 13:07:56 +01:00
Joe Thornber
519cbfd855
[thin_show_duplicates] add a progress bar
2015-08-19 12:53:11 +01:00
Joe Thornber
59a622670c
[thin_show_duplicates] wip
2015-08-19 12:32:57 +01:00
Joe Thornber
dbd0c65088
[thin_show_duplicates] stub new command
2015-08-19 09:41:14 +01:00
Joe Thornber
29c2a949f4
remove a bit of debug
2015-08-13 14:56:30 +01:00
Joe Thornber
5d28c05dc3
[thin_check] detail and mapping trees weren't being counted properly for the metadata snap.
...
This could result in block counts being unexpectedly non zero.
2015-08-04 15:14:02 +01:00
Joe Thornber
7134a58134
[thin_metadata_size] use floor rather than truncl
2015-07-30 11:45:13 +01:00
Joe Thornber
3a881e9513
[thin_delta] Allow optional arg when using -m
2015-07-28 11:29:00 +01:00
Joe Thornber
93fb540bd4
[thinp tools] move find_metadata_snap to superblock.cc
2015-07-27 14:30:09 +01:00
Joe Thornber
642ae6e7c2
Tools now open the metadata device in O_EXCL mode.
...
An attempt to stop people running the tools on active metadata.
2015-07-07 13:47:00 +01:00
Joe Thornber
f85b7cef3f
thin_dump, thin_check: Fix bug in damage reporting
2015-07-03 13:00:13 +01:00
Joe Thornber
082491d140
thin_check: tidy up some unintuitive code
2015-06-22 11:13:19 +01:00
Joe Thornber
270c0f7041
[thin_check] factor out check_space_map_counts()
2015-04-08 14:07:38 +01:00
Joe Thornber
0fee897fda
[thin_check] A space map count being too high should be a NON_FATAL error.
2015-04-08 12:32:31 +01:00
Joe Thornber
20079f3d28
Pass tm's by reference
2015-04-07 13:31:45 +01:00
Joe Thornber
ee200ba85b
Merge branch 'master' into space-map-checking
2015-04-07 12:18:23 +01:00
Joe Thornber
7f643b7050
[thin] Use specific damage visitors to improve error messages.
...
There's now a damage visitor for dev_trees, mapping_trees and
single_mapping_trees.
2015-04-07 12:16:46 +01:00
Joe Thornber
f581f34be8
add comment explaining mtree_traits
2015-04-07 12:10:38 +01:00
Joe Thornber
cc44652cc3
[thin_delta] support metadata snapshots
2015-03-25 11:10:18 +00:00
Joe Thornber
0e72f772d0
[thin_delta] Add superblock and diff tags
2015-03-25 10:09:39 +00:00
Joe Thornber
45422dbf7a
[thin_delta] Mappings were being missed off from the tail of a device
2015-03-24 13:36:45 +00:00
Joe Thornber
c6ae25417b
Add missing include to thin_trim
2015-01-17 11:45:09 +00:00
Joe Thornber
fe64da2c7c
Fix these errors:
...
thin-provisioning/thin_pool.cc:206: error: reference to 'sector_t' is ambiguous
./thin-provisioning/metadata.h:40: error: candidates are: typedef uint64_t thin_provisioning::sector_t
./block-cache/block_cache.h:20: error: typedef uint64_t bcache::sector_t
thin-provisioning/thin_pool.cc:206: error: reference to 'sector_t' is ambiguous
./thin-provisioning/metadata.h:40: error: candidates are: typedef uint64_t thin_provisioning::sector_t
./block-cache/block_cache.h:20: error: typedef uint64_t bcache::sector_t
thin-provisioning/thin_pool.cc:206: error: 'sector_t' does not name a type
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
2015-01-16 10:14:28 +00:00
Joe Thornber
8e92158055
[thin_trim] first code drop.
...
No testing done as yet.
2014-11-18 16:03:03 +00:00
Joe Thornber
41354f10f5
provide << operator for optionals
2014-09-04 11:26:43 +01:00
Joe Thornber
6f8b7e2914
[all] Build a single executable
2014-08-27 14:01:31 +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
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
936e14441f
Merge branch 'master' of github.com:jthornber/thin-provisioning-tools
2014-08-06 16:32:04 +01:00
Joe Thornber
1d38b390b5
Factor common code out of the xml_format files.
2014-08-06 15:29:02 +01:00
Joe Thornber
d00aef9219
[thini_restore] add a quiet option to turn off the progress monitor
2014-08-05 12:10:34 +01:00