History log of /system/extras/ext4_utils/Android.mk
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e8ed69493b7ab6237fb7114343789d3c213d2315 12-Jan-2017 Alex Deymo <deymo@google.com> Convert several libraries to soong.

This patch coverts libfec and its dependencies to soong. This also
updates the name of the libext2_uuid-host library removing the "-host"
suffix as that is also being converted to soong.

Also create a shared library for libfec given that it has quite a few
dependencies.

Bug: 34284069
Test: mmma system/extras; make checkbuild

Change-Id: Ib3ada6420bae32418a02ca92db664d0d24214e2f
/system/extras/ext4_utils/Android.mk
f417a8d230787bcf62cd259b1da3f4d93bebe3ee 11-Jan-2017 Alex Deymo <deymo@google.com> Remove "_host" and "_static" suffix from libsparse.

Bug: 34220783
Change-Id: I33b2ecafaebe46a45c176d5debe821ec1ecaa25b
/system/extras/ext4_utils/Android.mk
b611070c1476ecbaa15d74459c6fe9b0a9d129ac 11-Jan-2017 Alex Deymo <deymo@google.com> Remove "_static" and "_host" suffix from libext4_utils definitions.

Bug: 34220783
Change-Id: Ia8da0c96a0384826afd8b089101468ac388d0ca2
/system/extras/ext4_utils/Android.mk
6b947e3ce84ff428b432a1c0231da728660a1a46 02-Dec-2016 Adrien Schildknecht <adriens@google.com> ext4_utils: move ext2simg to upstream e2fsprogs

This binary is now part of e2fsprogs.

Test: m ext2simg
Change-Id: I6c30cc7d6c79770541c13c84449e35bbca8b5541
/system/extras/ext4_utils/Android.mk
3f6ea671d55b0f8ba9bab8826c817327d67ee9bb 16-Nov-2016 Adrien Schildknecht <adriens@google.com> ext4_utils: use mke2fs instead of make_ext4

Test: m -j32 && fastboot flashall (aosp_angler-userdebug)

Change-Id: Ic4f598fdf19c8d6fb44740999663ed4f166b0a5b
/system/extras/ext4_utils/Android.mk
77d7c39a5a41e6ab9ab7f5a123e9412f14b0ac6e 18-Oct-2016 Michael Schwartz <schwartzmi@google.com> Remove unused dependencies

Bug: 32208916
Test: Builds on bullhead_treble-userdebug

Change-Id: I0933d2289a534c5260ad1826d88007ec7e4e5f43
/system/extras/ext4_utils/Android.mk
018ef1be61e749d0fbe0f05179a4f0f9b858ae57 05-Oct-2016 Tao Bao <tbao@google.com> ext4_utils: Export headers for libext4_utils* libs.

So we can do "#include <ext4_utils/make_ext4fs.h>" without adding
"LOCAL_C_INCLUDES += system/extras/ext4_utils".

Also clean up the #include lines in system/extras/ext4_utils/.

Test: `m checkbuild` works.

Change-Id: I3c8b07c9b6f5996160e0cb6d9d069579b1609f60
/system/extras/ext4_utils/Android.mk
afb52975c3b60b32cf08a3ab270400defccd81f6 30-Sep-2016 Colin Cross <ccross@android.com> Revert "ext4_utils: -Werror"

This reverts commit f55303f4a4a4319e90e671b50a4dcdd131781f35.

Change-Id: I63b6c158536871534cfee9b3fbe416f121d7b75a
/system/extras/ext4_utils/Android.mk
f55303f4a4a4319e90e671b50a4dcdd131781f35 13-May-2016 Mark Salyzyn <salyzyn@google.com> ext4_utils: -Werror

Correct a few compiler warnings

Test: build success
Bug: 26552300
Bug: 31289077
Change-Id: I52e6143df465c02b94fe89c80b1712706da1ab7c
/system/extras/ext4_utils/Android.mk
aa8b3553d9c5b0f89d13df6412af0dd1e25e5a3b 08-Apr-2016 Mohamad Ayyash <mkayyash@google.com> Remove canned_fs_config from ext4_utils

