Commit Graph

1726 Commits

Author SHA1 Message Date
Joe Thornber
18fbb65336 Merge branch 'master' of github.com:jthornber/thin-provisioning-tools 2016-05-07 14:40:31 +01:00
Joe Thornber
7bc7fb5bc1 Merge pull request #59 from vapier/master
tweak merging of build flags from configure into makefiles
2016-05-09 08:28:58 +01:00
Mike Frysinger
3e24cff8a1 respect & use CPPFLAGS properly
The common preprocessor variable is named CPPFLAGS.  configure sets this
up for us, including sourcing values from the user.  Rename INCLUDES to
match, and pull the default from configure.
2016-05-09 02:41:54 -04:00
Mike Frysinger
96e0e92afd get default CFLAGS/CXXFLAGS from configure
Since autoconf already sets up default compiler flags for us, use those.
These also come from the user's build settings.
2016-05-09 02:41:54 -04:00
Joe Thornber
4cff752433 Merge pull request #58 from vapier/master
fix up test targets
2016-05-09 07:11:29 +01:00
Mike Frysinger
b46676575c fix up test targets
- PHONY is misspelled
- fix the pdata_tools target dep
- add a "check" alias to match standard automake behavior
- mark test & check targets as phony
2016-05-08 23:35:19 -04:00
Joe Thornber
cd72590175 bump version 2016-05-07 11:56:21 +01:00
Joe Thornber
73a69abfd2 [unit-tests] copier and mem_pool tests.
More to come
2016-05-07 11:47:40 +01:00
Joe Thornber
4f54245600 [block_t] add check_raw to mock 2016-04-21 14:31:52 +01:00
Joe Thornber
c8fec7ec40 [cache_writeback] Coded, needs testing 2016-04-14 08:54:32 +01:00
Joe Thornber
7dbc5d1221 bump version 2016-04-08 17:07:40 +01:00
Joe Thornber
3fb4177656 [thin_trim] more bug fixing 2016-04-08 17:07:04 +01:00
Joe Thornber
77902767d7 Merge branch 'master' of github.com:jthornber/thin-provisioning-tools 2016-04-05 13:14:06 +01:00
Joe Thornber
3c02151a4f Merge branch 'master' into v0.7-devel
Conflicts:
	persistent-data/file_utils.cc
	persistent-data/file_utils.h
2016-04-05 13:13:10 +01:00
Joe Thornber
036883b271 Merge pull request #57 from tmakatos/v0.7-devel-static
Allow 3rd party emitters to be statically compiled
2016-04-06 14:09:31 +01:00
Thanos Makatos
5ebeb64cf8 don't avoid emitting part of the allocation bitmap when NOT told to do so
The condition in the if statement is wrong, as what we're trying to achieve
is to avoid emitting the particular piece of allocation bitmap if that piece
is empty AND we specifically request to skip empty bitmaps.
2016-04-06 15:56:09 +03:00
Thanos Makatos
431f2ab50a allow tmakatos (a binary) emitter to be statically compiled
It is trivial to implement static compilation of the rest of the 3rd party
emitters.
2016-04-06 15:56:09 +03:00
Thanos Makatos
35cfc3b90a introduce header file for the tmakatos (a binary) emitter
This is necessary because the emitter's symbols need to be resolved at
compile time. Only the tamakatos emitter header file is introduced, as it
is trivial to do so for the other emitters.
2016-04-06 15:56:08 +03:00
Thanos Makatos
088d5ac05e compile 3rd party emitters into static lib before creating shared lib
This patch adds an additional step in the compilation of 3rd party emitters:
we first create the static library and then create the shared library. This
is necessary in order to build the emitters into the static binary, which is
implemented in a subsequent patch.
2016-04-06 15:56:08 +03:00
Thanos Makatos
3464f005ff add configure option to enable static linking
(cherry picked from commit c6a2620f5d)

Conflicts:
	configure.ac
