Commit Graph
100 Commits
Author SHA1 Message Date
Joe Thornber 70fd048426 Add a TODO file 2013-04-23 11:18:21 +01:00
Joe Thornber 9943bd6549 cucumber tests were generating invalid xml metadata. 2013-04-23 11:17:50 +01:00
Joe Thornber d8a208cbc8 A stack of space map tweaks.
new_block() is now a concrete method implemented using the virtual
find_free() and inc() methods.

recursive space map is better at giving correct reference counts.
2013-04-23 10:57:47 +01:00
Joe Thornber e0230c5c55 Fix broken dependencies for .gmo files 2013-04-22 13:50:40 +01:00
Joe Thornber 4cb19a06ba Pull subtracting_span_iterator out into separate file + test. 2013-04-22 13:41:34 +01:00
Joe Thornber bf75b5c827 Add a space map unit test that creates a metadata sm and a disk sm 2013-04-11 14:01:54 +01:00
Joe Thornber dde775ef52 thin_metadata_t now reproduces the recursive new_block() error. 2013-04-11 13:41:43 +01:00
Joe Thornber 3629e1e2b5 cucumber test for thin_check --super-block-only 2013-04-11 13:40:47 +01:00
Joe Thornber 7d3ab79789 some build updates 2013-03-25 12:56:03 +00:00
Joe Thornber bc25afd686 update ignore file 2013-03-25 11:54:52 +00:00
Joe Thornber 6df7f345cd remove Rakefile 2013-03-25 11:54:31 +00:00
Joe Thornber 89f658862a [build] add features target 2013-03-25 11:53:55 +00:00
Joe Thornber be7801f111 some __le -> le issues 2013-03-22 15:48:43 +00:00
Joe Thornber a7081a4789 Some build updates 2013-03-22 15:41:13 +00:00
Joe Thornber e794079cf7 unit-test makefile 2013-03-22 15:26:18 +00:00
Joe Thornber f2a388dbab transaction_t -> gmock 2013-03-22 15:19:40 +00:00
Joe Thornber 2ec15f74b8 space_map_t -> gmock 2013-03-22 15:08:52 +00:00
Joe Thornber a018647d0a btree_t -> gmock 2013-03-22 14:57:46 +00:00
Joe Thornber 9c4bfe4cf9 endian_t -> gmock 2013-03-22 14:53:53 +00:00
Joe Thornber 28128624eb cache_t -> gmock 2013-03-22 14:46:43 +00:00
Joe Thornber 9ed0ecabfe block_t to gmock 2013-03-22 14:43:15 +00:00
Joe Thornber 0a70c17268 Convert bitset_t to gmock 2013-03-22 14:36:31 +00:00
Joe Thornber 1e141f83bb Convert array_block_t to gmock 2013-03-22 14:13:58 +00:00
Joe Thornber f9bf18adf6 Move array_t to gmock 2013-03-22 13:42:20 +00:00
Joe Thornber 50bab1c90a Quieten down the build 2013-03-22 12:19:31 +00:00
Joe Thornber edb33dce4c Put build dependencies in for gmock 2013-03-22 12:10:51 +00:00
Joe Thornber c044c2c729 Convert buffer_t to gmock. 2013-03-22 12:04:38 +00:00
Joe Thornber e3375443eb gmock stub 2013-03-22 10:55:55 +00:00
Joe Thornber a560e672b9 Add a script to retrieve and build gmock. 2013-03-22 10:06:31 +00:00
Joe Thornber 43d5d8d2a2 cache tools work 2013-03-18 13:56:30 +00:00
Joe Thornber 843cf76d41 cache tools wip 2013-03-15 16:24:17 +00:00
Joe Thornber 907dc34499 rename some parameters 2013-03-15 14:59:32 +00:00
Joe Thornber 2ed1648896 cache tools wip 2013-03-15 14:59:21 +00:00
Joe Thornber 12dff31358 bitset 2013-03-14 13:13:18 +00:00
Joe Thornber add23c1709 Array data structure 2013-03-13 13:28:03 +00:00
Joe Thornber 3c54e2b23a Updates to array_block 2013-03-13 12:59:11 +00:00
Joe Thornber 11a41c4cf4 Pull ref_counter out of btree.h 2013-03-13 12:58:05 +00:00
Joe Thornber 7d18b08b91 rename NoOpRefCounter -> no_op_ref_counter 2013-02-01 14:49:26 +00:00
Joe Thornber 4eadd9438e add fixme 2013-02-01 12:01:23 +00:00
Joe Thornber 5aaa710b53 [data-structures] array_block 2013-02-01 12:00:49 +00:00
Joe Thornber 92d70ad9c2 [block] read and write refs defined BLOCK_SIZE 2013-02-01 11:55:46 +00:00
Joe Thornber 0f3a9cc567 Merge remote-tracking branch 'github-heinz/Work' into heinz
Conflicts:
	unit-tests/buffer_t.cc