It is now also used in mksquashfs so it was added to libcutils

BUG: 27467028
Change-Id: I81c87938d5b6b200a8ad817f0c64c5ca699f451c
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
/system/extras/ext4_utils/Android.mk
2eb7904ffb4c59e159fccdf47021f95756dc2f19 26-Feb-2016 Mohamad Ayyash <mkayyash@google.com> Introduce blk_alloc_to_base_fs utility

Converts regular block mapping files into the new base_fs file format
for generating incremental ext4 images

Internal Design Doc: go/incremental-ext4
BUG: 26839493
Change-Id: If8dbb49718226771495c044eb1a8403e99a971fb
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
/system/extras/ext4_utils/Android.mk
78efe41174950783e39782c71ff8382f851bb487 03-Feb-2016 Jeff Sharkey <jsharkey@android.com> Add methods to get and ensure encryption policy.

The ensure call will either assign an encryption policy, or verify
that an existing policy matches the expected value. Uses the new
logging library so that customers can pivot logs into whatever
location they want: vold into logcat and init into dmesg.

Also add new directories that will have user-specific encryption
policy set on them so we avoid setting the default policy.

Bug: 25796509
Change-Id: Ia535630092822c80cde0939d8e46e6b47d9be2d8
/system/extras/ext4_utils/Android.mk
59ffd6d9c7dd3ddaa036956d89c3e4d416769bf6 04-Feb-2016 Paul Lawrence <paullawrence@google.com> Remove unencrypted properties

Change-Id: I59596be7c7df9151f4966a5051f06bcb087345dd
/system/extras/ext4_utils/Android.mk
db21988ce9fbe73680bc306929cc29b3005b2e0f 22-Dec-2015 Colin Cross <ccross@android.com> libext4_utils: add dependency on libselinux

libext4_utils uses headers from libselinux, add a LOCAL_STATIC_LIBRARIES
dependency.

Change-Id: Ibce576b48a7f7b9a9d1a043c244d85717ce5f980
/system/extras/ext4_utils/Android.mk
d48a1c1ec64a0071b1f81cf9fa5d8b6d92a3b900 19-Aug-2015 Dan Willemsen <dwillemsen@google.com> Remove HOST_OS checks, whitelist windows module

This doesn't remove the HOST_OS checks later in the file, those can be
removed once LOCAL_MODULE_HOST_OS is enforced.

Bug: 23566667
Change-Id: I0032022b470bcc8d5546ed6f8dbd99e3d0cf3db5
/system/extras/ext4_utils/Android.mk
9bb2808702c761301b24e668c07ed66b064308e2 19-May-2015 Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org> Set -fno-strict-aliasing here so we can get rid of it globally

Add -fno-strict-aliasing to the compiler flags where it is actually
needed so we can get rid of the flag globally -- without it, compilers
can optimize better.

Change-Id: Ia574120ee231503ce364ee377506115fd41f0a48
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
/system/extras/ext4_utils/Android.mk
377cd1957172c19ee21baa3d6bda0840f1ce020d 29-Apr-2015 Paul Lawrence <paullawrence@google.com> Securely encrypt the master key

Move all key management into vold
Reuse vold's existing key management through the crypto footer
to manage the device wide keys.

Use ro.crypto.type flag to determine crypto type, which prevents
any issues when running in block encrypted mode, as well as speeding
up boot in block or no encryption.

This is one of four changes to enable this functionality:
https://android-review.googlesource.com/#/c/148586/
https://android-review.googlesource.com/#/c/148604/
https://android-review.googlesource.com/#/c/148606/
https://android-review.googlesource.com/#/c/148607/

Bug: 18151196

Change-Id: I7a4ef3f3a937c45ff18f17c9ad1398293a8630f3
/system/extras/ext4_utils/Android.mk
f965968e1912553939e7cf1afc9ff39d306ada54 07-Apr-2015 Jeff Sharkey <jsharkey@android.com> Add real UUID support to ext4_utils.

For some unknown reason, we've always been generating the same UUID
for every single ext4 partition that we formatted. Yikes.

