diff options
author | Rob Herring | 2012-08-23 11:31:46 +0000 |
---|---|---|
committer | Tom Rini | 2012-09-25 14:46:55 -0700 |
commit | 81180819b842602f29f325298ee3e522beda3e0a (patch) | |
tree | 14c47ee7042a0e8b28f50c695d8b386f16cf6144 /include/ext4fs.h | |
parent | 945010629641b00cca95d1fed4f63009a2b4a113 (diff) |
cmd_extX: use common get_device_and_partition function
Convert ext2/4 load, ls, and write functions to use common device and
partition parsing function. With the common function "dev:part" can come
from the environment and a '-' can be used in that case.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Diffstat (limited to 'include/ext4fs.h')
-rw-r--r-- | include/ext4fs.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/ext4fs.h b/include/ext4fs.h index 6ad008c0dad..b6eedde3180 100644 --- a/include/ext4fs.h +++ b/include/ext4fs.h @@ -113,7 +113,6 @@ struct ext_filesystem { block_dev_desc_t *dev_desc; }; -extern block_dev_desc_t *ext4_dev_desc; extern struct ext2_data *ext4fs_root; extern struct ext2fs_node *ext4fs_file; @@ -137,6 +136,6 @@ void ext4fs_close(void); int ext4fs_ls(const char *dirname); void ext4fs_free_node(struct ext2fs_node *node, struct ext2fs_node *currroot); int ext4fs_devread(int sector, int byte_offset, int byte_len, char *buf); -int ext4fs_set_blk_dev(block_dev_desc_t *rbdd, int part); +void ext4fs_set_blk_dev(block_dev_desc_t *rbdd, disk_partition_t *info); long int read_allocated_block(struct ext2_inode *inode, int fileblock); #endif |