Commit graph

100 commits

Author SHA1 Message Date
0ee4779e5c mufs: clean up code for tree management 2017-07-27 17:34:55 +02:00
2a62bd1f15 mufs: properly free intermediate pages when empty in mufs_do_free_page() 2017-07-27 17:06:07 +02:00
fe1cd870c0 mufs: implement mufs_get_index() to select the index bits from the va at a specific depth 2017-07-27 16:45:45 +02:00
73788ae5e6 flash: consistently use char instead of uint8_t 2017-07-27 15:24:34 +02:00
952f2e63fb mufs: sync in mufs_format() 2017-07-24 16:11:41 +02:00
7125ddadf9 mufs: get proper virtual address in mufs_shrink_tree() 2017-07-24 15:38:23 +02:00
5164ded1fe mufs: reduce memory footprint of mufs_do_free_page() 2017-07-24 15:35:49 +02:00
070c36a361 mufs: sync writes 2017-07-24 15:23:19 +02:00
58c93eecf4 mufs: reduce memory footprint of mufs_shrink_tree() 2017-07-24 15:21:10 +02:00
0e9c19c836 mufs: fix syncing issue in write_dirent() 2017-06-16 16:25:58 +02:00
cbd395e137 mufs: optimise memory footprint of mufs_do_lookup() 2017-06-16 16:16:46 +02:00
807959eb29 mufs: optimise memory footprint of write_dirent() 2017-06-16 15:57:00 +02:00
0484f082ee mufs: optimise memory footprint of read_dirent() 2017-06-16 15:52:12 +02:00
555e28e229 mufs: optimise memory footprint of find_dirent_size() 2017-06-16 15:46:55 +02:00
d21b5addff mufs: include block.h in super.c 2017-06-16 15:40:12 +02:00
bc28781181 mufs: do not write back in mufs_next_free_block() 2017-06-16 15:37:31 +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
ae0e8a37d3 mufs: cast offsets to long for comparison in mufs_seek() 2017-06-14 14:13:42 +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
c2700bd31e mufs: release flash device if ownership not claimed 2017-06-14 13:39:11 +02:00
7b5187973a shell: mufs: add proper mounting and unmounting 2017-06-14 13:29:16 +02:00
13918141c7 mufs: fix Valgrind warnings in mufs_abspath() by using calloc() instead of malloc() 2017-06-14 13:05:54 +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
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
2cac788ba7 mufs: create file when opening a file for writing 2017-06-12 17:20:23 +02:00
639388588b mufs: set proper file size in remove_page() 2017-06-12 16:54:49 +02:00
45fe1e4b92 mufs: check if directory va does not exceed the file size in mufs_readdir() 2017-06-12 16:48:23 +02:00
ab599e7c8b mufs: locate directory entry properly in mufs_rmpath() 2017-06-12 16:45:17 +02:00
14a93ab881 mufs: expose struct mufs_dir internally 2017-06-12 16:44:53 +02:00
704cd24061 mufs: get parent directory in mufs_rmpath() to remove the directory entry from 2017-06-12 16:16:22 +02:00
6492a76d14 mufs: fix traversal issue in resolve_path() 2017-06-12 16:09:27 +02:00
8b780d57d9 mufs: implement mufs_rename() to move files and directories 2017-06-12 15:53:46 +02:00
65c1fc28d3 mufs: implement mufs_unlink() 2017-06-12 15:37:22 +02:00
d6fa387868 mufs: implement mufs_rmdir() 2017-06-12 15:35:15 +02:00
3b531e868b mufs: remove type argument from mufs_rmpath() 2017-06-12 15:32:44 +02:00
e837c07869 mufs: remove the page if there is only one entry left in mufs_rmpath() 2017-06-12 15:30:35 +02:00
17f4f90d64 mufs: fix issue in tree allocation 2017-06-12 14:32:48 +02:00
eb9b4853c0 mufs: implement mufs_rmpath() to remove file system nodes 2017-06-12 14:24:51 +02:00
1d52ca46a6 mufs: rework tree code to support mufs_map_page()/mufs_unmap_page() 2017-06-12 14:17:46 +02:00