Add a flag to request that a real UUID be generated when creating
filesystem.

(cherry-picked from 7538cc97e1695608123739d6ef8ff2ee1572aaec)

Bug: 19993667
Change-Id: I6f3f6aa373021cb8b6779e5354ac36436c4d98d3
/system/extras/ext4_utils/Android.mk
ea2ec8875c9b024613d3ec5270bca6247c06d6bd 28-Apr-2015 Paul Lawrence <paullawrence@google.com> Revert "Securely encrypt the master key"

This reverts commit af2359fdc4a45fcf482d1a316bae1fff226c425b.

Change-Id: Icd4d04adf5c0728357caa6eb225b9a08fd0ad552
/system/extras/ext4_utils/Android.mk
af2359fdc4a45fcf482d1a316bae1fff226c425b 31-Mar-2015 Paul Lawrence <paullawrence@google.com> Securely encrypt the master key

Move functionality from init into vold so we can use
vold to manage key encryption

This is one of four changes to enable this functionality:
https://android-review.googlesource.com/#/c/144586/
https://android-review.googlesource.com/#/c/144663/
https://android-review.googlesource.com/#/c/144672/
https://android-review.googlesource.com/#/c/144673/

Bug: 18151196
Change-Id: I4a1c79d27f0d225a9ce4ac21653279919f75c991
/system/extras/ext4_utils/Android.mk
34d15aaf2f8d8690d215996bd6e11d2f5c8b4e63 07-Apr-2015 Mark Salyzyn <salyzyn@google.com> make_ext4fs: use libcutils and libselinux shared libraries

- move libcutils and libselinux as shared now that they are
in DISTTOOL.
- liblog dependency is part of libcutils, and need not be
called out explicitly now. liblog is in DISTTOOL.
- libcutils fs_config has the right to add Android logging

Bug: 19908228
Change-Id: I85d6d0c1fd5cf22f7328fdfcbe9a8511a552857c
/system/extras/ext4_utils/Android.mk
e32674213dc5ad2375423e43b3f2419ead19f568 02-Apr-2015 Mark Salyzyn <salyzyn@google.com> Merge "ext4_utils: move fs_config to libcutils"
19cc2a5891fb3c74d7ad4e4458f57008d2a774b9 01-Apr-2015 Mark Salyzyn <salyzyn@google.com> ext4_utils: move fs_config to libcutils

Bug: 19908228
Change-Id: Ic868d3e71d2a166603f3f0618aca5ea69639bdaf
/system/extras/ext4_utils/Android.mk
61980269c14ae78a9ca893a56df67cf475cdfafd 16-Mar-2015 Paul Lawrence <paullawrence@google.com> ext4_utils: Abstracting ext4 encryption property system

Change-Id: Iddca42328e9249eb09eb68e6d5339a02cfebecd0
/system/extras/ext4_utils/Android.mk
92da49db65ffbe0bff1771ecef87ad49e94a0626 26-Feb-2015 Paul Lawrence <paullawrence@google.com> [HACK] Adding e4crypt support

This is a dirty hack requiring a lot of clean up.
Needed to allow other parts to make progress.

Add e4crypt functions to libext4_utils
Add e4crypt command line tool

Change-Id: Iac5ae75e7f39cccc87701faf1f590e44f5209c0e
/system/extras/ext4_utils/Android.mk
aad1accb587aa708012b329c784332dcc9991de6 16-Jun-2014 Doug Zongker <dougz@google.com> optionally use a canned fs_config when building ext4 fs

In order to accurately re-create old images after changes to
android_filesystem_config.h, we need make_ext4fs and mkuserimg.sh to
be able to take a file containing the desired
uid/gid/mode/capabilities for each path in the filesystem, and use
that instead of the fs_config function that is built in to the binary.

The target_files already contains this file, which is created at the
time of the original build by running the binary fs_config for each
path in the build.

Change-Id: I501dc9544de37a592c1e831b6bf785c086cb6912
/system/extras/ext4_utils/Android.mk
9a2b60b28d866b94b86c7ceb3a9004d28e20b483 23-Jan-2014 Colin Cross <ccross@android.com> ext4_utils: move superblock parsing to its own compilation unit

