diff options
author | Dmitry Grinberg <dmitrygr@google.com> | 2014-03-11 18:28:15 -0700 |
---|---|---|
committer | JP Abgrall <jpa@google.com> | 2014-05-06 12:28:37 -0700 |
commit | e6f3e9bd2656fe132f829ed035fdea0cb111369d (patch) | |
tree | fc7388fdb90816ec5f6d506464394b5d879b2a9f /fastboot/fastboot.h | |
parent | 52dd7cc0bddbe6092f818827efd584466234d67b (diff) | |
download | system_core-e6f3e9bd2656fe132f829ed035fdea0cb111369d.zip system_core-e6f3e9bd2656fe132f829ed035fdea0cb111369d.tar.gz system_core-e6f3e9bd2656fe132f829ed035fdea0cb111369d.tar.bz2 |
fastboot: allow format on devices with small buffers
Formatting large partitions on devices with small transfer buffers did
not work before since format used a strange path through the code to
send data. It now uses the normal path. Also cleaned up a bit. FS
code now lives in a separate file and the custom path for format is
gone.
Change-Id: If4e01cabc2e250b7c02ca7ce8c268e51d49e1529
Diffstat (limited to 'fastboot/fastboot.h')
-rw-r--r-- | fastboot/fastboot.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fastboot/fastboot.h b/fastboot/fastboot.h index 976c397..c510a36 100644 --- a/fastboot/fastboot.h +++ b/fastboot/fastboot.h @@ -49,7 +49,7 @@ int fb_format_supported(usb_handle *usb, const char *partition); void fb_queue_flash(const char *ptn, void *data, unsigned sz); void fb_queue_flash_sparse(const char *ptn, struct sparse_file *s, unsigned sz); void fb_queue_erase(const char *ptn); -void fb_queue_format(const char *ptn, int skip_if_not_supported); +void fb_queue_format(const char *ptn, int skip_if_not_supported, unsigned int max_chunk_sz); void fb_queue_require(const char *prod, const char *var, int invert, unsigned nvalues, const char **value); void fb_queue_display(const char *var, const char *prettyname); |