Commit graph

367 commits

Author SHA1 Message Date
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
bcf844aab4 mufs: properly format block allocation bitmap 2017-06-16 14:21:04 +02:00
3c35521979 mufs: reduce memory footprint in block allocation 2017-06-16 14:20:43 +02:00
a22b59b2a8 macros: add mask() as a macro to calculate the bit mask 2017-06-16 14:19:47 +02:00
fa49f634e4 flash: spi: perform both flash_read() and flash_write() in chunks of 32 bytes 2017-06-14 16:21:22 +02:00
7ab3a84fc4 spi: flash: use default_is_erased() to check if a block is erased 2017-06-14 16:19:36 +02:00
68593c2e6f flash: check if a block is erased in chunks of 32 bytes 2017-06-14 16:19:02 +02:00
f20e7128eb spi: flash: wait for operations to complete 2017-06-14 15:13:34 +02:00
5bafd2ac8f spi: flash: set log2_block_size 2017-06-14 14:59:07 +02:00
d53276e407 spi: flash: the JEDEC ID should be at most three bytes in length 2017-06-14 14:38:03 +02:00
85a3f84d61 spi: properly exchange bytes by sending and reading each byte within a SPI transaction 2017-06-14 14:37:22 +02:00
e7ad03608a spi: flash: don't print the JEDEC ID any longer 2017-06-14 14:37:04 +02:00
440c598d16 spi: flash: properly copy the JEDEC ID from the buffer 2017-06-14 14:36:36 +02:00
460fc8f7a5 spi: flash: map get_capacity to spi_flash_get_size() 2017-06-14 14:36:19 +02:00
154c33950a spi: get rid of the separate calls to spi_set_cs_level() 2017-06-14 14:27:31 +02:00
60d316711f spi: clean up the code in order to reduce the latency 2017-06-14 14:26:11 +02:00
f0de762d61 shell: mufs: use PRIu32 to print the size for proper portability 2017-06-14 14:14:32 +02:00
316e3a13d2 shell: remove deprecated print_size() function 2017-06-14 14:14:14 +02:00
8f680b9d5b ftl: remove unused variable 2017-06-14 14:13:57 +02:00
ae0e8a37d3 mufs: cast offsets to long for comparison in mufs_seek() 2017-06-14 14:13:42 +02:00
e20e9e13e0 spi: flash: update code 2017-06-14 14:13:23 +02:00
3649151a9f mufs: properly free the tree object in mufs_rename() 2017-06-14 13:52:34 +02:00
7be03f4a60 mufs: delete the tree object of a file in mufs_close() 2017-06-14 13:49:49 +02:00
a8040ac525 mufs: properly free the allocated path in mufs_mkpath() 2017-06-14 13:47:44 +02:00
27522b3c04 shell: mufs: claim ownership of flash device in mufs unmount 2017-06-14 13:40:22 +02:00
c2700bd31e mufs: release flash device if ownership not claimed 2017-06-14 13:39:11 +02:00
84468fd761 shell: mufs: add unmount command 2017-06-14 13:37:08 +02:00
7ae378ddba shell: flash: just call do_flash_release() in flash_probe() to avoid code duplication 2017-06-14 13:30:02 +02:00
7b5187973a shell: mufs: add proper mounting and unmounting 2017-06-14 13:29:16 +02:00
92fc0e0ff1 shell: free the key in cmd_exec() 2017-06-14 13:21:49 +02:00
a5e783b6bb shell: add functionality to exit 2017-06-14 13:20:28 +02:00
d709c44fa4 shell: flash: add command to release the current flash device 2017-06-14 13:16:36 +02:00
2bae987d27 shell: ftl: change mount command to probe and probe a flash device with FTL enabled 2017-06-14 13:14:58 +02:00
b55fea5379 shell: flash: display capacity and usage 2017-06-14 13:14:34 +02:00
58ae4bb2ea shell: ftl: remove ftl test command 2017-06-14 13:08:19 +02:00
13918141c7 mufs: fix Valgrind warnings in mufs_abspath() by using calloc() instead of malloc() 2017-06-14 13:05:54 +02:00
842ee06ee1 make: enable debugging symbols on host 2017-06-14 13:05:27 +02:00
59a71a4608 mufs: return tree as an argument in resolve_path() and free tree objects where necessary 2017-06-14 12:47:25 +02:00
4ed40e75c6 mufs: implement mufs_del_tree() to safely free tree objects from memory 2017-06-14 12:22:03 +02:00
07cd243603 mufs: extend tree in mufs_tree_write() rather than mufs_do_write() 2017-06-14 12:18:44 +02:00
08dda999cc mufs: simplify and clean up mufs_rename() 2017-06-14 12:18:25 +02:00
a45be58d26 mufs: add subtree argument to mkpath() to create a path for an existing tree object 2017-06-14 12:18:07 +02:00
8921af25b3 mufs: fix mufs_free_page() and mufs_unmap_page() to properly update the root pointer 2017-06-14 06:20:44 +02:00
f2d4d60c01 mufs: add find_dirent_size() to determine how many bytes are used within a directory bin 2017-06-14 06:20:11 +02:00
7107daa4b5 mufs: flash_erase() operates on blocks rather than bytes 2017-06-14 06:18:02 +02:00
286c5ebefe shell: mufs: add utilities to append, cat, rm, mv and stat files 2017-06-12 17:31:09 +02:00
ab233bfd33 mufs: properly sync file size and check file size in mufs_write() and mufs_read() respectively 2017-06-12 17:30:12 +02:00
496b2182e3 mufs: do not check for empty path in mufs_mkpath() 2017-06-12 17:22:50 +02:00