Move ext4_parse_sb to its own compilation unit so it can be used
from fs_mgr without pulling in all of libext4_utils' dependencies
when compiling with ld.bfd.

Change-Id: I185352ecea0e0d577b8cdddfd519f2826d631277
/system/extras/ext4_utils/Android.mk
56497f28bd20001dd5f931208e8d948cf2f81b2f 04-Feb-2013 Colin Cross <ccross@android.com> ext4_utils: mark uninitialized inode tables in block groups

Block groups that have no used inodes have their inode table left
uninitialized, unless -t is specified, in which case they are
explicitly zeroed. When they are uninitialized, writing a sparse
ext4 image over existing data can cause e2fsck to confuse the
uninitialized data for lost inodes.

Set the EXT4_BG_INODE_UNINIT flags on block groups that have no
used inodes. This flag requires the block group checksum feature
to be enabled, so also enable the checksum feature in the superblock
and compute the checksum for the block group.

Since zeroing the inode tables is now useless, remove the code for
it and deprecate the -t command line option.

Change-Id: I4927c1d866d051547cf0dadc8c8703ded0163925
/system/extras/ext4_utils/Android.mk
5da2f366f8714eafff0337c32f10c314488cfdef 21-Sep-2012 rpcraig <rpcraig@tycho.ncsc.mil> Add automatic file_contexts handle to make_ext4fs.

Normal make_ext4 use requires a -S option to
pass a correct file_contexts path for labeling.
This becomes impractical under certain conditions
when used on a target device. For instance, with
the creation of ext4 containers for asec images.
This patch will create a proper sehandle only
if the -S option is not used and only when
run on a target device.

Change-Id: I9bdc8659aae7037ccebbf4464500b79b4b2f56af
/system/extras/ext4_utils/Android.mk
723f1c75295ce812dc062a537856cd5a54277895 10-Oct-2012 Kenny Root <kroot@google.com> Remove HAVE_SELINUX guards

Change-Id: Ieda8d8c331e9fccc7dcda228852d408ffc94e98c
/system/extras/ext4_utils/Android.mk
c40049baae4bf58e201a1f8f8bb715c4eee2c45b 24-Jul-2012 Joe Onorato <joeo@google.com> Support for multiple modules with the same name is going away.

Change-Id: I4e94b8b9cc7c88e07e8a09abc26a3e7d495ac5be
/system/extras/ext4_utils/Android.mk
3f1eb9962d18db7ea23fdc5d3b0b52707fb53b06 22-Jul-2012 Joe Onorato <joeo@google.com> Support for multiple modules with the same name is going away.

Change-Id: Iae48d4890aa7266ca7b57b3b9a8712d2d33d4909
/system/extras/ext4_utils/Android.mk
983ce5738cee0bf78b87d6274fe1387129768302 18-Jul-2012 Nick Kralevich <nnk@google.com> Merge "Fix SELinux labeling for system.img"
4d070140c0306790d2c2278b43eea734186819eb 20-May-2012 Colin Cross <ccross@android.com> system/extras/ext4_utils: move libsparse to system/core

Delete libsparse from ext4_utils, move it to system/core/libsparse in
preparation for linking tools in system/core against it.

Change-Id: I3545c2e0ad7122f99bbc998ab0e85ca1e65d5add
/system/extras/ext4_utils/Android.mk
dc5abeee1e6fc4827ee0d5ece12aaed2dd56f4c7 24-Apr-2012 Colin Cross <ccross@android.com> Refactor sparse file support into libsparse

Minimal refactoring of output_file.c into libsparse in preparation
for completely separating libsparse from ext4_utils.

Moves output_file.c, backed_block.c, and parts of ext4_utils.c
into libsparse. The only changes to the remanining files in
ext4_utils are using the new sparse.h header, and moving the
wipe call out of output_file.c and into make_ext4fs.c.

