Commit graph

306 commits

Author SHA1 Message Date
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
27a15b3fb7 mufs: expose MUFS_FILE and MUFS_DIR constants 2017-06-12 13:51:27 +02:00
beb5f64c12 mufs: implement mufs_stat() 2017-06-12 13:50:05 +02:00
26b0ccb405 mufs: optionally record the type and file_size in resolve_path() 2017-06-12 13:48:43 +02:00
d9e11a083b mufs: only claim ownership of the tree object as the final step in resolve_path() 2017-06-12 13:42:16 +02:00
e3194229a5 mufs: free tree object if owned by struct mufs_dir in mufs_closedir() 2017-06-12 13:40:37 +02:00
9f05686a1f mufs: clean up code in resolve_path() 2017-06-12 13:39:31 +02:00
52b382b8b0 mufs: rename mufs_opendirent() to open_dirent() 2017-06-12 13:32:42 +02:00
71fb90a602 mufs: fix typo in read_dirent() 2017-06-12 13:26:52 +02:00
bd5120f8d0 mufs: use a buffer to operate on data in-place to reduce the amount of I/O in read_dirent()/write_dirent() 2017-06-12 13:15:28 +02:00
a20c1a8ed4 mufs: implement mufs_seek() to seek and tell the position within a file 2017-06-12 13:04:46 +02:00
9ef95baac3 mufs: implement mufs_sync_tree() to sync tree objects to disk 2017-06-12 12:59:01 +02:00
2c1079d0f4 mufs: implement modes for read, write and append in mufs_open() 2017-06-12 12:53:20 +02:00
ffc8669736 mufs: allow empty path in resolve_path() 2017-06-12 10:55:39 +02:00
84c45ee64d mufs: fix va to tree object in super block 2017-06-12 03:25:02 +02:00
92a531b49f mufs: split path properly in mufs_mkpath() 2017-06-11 19:44:53 +02:00
a65cdbfedf mufs: generalise mufs_create() and mufs_mkdir() into mufs_mkpath() 2017-06-11 19:27:53 +02:00
1c736c3324 mufs: add support for reading and writing files 2017-06-11 17:42:32 +02:00
845aba61ed mufs: rename mufs_read()/mufs_write() to mufs_tree_read()/mufs_tree_write() and expose functions 2017-06-11 17:34:35 +02:00
073c7f34be mufs: expose mufs_abspath() 2017-06-11 16:41:48 +02:00
11dd182ee7 mufs: rename mufs_opendir2() to mufs_opendirent() 2017-06-11 16:37:56 +02:00
58f6e87854 mufs: clean up calculation of the va of a tree object in read_dirent() 2017-06-11 16:36:08 +02:00
93c0466c90 mufs: simplify super block by embedding struct mufs_dtree instead of struct mufs_dentry 2017-06-11 16:32:12 +02:00
89ec3a94c0 mufs: embed struct mufs_dtree in struct mufs_dentry and clean up code 2017-06-11 16:31:43 +02:00
0bc9c6fc7a mufs: add mufs_abspath() to sanitise paths 2017-06-11 16:26:48 +02:00
d287d7616a mufs: fix an issue when determining the va of a tree object 2017-06-09 17:13:51 +02:00
3b25180038 mufs: properly determine the va of a tree object 2017-06-09 16:55:32 +02:00
f1e6f8f278 mufs: update path resolution code in mufs_mkdir() 2017-06-09 16:36:11 +02:00
0e9474d377 mufs: add support for path resolution 2017-06-09 16:29:37 +02:00
e18107d2d5 mufs: add support for directories 2017-06-09 14:38:31 +02:00
99e2229bbb mufs: clean up code by embedding struct mufs into struct mufs_tree 2017-06-09 13:35:37 +02:00
7212269675 mufs: write tree updates to disk 2017-06-09 13:18:09 +02:00
250c9bf200 mufs: do not memset during mufs_write() 2017-05-29 19:16:17 +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
849fc17eb0 mufs: keep track of read/written bytes in mufs_read()/mufs_write() 2017-05-29 18:56:34 +02:00
abe656c640 mufs: allocate a block for the root, if no root has been allocated in mufs_alloc_page() 2017-05-29 18:56:14 +02:00
55ce3b8798 mufs: calculate proper byte offsets in mufs_read()/mufs_write() 2017-05-29 18:55:37 +02:00
8f74da799e mufs: set root after extending a file tree 2017-05-29 18:54:06 +02:00
3b601ea588 mufs: only manage blocks in data area 2017-05-29 18:53:29 +02:00
847241bbb8 flash: fix default_flash_is_erased() to use a byte-offset address internally 2017-05-29 18:52:20 +02:00
f647188666 ftl: fix bug where constant is not bitshifted 2017-05-29 17:42:21 +02:00
bf677b7655 macros: add align_up() 2017-05-29 16:39:44 +02:00
a7d71e84cf mufs: add mufs_write() to write data using a file tree 2017-05-29 15:27:43 +02:00
233d991328 mufs: add mufs_read() to read data using a file tree 2017-05-29 15:24:59 +02:00
9480a91ecc mufs: calculate log2_nentries during mount 2017-05-29 15:07:11 +02:00
b634e3c715 mufs: read and write file size during mount and format 2017-05-29 15:02:48 +02:00