Commit Graph

243 Commits

Author SHA1 Message Date
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
Heinz Mauelshagen
1b49f95c0c Introduce COMPILE_TIME_ERROR conditionals around tests failing at compile time 2013-01-23 15:08:05 +01:00
Heinz Mauelshagen
dc06c88758 Joe's BOOST_STATIC_ASSERT addition 2013-01-23 14:39:42 +01: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
Heinz Mauelshagen
ca7de05e62 buffer_t.cc: more tests 2013-01-23 14:32:03 +01:00
Joe Thornber
c2ab5390cb buffer_t const assignment fails 2013-01-23 13:12:17 +00:00
root
5776ba114c Merge branch 'Work' of git://github.com/lvmguy/thin-provisioning-tools into heinz 2013-01-23 13:06:56 +00:00
Heinz Mauelshagen
0f5fc39694 buffer_t.cc 2013-01-23 14:04:34 +01:00
Joe Thornber
bb3d8b9aee whitespace 2013-01-23 12:54:54 +00:00
Heinz Mauelshagen
78563e1709 buffer.h: remove protected 2013-01-23 13:51:13 +01:00
Heinz Mauelshagen
635eb6949a buffer_t.cc 2013-01-23 13:47:58 +01:00
Heinz Mauelshagen
5f336e4b41 buffer.h: comment 2013-01-23 13:39:23 +01:00
Heinz Mauelshagen
eed2dfdc38 buffer_t.cc: more tests 2013-01-23 13:28:00 +01:00
Heinz Mauelshagen
a762d34009 factored buffer.h out of block.h 2013-01-22 13:46:38 +01: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