Change-Id: I1f66f6c3e05230a350023c5b4ea4422f16a73c4b
/system/extras/ext4_utils/Android.mk
0b766cda9c192f999a4e420ec950b0ae9c14af01 11-Jul-2012 rpcraig <rpcraig@tycho.ncsc.mil> Fix SELinux labeling for system.img

The system partition isn't getting labeled during the build.
This patch corrects that.
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>

Change-Id: I2695c60232935da272ac194fb9ece016c84b4593
/system/extras/ext4_utils/Android.mk
78c43b51a4d052fda6648024c60eaf5bc67dfc5d 08-Apr-2012 Kenny Root <kroot@google.com> Fix SELinux building

A bad merge and some new features caused SELinux not to build on
top-of-tree master. Some changes the Makefile restore its ability to
build.

Change-Id: Id60b89538beff33f1d8b436b5b7854d3eaa00069
/system/extras/ext4_utils/Android.mk
2e5c52322d54d0f98d36b499fcaa31a0e84ca87c 31-Mar-2012 Kenny Root <kroot@google.com> resolved conflicts for merge of 8f9b41d9 to master

Change-Id: I9af02b9bba1176174540c849f905dece8ade54d8
b4eca4b24af9c80ebb2a7fa2ba539a48096b7576 13-Jan-2012 Stephen Smalley <sds@tycho.nsa.gov> Extend make_ext4fs to support setting SELinux security contexts in ext4 images.

Extend make_ext4fs with support for looking up the right security context from
the file_contexts configuration and setting it in the generated image. This is
similar to the existing support for looking up the UID/GID/mode via
android_filesystem_config.h and setting it, but via configuration rather than
defined in a header.

Change-Id: Ief9c44eeaaca4a44100a384b063f40b185469be3
/system/extras/ext4_utils/Android.mk
879d01e18825e09c1196cc5bdeb6cbfddd92571a 17-Feb-2012 Scott Anderson <saa@android.com> Merge "img2simg: Drop using endian.h"
c2cb533c3917dce44eb7e1b420b5f76c8f7e1d7b 17-Feb-2012 Scott Anderson <saa@android.com> img2simg: Drop using endian.h

All our hosts are currently little-endian, so drop using endian.h
in favor of being able to build and run on all hosts.

Change-Id: Iea86cf9387940448c9c6d356c7e16acc871d5467
Signed-off-by: Scott Anderson <saa@android.com>
/system/extras/ext4_utils/Android.mk
7e2590a9f7cadd7f717928425420a713a7aa795e 16-Feb-2012 Scott Anderson <saa@android.com> ext4_utils: simg2img: Add LOCAL_MODULE_TAGS in Android.mk

1) simg2img was being installed on the device. For the
BUILD_EXECUTABLE add an "optional" tag (instead of the implied
default of "user") so this does not happen.

2) In preparation of removing simg2img from user_tags.mk, add a
"debug" tag to the BUILD_HOST_EXECUTABLE so it will be put in the
host bin subdirectory for eng and userdebug builds.

Change-Id: Ib8407e366b8154772e3b78cabb09655851ce77de
Signed-off-by: Scott Anderson <saa@android.com>
/system/extras/ext4_utils/Android.mk
4605b3fb8a00fa37f617a8d0fe3a095d0503a845 04-Feb-2012 Raphael Moll <raphael@google.com> Adapt ext4_utils for windows.

This is not a full port of ext4_utils for windows.
Instead it merely enables use to use the library
for the 'create an empty fs image' functionality
as used by 'fastboot format'.

Change-Id: Ia1ffacd64e4233c4fbb369c4ac5927ccd72ac526
/system/extras/ext4_utils/Android.mk
3ee934fecdf8148ed5ea499932aedcca7530830c 16-Feb-2012 Scott Anderson <saa@android.com> Merge "Broke the build. Revert "ext4_utils: Fix LOCAL_MODULE_TAGS on img2simg and simg2img""
af9259c242de243bda0fb662ea0ab0f544ebb22a 16-Feb-2012 Scott Anderson <saa@android.com> Broke the build.
Revert "ext4_utils: Fix LOCAL_MODULE_TAGS on img2simg and simg2img"

