diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ext4fs.h | 12 | ||||
-rw-r--r-- | include/ext_common.h | 2 |
2 files changed, 14 insertions, 0 deletions
diff --git a/include/ext4fs.h b/include/ext4fs.h index 58a6a1d..ab2983c 100644 --- a/include/ext4fs.h +++ b/include/ext4fs.h @@ -117,6 +117,18 @@ extern block_dev_desc_t *ext4_dev_desc; extern struct ext2_data *ext4fs_root; extern struct ext2fs_node *ext4fs_file; +#if defined(CONFIG_CMD_EXT4_WRITE) +extern struct ext2_inode *g_parent_inode; +extern int gd_index; +extern int gindex; + +int ext4fs_init(void); +void ext4fs_deinit(void); +int ext4fs_filename_check(char *filename); +int ext4fs_write(const char *fname, unsigned char *buffer, + unsigned long sizebytes); +#endif + struct ext_filesystem *get_fs(void); int init_fs(block_dev_desc_t *dev_desc); void deinit_fs(block_dev_desc_t *dev_desc); diff --git a/include/ext_common.h b/include/ext_common.h index c90d95b..9b97522 100644 --- a/include/ext_common.h +++ b/include/ext_common.h @@ -191,6 +191,8 @@ int do_ext2load(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]); int do_ext4_load(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]); int do_ext4_ls(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]); +int do_ext4_write(cmd_tbl_t *cmdtp, int flag, int argc, + char *const argv[]); int do_ext_load(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]); int do_ext_ls(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]); |