2016-04-06 15:56:08 +03:00
Thanos Makatos
ab958ee752 improve error message when failing to stat block device 2016-04-06 15:56:08 +03:00
Joe Thornber
7b1a113021 update CHANGES 2016-04-05 13:06:26 +01:00
Joe Thornber
866986b883 [thin_trim] FInally get thin_trim emitting the right discards 2016-04-05 12:27:00 +01:00
Joe Thornber
022b70f861 Merge pull request #56 from mingnus/v0.7-devel-fix
Fix unnecessary value visiting in counting_visitor
2016-04-05 10:37:05 +01:00
Ming-Hung Tsai
810e86e675 [counting_visitor] cleanup: remove redundant statements 2016-04-05 17:05:28 +08:00
Ming-Hung Tsai
9322fc9f14 [btree_damage_visitor] cleanup: remove redundant statements 2016-04-05 16:18:46 +08:00
Ming-Hung Tsai
f20e2a0f40 [thin_check] cleanup: use metadata_counter 2016-04-05 16:09:58 +08:00
Ming-Hung Tsai
c8aabf2948 [metadata_counter] fix repeated counting of trees 2016-04-05 16:09:58 +08:00
Ming-Hung Tsai
1dce79bd55 [btree_damage_visitor] cleanup: use btree_node_checker 2016-04-05 16:09:58 +08:00
Ming-Hung Tsai
c6c5086068 [thin_ll_dump] cleanup: use btree_node_checker 2016-04-05 16:09:58 +08:00
Ming-Hung Tsai
6dc9a90fec [counting_visitor] fix unnecessary value visiting
1. Do not inherit btree_damage_visitor to avoid unnecessary
   value visiting.
   (reverts commit b22495997a)
2. Use btree_node_checker to do node checking
2016-04-05 16:09:58 +08:00
Ming-Hung Tsai
4a4dc1a5e0 [btree_node_checker] first draft
Spin-off from btree_damage_visitor
2016-04-03 00:43:43 +08:00
Joe Thornber
2288fc4565 Merge branch 'master' into 2016-02-03-fix-thin-trim 2016-03-31 16:39:54 +01:00
Joe Thornber
5b3cae824b Merge branch 'v0.7-devel' of github.com:jthornber/thin-provisioning-tools into v0.7-devel 2016-03-31 16:14:48 +01:00
Joe Thornber
a5ed4258c0 [build] contrib target no longer depends on --enable-testing 2016-03-31 16:14:11 +01:00
Joe Thornber
475ec03732 Merge pull request #55 from tmakatos/v0.7-devel
use -ldl when linking
2016-03-31 11:35:32 +01:00
Thanos Makatos
b8dbde1e64 use -ldl when linking
dlopen etc. require -ldl to link
2016-03-31 13:02:36 +03:00
Joe Thornber
06e74656f6 update ignore file 2016-03-24 15:22:01 +00:00
Joe Thornber
83dc84f790 [contrib] ewheeler_emitter.so
For thin_dump
2016-03-24 15:21:20 +00:00
Joe Thornber
6c4f3ad2ff [contrib/ tmakatos_emitter for thin_dump 2016-03-24 14:44:13 +00:00
Joe Thornber
c7813e07e4 [thin_dump] --format custom=<shared lib>
Allow people to use their own emitters held in a shared library.

Put a trivial emitter in contrib/ as an example.
2016-03-24 13:59:08 +00:00
Joe Thornber
872a933072 [thin_dump] start refactoring format code 2016-03-23 10:52:04 +00:00
Joe Thornber
7b8b4c5c4a Merge pull request #50 from tmakatos/static
add configure option to enable static linking
2016-03-23 09:49:43 +00:00
Joe Thornber
4370f048c0 [thin_dump] --skip-mappings 2016-03-22 15:01:37 +00:00
Joe Thornber
ad4fd30a27 Merge branch 'v0.7-devel' of github.com:jthornber/thin-provisioning-tools into v0.7-devel 2016-03-22 14:47:11 +00:00
Joe Thornber
a3f4940f1e [thin_dump] --dev-id 2016-03-22 14:46:33 +00:00
Joe Thornber
8b2ec7a3aa Merge branch 'master' into v0.7-devel
Conflicts:
	VERSION
	persistent-data/space-maps/disk.cc
	persistent-data/space-maps/disk.h
2016-03-22 12:04:51 +00:00
Joe Thornber
72025c398e bump version 2016-03-21 17:27:26 +00:00
Joe Thornber
b0e2d0e6a0 [thin_repair, metadata] Try harder to get the number of data blocks
when opening the metadata.
2016-03-21 17:17:57 +00:00
Joe Thornber
a21f97e405 [space map disk] Add get_nr_blocks_in_data_sm()
which just uses the root
2016-03-21 17:16:41 +00:00