diff options
| author | Colin Cross <ccross@android.com> | 2013-01-23 20:52:29 -0800 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2013-01-23 20:52:29 -0800 |
| commit | c86396eba20e550fe570a28d7cf5d2be8ac7efae (patch) | |
| tree | aae59187ea4ba237e289a802f7bbbb72efe66940 /fastboot | |
| parent | 4db7df71da5641dfa6c89543b9843dca1999d78e (diff) | |
| parent | 5fc4fdc6a06cfa151d29f751d9d9beb8cb781a6a (diff) | |
| download | system_core-c86396eba20e550fe570a28d7cf5d2be8ac7efae.tar.gz system_core-c86396eba20e550fe570a28d7cf5d2be8ac7efae.tar.bz2 system_core-c86396eba20e550fe570a28d7cf5d2be8ac7efae.zip | |
am 5fc4fdc6: am 2447afdb: Merge "fastboot: use better exported api from libext4_utils"
# Via Android Git Automerger (1) and others
* commit '5fc4fdc6a06cfa151d29f751d9d9beb8cb781a6a':
fastboot: use better exported api from libext4_utils
Diffstat (limited to 'fastboot')
| -rw-r--r-- | fastboot/engine.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/fastboot/engine.c b/fastboot/engine.c index 7a5526033..6c636cd73 100644 --- a/fastboot/engine.c +++ b/fastboot/engine.c @@ -45,8 +45,6 @@ #include <sys/mman.h> #endif -extern struct fs_info info; - #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) double now() @@ -302,10 +300,7 @@ void generate_ext4_image(struct image_data *image) #else fd = fileno(tmpfile()); #endif - /* reset ext4fs info so we can be called multiple times */ - reset_ext4fs_info(); - info.len = image->partition_size; - make_ext4fs_internal(fd, NULL, NULL, NULL, 0, 1, 0, 0, 0, NULL); + make_ext4fs_sparse_fd(fd, image->partition_size, NULL, NULL); fstat(fd, &st); image->image_size = st.st_size; |