2013-01-29 11:40:56 +00:00
Joe Thornber 7a6d09866a [array] add array_t 2013-01-29 11:35:37 +00:00
Joe Thornber 9e5213530f fix last push 2013-01-23 13:34:38 +00:00
Joe Thornber aa12870c22 [buffer.h] add static test for alignment 2013-01-23 13:32:33 +00:00
Joe Thornber c2ab5390cb buffer_t const assignment fails 2013-01-23 13:12:17 +00:00
Joe Thornber bb3d8b9aee whitespace 2013-01-23 12:54:54 +00:00
Joe Thornber f19135f768 [block.h] add a TODO list for Heinz 2013-01-22 10:27:00 +00:00
Joe Thornber 67cd406fe9 [transaction_manager_t] remove some duplication 2013-01-22 09:59:06 +00:00
Joe Thornber 23b48f0c54 [unit-tests] Update block_manager constructors to use the block_io<>::mode param. 2013-01-15 05:31:48 +00:00
Joe Thornber 70f1ee6031 [Build] Dependencies weren't being built or included for the unit tests. 2013-01-15 05:29:40 +00:00
Joe Thornber 2aff80ea78 [block_t] remove the test.data file before each test. 2013-01-15 04:07:47 +00:00
Joe Thornber 0455cfbf13 [block] use lseek to size a new block file rather than fallocate.
Which sadly returned operation not supported for some reason.
2013-01-15 04:06:57 +00:00
Joe Thornber cfdc233fa4 [block_t] All block managers are created in create_bm. 2013-01-15 03:43:21 +00:00
Joe Thornber fb1ad01e19 Add a CREATE mode to the block_io class. 2013-01-15 03:23:55 +00:00
Joe Thornber 779f8e1fd4 Introduce a mode enum to block_io<> 2013-01-11 20:16:40 +00:00
Joe Thornber 2b86309961 persistent-data/cache.h hadn't been checked in. 2013-01-11 19:31:22 +00:00
Joe Thornber aacca8d963 Introduce persistent-data/data-structures/ 2013-01-11 19:26:51 +00:00
Joe Thornber d362fdc867 array data structure wip 2013-01-10 23:00:50 +00:00
Joe Thornber 6f723e6c5a rename run_list -> span 2013-01-10 22:59:54 +00:00
Joe Thornber af96c22786 Fix a transaction manager test 2013-01-10 22:11:59 +00:00
Joe Thornber ace95d434e whitespace 2013-01-10 21:38:58 +00:00
Joe Thornber 326fd3408b move space maps to their own sub directory 2013-01-10 21:36:38 +00:00
Joe Thornber 6a4facf03b test the recursive space map 2013-01-10 21:12:37 +00:00
Joe Thornber 186b0aa6c1 Change the signature of the space_map->new_block() method, introducing
a span_iterator abstraction.

Rename sm_transactional -> sm_careful_alloc.  Still not happy with the name.

