Commit graph

56 commits

Author SHA1 Message Date
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
9f5afa977e make: ftl: add separate Makefile 2017-08-01 16:55:17 +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
37a25d7384 ftl: use default_flash_is_zero() to check if pages are erased 2017-07-27 16:54:07 +02:00
846ea90bdc ftl: initialise the offset in the map 2017-07-24 16:36:22 +02:00
e24012af82 ftl: enable sync-less writes 2017-07-24 15:40:36 +02:00
25774eaab5 ftl: sync dirty writes before reading or trimming 2017-07-24 15:26:22 +02:00
4ef4aa7036 ftl: implement flash_sync() 2017-07-24 15:07:24 +02:00
f7b11a8726 ftl: temporarily disable reading the cached va in trace_path() 2017-07-24 15:03:19 +02:00
6c7594acaa ftl: invalidate cached va during sync 2017-07-24 15:02:48 +02:00
018b0043a3 ftl: implement transactions to perform partial writes 2017-07-24 14:37:47 +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
652a90aab8 ftl: add newline for clarity 2017-07-18 12:59:43 +02:00
7826eccc36 ftl: restructure ftl_write() to use less memory by using flash_write0() and flash_copy() 2017-06-23 16:22:05 +02:00
22028021ca ftl: use write_page_desc() in ftl_trim() 2017-06-23 16:03:42 +02:00
c38413dc90 flash: change prototype of flash_copy() and use the default implementation in the sandbox 2017-06-16 15:42:08 +02:00
1ba4e77dd6 ftl: copy the page of the cousin instead of the page to trim in ftl_trim() 2017-06-16 15:38:08 +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
4292ef2f26 ftl: copy log2_page_size to dev->log2_block_size 2017-06-16 14:39:45 +02:00
8f680b9d5b ftl: remove unused variable 2017-06-14 14:13:57 +02:00
45736a5e9f ftl: simplify calculations in ftl_read()/ftl_write() and remove an out-dated check 2017-05-29 18:58:10 +02:00
f647188666 ftl: fix bug where constant is not bitshifted 2017-05-29 17:42:21 +02:00
7172423f05 ftl: compute length after determining the offset 2017-05-26 16:10:12 +02:00
631cc1e33a ftl: fix order of preliminary checks 2017-05-26 16:08:50 +02:00
acc18a5253 ftl: return length if no page was mapped 2017-05-26 16:08:26 +02:00
32f0ca0e1a flash: remove log2_page_size 2017-05-26 14:13:57 +02:00
e131d77cf5 ftl: use va for ftl_read()/ftl_write() and pages for ftl_trim()/ftl_is_mapped() 2017-05-19 18:37:20 +02:00
c684a57e24 ftl: add ftl_is_mapped() to check if a page is mapped 2017-05-19 18:28:44 +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
6a2c499d7a ftl: use byte-offset from VA in ftl_write() 2017-05-19 18:04:52 +02:00
563db297a3 ftl: use byte-offset from VA in ftl_read() 2017-05-19 17:53:17 +02:00
dafc3d7071 ftl: implement flash_release() 2017-05-19 17:27:55 +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
e65110f084 improve API for flash_erase() 2017-05-19 17:04:45 +02:00
b6c5d5bbda ftl: implemented ftl_mount() to seamlessly wrap flash devices 2017-05-19 16:21:11 +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
602ebb364d ftl: use void * instead of uint8_t * 2017-05-19 15:03:22 +02:00
e31a852225 ftl: add buffer length to ftl_read() 2017-05-19 14:14:53 +02:00
cd44b4866b ftl: remove ftl_find() 2017-05-19 14:09:14 +02:00