Commit graph

31 commits

Author SHA1 Message Date
65d269e2d4 ftl: maintain state for the transaction that is currently active 2017-10-03 13:15:10 +02:00
f3eb5df644 test: ftl: add tests for ftl_is_mapped() 2017-09-21 17:27:15 +02:00
6243dabea8 test: ftl: add tests for find_head() 2017-09-21 15:36:44 +02:00
920a59499b test: ftl: add tests for find_root() 2017-09-20 15:41:41 +02:00
b8426f12f2 test: ftl: mock read_page_desc() 2017-09-20 15:28:30 +02:00
bbfb9ca800 ftl: mock is_group_erased() and find_block() and simplify implementation of binary search 2017-09-20 14:30:08 +02:00
c1a7b885f2 test: call __real_write_page_desc() in tests and mock prepare_head() and write_page_desc() 2017-09-19 18:44:53 +02:00
b4ecfb527c ftl: check magic in read_page_group() 2017-09-19 16:19:01 +02:00
a63e7656fe test: ftl: add tests for next_upage() 2017-09-19 15:04:47 +02:00
f0a8439c51 ftl: fix address calculation in read_page_desc() 2017-09-19 14:23:20 +02:00
bbc799f805 test: add tests for find_block_div() and read_page_desc() 2017-09-19 14:23:00 +02:00
b29e0b945d tbm: fix minor issues during compilation 2017-09-19 14:16:21 +02:00
e6c1197d07 ftl: fix find_last_group() to use proper group offsets 2017-08-01 15:51:50 +02:00
51da9338ea ftl: return -1 when no root could be found 2017-08-01 15:50:48 +02:00
5b21fe9813 ftl: fix read_page_desc() and write_page_desc() to use proper offsets 2017-08-01 15:50:16 +02:00
f44581b648 ftl: fix is_group_erased() to read the proper offsets 2017-08-01 15:49:17 +02:00
dc6365c7f8 ftl: fix bug in root recovery by marking page descriptors with a magic value 2017-07-31 14:17:11 +02:00
846ea90bdc ftl: initialise the offset in the map 2017-07-24 16:36:22 +02:00
f7b11a8726 ftl: temporarily disable reading the cached va in trace_path() 2017-07-24 15:03:19 +02:00
15d2f6dc4b ftl: cache unmapped translations 2017-07-24 13:24:48 +02:00
f68e26ac12 ftl: implement flags to keep track of state 2017-07-24 13:12:54 +02:00
8f061a808d ftl: cache last virtual address translation 2017-07-24 13:09:48 +02:00
22028021ca ftl: use write_page_desc() in ftl_trim() 2017-06-23 16:03:42 +02:00
ed5e3ef8ea ftl: fix typo 2017-06-16 14:41:50 +02:00
dfa497198f ftl: copy dev->log2_block_size to log2_erase_size in reset_map() 2017-06-16 14:41:12 +02:00
f647188666 ftl: fix bug where constant is not bitshifted 2017-05-29 17:42:21 +02:00
937521c909 flash: return size for flash_read() and flash_write() 2017-05-19 18:20:50 +02:00
d631e3012e ftl: change uint8_t to void in write_upage 2017-05-19 18:06:02 +02:00
27cf8bb587 ftl: use flash_is_erased() instead of is_page_erased() and simplify is_group_erased() 2017-05-19 17:19:16 +02:00
6f7fec2965 ftl: rename journal to map 2017-05-19 15:58:19 +02:00
770860d621 ftl: split up code 2017-05-19 15:52:40 +02:00