This reverts commit eec2bb9fda7772d8927603a29ca0880b8b10a8ed
/system/extras/ext4_utils/Android.mk
89d1c622c464f2cc9843f9d36d4879fe16e99c86 16-Feb-2012 Scott Anderson <saa@android.com> Merge "ext4_utils: Fix LOCAL_MODULE_TAGS on img2simg and simg2img"
eec2bb9fda7772d8927603a29ca0880b8b10a8ed 16-Feb-2012 Scott Anderson <saa@android.com> ext4_utils: Fix LOCAL_MODULE_TAGS on img2simg and simg2img

There were a few problems with the LOCAL_MODULE_TAGS here:

1) simg2img was being installed on the device. Add an "optional"
tag for the BUILD_EXECUTABLE from the implied default of user so
this does not happen.

2) In preparation of removing simg2img from user_tags.mk, add a
"debug" tag to the BUILD_HOST_EXECUTABLE so it will be put in the
host bin subdirectory for eng and userdebug builds.

3) img2simg was not being put into the host bin subdirectory by
default. By changing the TAG from optional to debug, it is now
put there for eng and userdebug builds.

Change-Id: I3182781e78ffde2208644660d33b7eb068147561
Signed-off-by: Scott Anderson <saa@android.com>
/system/extras/ext4_utils/Android.mk
523775a11c5a41fb13ae26591dbd1c5ca7b62db3 09-Feb-2012 Scott Anderson <saa@android.com> Add simg_dump.py python script to dump sparse image information

Change-Id: I97c1aec040b46c36bde82f7726a6d35b28ac6733
Signed-off-by: Scott Anderson <saa@android.com>
/system/extras/ext4_utils/Android.mk
3abb047eff3af8cfbdbf27a9433a250507541523 07-Feb-2012 Scott Anderson <saa@android.com> Add img2simg tool that splits a large image into <n> sparse files

img2simg can take a large binary and chop it into multiple sparse
images. Each sparse image that is output has two chunks: a Don't
Care chunk to offset to where the data should be placed, and a
Raw chunk that actually contains the data to be placed there.
So, for example, if you have a 12 GB random file that you want to
place into userdata for testing e-MMC, you can run img2simg on it
to chop it into multiple sparse files and then "fastboot flash
userdata" on each of the sparse files.

Usage: img2simg [OPTIONS] <raw_image_file>
The <raw_image_file> will be split into as many sparse
files as needed. Each sparse file will contain a single
DONT CARE chunk to offset to the correct block and then
a single RAW chunk containing a portion of the data from
the raw image file. The sparse files will be named by
appending a number to the name of the raw image file.

OPTIONS (Defaults are enclosed by square brackets):
-s SUFFIX Format appended number with SUFFIX [%03d]
-B SIZE Use a block size of SIZE [4K]
-C SIZE Use a chunk size of SIZE [64M]
SIZE is a decimal integer that may optionally be
followed by a suffix that specifies a multiplier for
the integer:
c 1 byte (the default when omitted)
w 2 bytes
b 512 bytes
kB 1000 bytes
K 1024 bytes
MB 1000*1000 bytes
M 1024*1024 bytes
GB 1000*1000*1000 bytes
G 1024*1024*1024 bytes

Change-Id: I5593be1c195e04d83c99454e996763b841951dd7
Signed-off-by: Scott Anderson <saa@android.com>
/system/extras/ext4_utils/Android.mk
0e8e470eb59955cf3a4b3afa407b5fd1f7f39f10 08-Feb-2012 Scott Anderson <saa@android.com> Revert "Add img2simg tool that splits a large image into <n> sparse files"

This reverts commit dba7d246a20d14663c2e90b2fa9051894e3c7e1b

