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/fs.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/fs.h')
-rw-r--r-- | fastboot/fs.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fastboot/fs.h b/fastboot/fs.h new file mode 100644 index 0000000..65b9555 --- /dev/null +++ b/fastboot/fs.h @@ -0,0 +1,12 @@ +#ifndef _FS_H_ +#define _FH_H_ + +#include <stdint.h> + +struct fs_generator; + +const struct fs_generator* fs_get_generator(const char* name); +int fs_generator_generate(const struct fs_generator* gen, int tmpFileNo, long long partSize); + +#endif + |