Commit graph

27 commits

Author SHA1 Message Date
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
24ab1dd9b7 ftl: trim last sector by writing an empty page descriptor 2017-05-18 15:01:39 +02:00
1c396c407a ftl: replace erase_block() with a direct call to flash_erase() 2017-05-18 14:00:36 +02:00
b0c53116d6 ftl: fix off by one in garbage collection code 2017-05-15 18:02:25 +02:00
4b651b19f1 ftl: add ftl_get_size(), allow trimming final sector, recover tail and size 2017-05-15 17:48:28 +02:00
da30898794 ftl: more comments 2017-05-15 16:45:40 +02:00
2b5225ef98 ftl: initial implementation of the Flash Translation Layer 2017-05-15 16:33:11 +02:00