Broke the build:
system/extras/ext4_utils/img2simg.c:23:20: error: endian.h: No such file or directory
system/extras/ext4_utils/img2simg.c: In function ‘main’:
system/extras/ext4_utils/img2simg.c:262: warning: implicit declaration of function ‘htole32’
system/extras/ext4_utils/img2simg.c:263: warning: implicit declaration of function ‘htole16’
make: * [out/host/darwin-x86/obj/EXECUTABLES/img2simg_intermediates/img2simg.o] Error 1
/system/extras/ext4_utils/Android.mk
dba7d246a20d14663c2e90b2fa9051894e3c7e1b 07-Feb-2012 Scott Anderson <saa@android.com> Add img2simg tool that splits a large image into <n> sparse files

img2simg can take a large binary and chop it into multiple sparse
images. Each sparse image that is output has two chunks: a Don't
Care chunk to offset to where the data should be placed, and a
Raw chunk that actually contains the data to be placed there.
So, for example, if you have a 12 GB random file that you want to
place into userdata for testing e-MMC, you can run img2simg on it
to chop it into multiple sparse files and then "fastboot flash
userdata" on each of the sparse files.

Usage: img2simg [OPTIONS] <raw_image_file>
The <raw_image_file> will be split into as many sparse
files as needed. Each sparse file will contain a single
DONT CARE chunk to offset to the correct block and then
a single RAW chunk containing a portion of the data from
the raw image file. The sparse files will be named by
appending a number to the name of the raw image file.

OPTIONS (Defaults are enclosed by square brackets):
-s SUFFIX Format appended number with SUFFIX [%03d]
-B SIZE Use a block size of SIZE [4K]
-C SIZE Use a chunk size of SIZE [64M]
SIZE is a decimal integer that may optionally be
followed by a suffix that specifies a multiplier for
the integer:
c 1 byte (the default when omitted)
w 2 bytes
b 512 bytes
kB 1000 bytes
K 1024 bytes
MB 1000*1000 bytes
M 1024*1024 bytes
GB 1000*1000*1000 bytes
G 1024*1024*1024 bytes

Change-Id: I6d3ee9deef21dcbc6bc95e2c5b822154705b4e35
Signed-off-by: Scott Anderson <saa@android.com>
/system/extras/ext4_utils/Android.mk
920bfb72085c918bf466bbaf274533d69302a9b9 08-Nov-2011 Ying Wang <wangying@google.com> Remove libraries from static library module.

Static library module does not link any library.
There is no host library named libz.

Change-Id: I952b2bbda9206fa8c97f3a3c397dcc59a1a42f20
/system/extras/ext4_utils/Android.mk
671cd2188e2f224aaeac4955785199f228235719 10-Jun-2011 Ken Sumrall <ksumrall@android.com> ext4fixup tool to fix wonky filesystems made by old version of make_ext4fs

The filesystems made by make_ext4fs for the Gingerbread and initial Honeycomb
releases did not round up the number of inodes/block_group to use all the
space available. This worked, but newer kernels have additional code that
refuses to write to these filesystems. There is a kernel patch available
to fix the problem in the kernel, but this tool was also written to fixup
the filesystems to be compliant with the new kernels.

Change-Id: I317b02ee2132ce6a0daeb4d1b40ad5ef57a0fb32
/system/extras/ext4_utils/Android.mk
337847a149d956ed6d5990f84006f7340475f715 03-Jun-2011 Ken Sumrall <ksumrall@android.com> Move the setup_fs program from device/samsung/crespo to ext4_utils.

Prime also uses this, so it's no longer crespo specfic.

Change-Id: Idd35ee85599717a06902f696a73e5a4bd6522ac6
/system/extras/ext4_utils/Android.mk
c72ab98be7288d86980797b4f6295d73de5ca56f 14-Mar-2011 Iliyan Malchev <malchev@google.com> system/extras: remove LOCAL_PRELINK_MODULE

Change-Id: Iafd936bcb30e3fcc18c522a701d567dd744f2fa3
Signed-off-by: Iliyan Malchev <malchev@google.com>
/system/extras/ext4_utils/Android.mk
c2470654d4b4db09a7052fc5fa108ac21f1b1948 27-Jan-2011 Colin Cross <ccross@android.com> ext4_utils: Add support for wipe option, and wipe by default in recovery