Fix failing test.
2013-01-10 21:05:10 +00:00
Joe Thornber 3d9f91eee2 Test space_map_transactional 2013-01-10 12:15:50 +00:00
Joe Thornber 4ea3476c97 rename space_map_disk_t -> space_map_t 2013-01-10 11:26:29 +00:00
Joe Thornber 44316c5741 Test space_map_core. 2013-01-10 11:21:07 +00:00
Joe Thornber 9933506a15 remove space_map_t 2013-01-10 11:12:36 +00:00
Joe Thornber 1cc6737c26 Remove the typedef block_ptr and change code to use block::ptr instead 2013-01-10 11:02:06 +00:00
Joe Thornber 3e39e8bfeb A big raft of changes to the unit-tests 2013-01-09 20:24:11 +00:00
Joe Thornber ab7124e441 block_t and cache_t fully operational again. 2013-01-07 16:39:02 +00:00
Joe Thornber b63a921d44 make lock_tracker throw if the superblock is unlocked while other locks are still held. 2013-01-07 15:57:19 +00:00
Joe Thornber 26b97908bd Add superblock_lock method to lock_tracker. 2013-01-07 15:30:51 +00:00
Joe Thornber 2a427ca925 Add persistent_data/lock_tracker for more sanity checking. 2013-01-07 14:59:41 +00:00
Joe Thornber 282e98a6b1 Move source into separate sub directories. 2013-01-02 12:55:41 +00:00
Joe Thornber c0d2eb9bc6 remove misleading comment about thin_dump from thin_check man page 2012-05-22 16:50:00 +01:00
Joe Thornber ad09f2e2b0 bump version 2012-05-17 13:07:08 +01:00
Joe Thornber 2598648e62 Introduce a buffer class that has its own allocator which makes sure
the buffer is 512 byte aligned.

Open metadata devices with O_DIRECT to let us work with live metadata.
2012-05-17 13:05:26 +01:00
Joe Thornber e25c211591 dump the metadata snap block in the superblock detail 2012-05-17 13:04:37 +01:00
Joe Thornber 9e00ab07b8 add support for held_root to thin_dump 2012-05-17 12:28:23 +01:00
Joe Thornber ae220c977d Merge branch 'master' into held-root 2012-05-15 10:02:49 +01:00
Joe Thornber 290643f85f merge 2012-03-15 15:13:32 +00:00
Joe Thornber c632c52cf5 bump version 2012-03-15 15:09:00 +00:00
Joe Thornber aa437b124d fix merge conflicts 2012-03-14 12:52:17 +00:00
Joe Thornber 6bb2b99691 bump version 2012-03-14 12:44:44 +00:00
Joe Thornber 2a50b54906 bump version 2012-03-13 14:29:02 +00:00
Joe Thornber 7e1ed018b1 Merge branch 'rhel6.3-maintenance' 2012-03-13 14:28:30 +00:00
Joe Thornber 7b1907cf3b bump version 2012-03-13 14:08:25 +00:00
Joe Thornber 21405ab76f Merge branch 'heinz-changes' of github.com:jthornber/thin-provisioning-tools into rhel6.3-maintenance 2012-03-13 14:06:21 +00:00
Joe Thornber 0e47d99218 tweaks to command line 2012-03-13 14:06:10 +00:00
Joe Thornber 4a1484330d --version should output to stdout, not stderr 2012-03-13 12:32:30 +00:00
Joe Thornber 748e21fc5c bump version number 2012-03-13 11:38:41 +00:00
Joe Thornber 0eac802682 more thin_debug work 2012-03-13 11:01:14 +00:00
Joe Thornber da8afff35f thin_debug 2012-03-08 17:20:46 +00:00
Joe Thornber dce7013577 sb.flags_ was not being packed/unpacked correctly 2012-03-08 13:11:55 +00:00
Joe Thornber 8f0a868554 make mk_release executable 2012-03-05 11:46:20 +00:00
Joe Thornber 399ef0ba4e fix bug in command line parsing (Milan) 2012-03-05 11:46:07 +00:00
Joe Thornber 43bd901f16 big endian support 2012-03-02 14:05:33 +00:00
Joe Thornber 784390bb4f bump version 2012-03-02 13:28:25 +00:00