| 1762 | } |
| 1763 | |
| 1764 | static int cbfs_read(void) |
| 1765 | { |
| 1766 | if (!param.filename) { |
| 1767 | ERROR("You need to specify a valid output -f/--file.\n"); |
| 1768 | return 1; |
| 1769 | } |
| 1770 | if (!partitioned_file_is_partitioned(param.image_file)) { |
| 1771 | ERROR("This operation isn't valid on legacy images having CBFS master headers\n"); |
| 1772 | return 1; |
| 1773 | } |
| 1774 | |
| 1775 | return buffer_write_file(param.image_region, param.filename); |
| 1776 | } |
| 1777 | |
| 1778 | static int cbfs_copy(void) |
| 1779 | { |
nothing calls this directly
no test coverage detected