Adds a -w option to make_ext4fs, which will attempt to use the
BLKSECDISCARD ioctl to erase the partition in order to avoid
leaving old data where it could be recovered, and to improve
wear levelling after a reformat.

Also causes factory reset through recovery to do a wipe.

Change-Id: Ibe34bbd84552e526be6bd041024a950806aca6b4
/system/extras/ext4_utils/Android.mk
106235b5f4bace8051e4bbb9e40d198c9e066f44 25-Dec-2010 Colin Cross <ccross@android.com> ext4_utils: Build simg2img for target

Change-Id: I406674de131460394ae8ed1594c186398e28cf9d
/system/extras/ext4_utils/Android.mk
a7ed433f2dc0116627a93b18fbb260f0665ca0cb 23-Dec-2010 Colin Cross <ccross@android.com> ext4_utils: Add ext2simg

Change-Id: I6c0d71d737be588d03018efdaed378349caa4f7a
/system/extras/ext4_utils/Android.mk
5a6181798de5c2d882c79b27406c330a6fa7da3e 17-Aug-2010 Ken Sumrall <ksumrall@android.com> Add support for IEEE 802.c stylc CRC32 computation to the sparse image tools

Add support for computing the CRC32 of the data when we make a sparse image,
and storing that CRC in the header. Also update the simg2img tool that reads
sparse images to compute the CRC32 as it writes the image, and check to make
sure it matches what's in the header.

Change-Id: Iadea3a760f91fa9b1efd22a3580dd1943b1ff52e
/system/extras/ext4_utils/Android.mk
75249edab0b22ea9aae9c7278b9f2c196c7d25d4 14-Aug-2010 Ken Sumrall <ksumrall@android.com> Add support for sparse ext4 image creation.

This adds the -s option to the make_ext4fs tool, which now creates
"sparse" filesystem images, which is very useful for the large 32 Gbyte
filesystems we are now building.
This check-in also fixes make_ext4fs to properly create filesystems
larger thatn 4 Gbytes on 64-bit Linux, 32-bit android and Macs.

Change-Id: Ie5838492fcf944f5c875481693c0dbd7013deae4
/system/extras/ext4_utils/Android.mk
3c977822a4f3023d2717130caca74d0318433f4a 03-Aug-2010 Colin Cross <ccross@android.com> Add mkuserimg.sh script for the build system

Change-Id: I74b41e5d783646b51203423a7deabbdb28b32b7b
/system/extras/ext4_utils/Android.mk
263eefd9fb9608432636c903423e43848e69f39d 30-Jun-2010 Doug Zongker <dougz@android.com> add make_ext4fs to the libext4_utils

Move the bulk of make_ext4fs into libext4_utils, leaving a main() that
does only option parsing. Add reset functionality so that
make_ext4fs() can be called multiple times within a process.

Change-Id: Ia09a2385eab32bf3ca9eb9257c4f9df2c85e55be
/system/extras/ext4_utils/Android.mk
9b93cf45edfdd7f443fa2eedc4bb97b9b88504bf 29-Jun-2010 Colin Cross <ccross@android.com> Add static libext4_utils

Change-Id: Ic3493fc8d35ee81c9f4c0d471d900a6680997b65
/system/extras/ext4_utils/Android.mk
881cca2f88ddcce86483b3ba95546b5641de8c0e 21-Jun-2010 Colin Cross <ccross@android.com> Split out libext4_utils

Change-Id: I12aa52b75607379add2669fddba4cd7dc2bb527f
/system/extras/ext4_utils/Android.mk
7a8bee7653c393d8da0e28668cb51d3ccab793e8 20-Jun-2010 Colin Cross <ccross@android.com> Add support for writing a gzip compressed image

Change-Id: Ica2ff90060f6a4ced2c671084205b58eede66cdf
/system/extras/ext4_utils/Android.mk
ec0a2e83dc66d67addeb90e83144187691852a3e 11-Jun-2010 Colin Cross <ccross@android.com> Initial commit of ext4_utils

Change-Id: I911d5b7fd7170ec81d544850717d8e69976e272b
/system/extras/ext4_utils/Android.mk