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
5f11f5af99
[progress_bar] Tidy up the appearance when at 100%
2015-08-20 11:12:53 +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
25f4f23e42
[file_utils] fix bug in get_nr_blocks.
...
Introduced in previous patch
2015-08-19 12:44:07 +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
71aea2efcc
add btree_disk_structures.h
2015-08-13 14:28:07 +01:00
Joe Thornber
d63b73ea93
bump version
2015-08-13 13:50:36 +01:00
Joe Thornber
32e92ce897
update man pages to forbid running on live metadata
2015-08-13 13:39:20 +01:00
Joe Thornber
8fab56680c
[all tools] Improve the error message if opening the metadata fails.
...
Remind the admin that you shouldn't run the tools on live data.
2015-08-13 12:57:07 +01:00
Joe Thornber
c32aaab028
[validators] Move the btree node validator into a separate file.
2015-08-11 11:58:07 +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
b67cc29609
[btree] bad checksum exceptions now mention the block location
2015-08-04 15:12:41 +01:00
Joe Thornber
7134a58134
[thin_metadata_size] use floor rather than truncl
2015-07-30 11:45:13 +01:00
Zdenek Kabelac
271ff67f91
Cache check close RO opened device before reopen.
...
When check_check is used with --clear-needs-check-flag option,
device needs to be opened in RW exclusive mode, but for this
existing RO exlusive open must be closed.
LVM2 will consider version 0.5.3 as a version without flag support
for cache_check since it cannot successfully pass cache_check.
TODO: when 'RO' parts detects there is nothing to 'clear' it should
completely skip RW open to avoid udev rule processing.
2015-07-28 14:37:44 +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
7d8b6adf4e
v0.5.2
2015-07-03 13:00:49 +01:00
Joe Thornber
f85b7cef3f
thin_dump, thin_check: Fix bug in damage reporting
2015-07-03 13:00:13 +01:00
Joe Thornber
33af9774ae
v0.5.1
2015-06-25 10:51:24 +01:00
Joe Thornber
c6844dc7e6
[metadata space map] Restrict space map size
...
Previously it would crash with v. large metadata areas.
2015-06-24 16:32:17 +01:00
Joe Thornber
125cec0193
bump to version 0.5
2015-06-22 12:02:16 +01:00
Joe Thornber
4ee6df3a70
[cucumber tests] update thin_delta help output
2015-06-22 11:58:18 +01:00
Joe Thornber
082491d140
thin_check: tidy up some unintuitive code
2015-06-22 11:13:19 +01:00
Joe Thornber
6ab0833b2e
cache_check: add --clear-needs-check
2015-06-09 14:01:22 +01:00
Joe Thornber
c8d8af488f
[btree] When using lower_bound() assign to an int rather than unsigned
...
Patch from Ming-Hung Tsai
2015-05-26 14:24:55 +01:00
Joe Thornber
cf903cfea6
[btree] lower bound search should return an empty optional if every entry in the node is higher.
...
Patch from Ming-Hung Tsai
2015-05-26 14:09:29 +01:00
Joe Thornber
880785a9bf
[damage_tracker] Reset the tracker in the end() method so we can reuse it.
...
The *_check tools already reuse trackers.
Patch from Ming-Hung Tsai.
2015-05-26 12:49:27 +01:00
Joe Thornber
85d1701ba1
[btree_damage_visitor] Check the value_size agrees.
...
Patch from Ming-Hung Tsai
2015-05-26 12:06:34 +01:00
Joe Thornber
9de2b26c25
Merge branch 'master' of github.com:jthornber/thin-provisioning-tools
2015-04-13 16:57:14 +01:00
Joe Thornber
270c0f7041
[thin_check] factor out check_space_map_counts()
2015-04-08 14:07:38 +01:00
Joe Thornber
a934ee69c4
[error_state] add a sneaky little stream operator to simplify combining error_states
2015-04-08 13:58:41 +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
34df640d8d
[metadata space map] index bitmap root wasn't being counted in count_metadata()
2015-04-08 12:32:00 +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