diff options
author | Colin Cross <ccross@android.com> | 2013-01-23 15:41:08 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2013-01-23 15:43:41 -0800 |
commit | 2aaf5e84f004739858f5454e42cc88fd92e4f779 (patch) | |
tree | c0980a114c0d42e1392377f4977d6105e816f236 /fastboot | |
parent | 98d0789772b94b9b0c2aecfab74dc1a9283a91b1 (diff) | |
download | system_core-2aaf5e84f004739858f5454e42cc88fd92e4f779.zip system_core-2aaf5e84f004739858f5454e42cc88fd92e4f779.tar.gz system_core-2aaf5e84f004739858f5454e42cc88fd92e4f779.tar.bz2 |
fastboot: use better exported api from libext4_utils
Switch fastboot to use an exported api from libext4_utils that
will change less often, and remove some of the implementation
details from fastboot.
Change-Id: I85a10c8f58abe8093d0c781e1a0e100c348ef0d9
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 7a55260..6c636cd 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; |