summaryrefslogtreecommitdiffstats
path: root/fastboot/fastboot.h
diff options
context:
space:
mode:
authorAnatol Pomazau <anatol@google.com>2011-12-15 17:50:18 -0800
committerAnatol Pomazau <anatol@google.com>2012-01-25 13:55:39 -0800
commit049dff53ef368bd84d0bddcb4c91f408774949c1 (patch)
treedff94c58b11dac6086d226fb358ab1594a961ff1 /fastboot/fastboot.h
parent46f86f11d446a650602057f8a07eba1f609d7fe9 (diff)
downloadsystem_core-049dff53ef368bd84d0bddcb4c91f408774949c1.zip
system_core-049dff53ef368bd84d0bddcb4c91f408774949c1.tar.gz
system_core-049dff53ef368bd84d0bddcb4c91f408774949c1.tar.bz2
Implement 'fastboot format' command
Some filesystems (e.g. ext4) require flushing an initial fs image, right after erasing it the partition is unusable. Doing erase,flush emptyfs is a little bit scaring so we have a separate command that performs it as atomic step: - get size of partition - create an empty filesystem image - erase the partition - flush empty fs to the partition This command applicable only for ext4 filesystem and checks the partition type before formatting it. Change-Id: I8529bc1dc64698f1f0d91312f7c0ab1a6e5d8b44
Diffstat (limited to 'fastboot/fastboot.h')
-rw-r--r--fastboot/fastboot.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fastboot/fastboot.h b/fastboot/fastboot.h
index 9e043fe..c2f97a2 100644
--- a/fastboot/fastboot.h
+++ b/fastboot/fastboot.h
@@ -43,6 +43,7 @@ char *fb_get_error(void);
/* engine.c - high level command queue engine */
void fb_queue_flash(const char *ptn, void *data, unsigned sz);;
void fb_queue_erase(const char *ptn);
+void fb_queue_format(const char *ptn);
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);