History log of /system/extras/ext4_utils/mkuserimg.sh
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
6a6c37f22fc62cf6a2fb5cc65ddcc887a5d96c86 20-Jan-2017 Connor O'Brien <connoro@google.com> Set stripe_width and stride params in make_ext4fs

If available, make_ext4fs will use flash erase & logical block
sizes to tune stride and stripe_width.

Test: Build userdata w/ make_ext4fs, flash, check stride & stripe values
Bug: 33243520
Change-Id: I54f95d822cc1ccc0ebb5edec023560cd9e30e259
Signed-off-by: Connor O'Brien <connoro@google.com>
/system/extras/ext4_utils/mkuserimg.sh
da053dde9a985f70244949eb96e21eb62fa6cdd0 20-Oct-2016 Patrick Tjin <pattjin@google.com> make_ext4fs: add option to specify the number of inodes

Add option to specify the number of inodes to create when
making the filesystem. Read-only partitions don't have
a need for extra inodes, a lot of space is wasted by these
inodes.

Bug: 32246383
Test: make vendor partition with new options
Change-Id: I7063972ec4f4e617d28d2e029ad6a9f8e94add73
(cherry picked from commit 15c434682ac78262d2dad9730805eab52b748cdf)
/system/extras/ext4_utils/mkuserimg.sh
9579198cd7d5b88b3508f1b00ddd77bd8da60682 20-Feb-2016 Mohamad Ayyash <mkayyash@google.com> Redesign make_ext4fs to incrementally generate ext4 images

Allows passing a base fs mapping file through -d which preserves the
location of those mapping in existing files

Internal Design Doc: go/incremental-ext4
BUG: 26839493
Change-Id: I05e296693429d39466d257d1d0a3daf00510dc26
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
/system/extras/ext4_utils/mkuserimg.sh
18785a86a30135ac65b88db9886bfc22d6608849 19-Feb-2016 Mohamad Ayyash <mkayyash@google.com> Revert "Redesign make_ext4fs to incrementally generate ext4 images"

This reverts commit 3d960843a2260a98c8df5cc39ca0dbf3d675f1a2.

Change-Id: I0fb7d65f094feb4013924685270fc847693b6889
/system/extras/ext4_utils/mkuserimg.sh
3d960843a2260a98c8df5cc39ca0dbf3d675f1a2 13-Feb-2016 Mohamad Ayyash <mkayyash@google.com> Redesign make_ext4fs to incrementally generate ext4 images

Allows passing a blk mapping file through -Z which preserves the
location of those mapping in existing files

Internal Design Doc: go/incremental-ext4
BUG: 26839493
Change-Id: I447873bf65ae66dab9923e5a11c497f0722750df
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
/system/extras/ext4_utils/mkuserimg.sh
b89e81dcb9bfa707912d9e370949b250367b0998 10-Jul-2015 Thierry Strudel <tstrudel@google.com> fs_config: align with new explicit fs_config target_out parameter

Bug: 21989305
Bug: 22048934
Change-Id: I82c16c70a776e13b3365672b2820ee965525de9a
Signed-off-by: Thierry Strudel <tstrudel@google.com>
/system/extras/ext4_utils/mkuserimg.sh
b4d460b11db6c16f921b0badae29ec684f079d15 05-Jan-2015 David 'Digit' Turner <digit@google.com> resolved conflicts for merge of 3701548f to lmp-mr1-dev-plus-aosp

Change-Id: I186fcab7c0d55c1cb60a56429792601f6ae6f2e0
b23b2c02545205e71cb43114a2836bed7d09ff72 17-Dec-2014 Christoffer Dall <christoffer.dall@linaro.org> ext4_utils: Support -L LABEL option on mkuserimg

When creating Android images it is practical to be able to specify a
filesystem label on the image files, which can be used to identify
images for the right mount point.

Change-Id: If0cefab3bb8ee27d2da15741ea709f1583ebb2e0
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
/system/extras/ext4_utils/mkuserimg.sh
1ec61e7ac5fd7553b143231e8d650ef4ba432344 19-Nov-2014 Ying Wang <wangying@google.com> Support [-j <journal_size>] in mkuserimg.sh

Bug: 18430740
Change-Id: Ia76cd4ef1b35c48c60c4922d7d28b21978d56159
/system/extras/ext4_utils/mkuserimg.sh
bec598e982301bf2714d37b14e312c9845c7cc0c 12-Aug-2014 Doug Zongker <dougz@google.com> add option to make_ext4fs to record blocks for each file

Add the -B option to make_ext4fs, which causes it to record the block
ranges used for each (regular) file in the image. We can use this
information to construct more efficient block-based incremental OTAs.

Bug: 16984795
Change-Id: I2a5325bb89948f63c76e93fdfa84c51f9b050104
/system/extras/ext4_utils/mkuserimg.sh
1402741d06399b597ed2fa83873dfe37e493abbb 17-Jun-2014 Doug Zongker <dougz@google.com> reduce mkuserimg.sh chattiness

Also improve the log message from the -C option to make_ext4fs.

Change-Id: I22ee4fd51c29995b2e772dcd929e1916eef22aeb
/system/extras/ext4_utils/mkuserimg.sh
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/mkuserimg.sh
9526680de97e2bc963a70d1fabffe165a688bb1e 06-Dec-2013 Doug Zongker <dougz@android.com> allow fixing timestamps when building ext4 filesystem

When building an image, make_ext4fs currently sets the timestamps in
the image to the timestamps of the source files. Allow this time to
be overridden with a fixed value provided on the command line, to make
it easier to reproduce bit-identical images from a target_files zip.

Change-Id: I52ddab4575a334ee52404f4d5d1c61b55513c618
/system/extras/ext4_utils/mkuserimg.sh
a468c4ea956e091907cde83f1db9002bce97791e 19-Nov-2012 Ying Wang <wangying@google.com> Make SIZE a mandatory parameter.

Commit b4eca4b24af9c80ebb2a7fa2ba539a48096b7576 introduced a new
optional parameter FILE_CONTEXTS.
But the script can accept only 1 optional parameter as the last one.
Otherwise FILE_CONTEXTS may be taken as SIZE.

Change-Id: I1a701e191769f3936cfe6557ea3a20e1691dc859
/system/extras/ext4_utils/mkuserimg.sh
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/mkuserimg.sh
c22117cb003f7a00071bbbaa3bbbf6e530a54b9a 18-Nov-2010 Ying Wang <wangying@google.com> Optional "-s" to enable sparse ext4 image.

Change-Id: Ib4f8bf9bf54607eacc01dd11f92def640ff32b5c
/system/extras/ext4_utils/mkuserimg.sh
5c11d911dc8923d735e34eae4ec80b39c108ab9d 29-Sep-2010 Ying Wang <wangying@google.com> resolved conflicts for merge of 8bdbbe2d to master

Change-Id: I347c58f62c4d9b6bcfa6745a47d5dd96c60661eb
8bdbbe2de23a8a8fc26b7f3a4b7dfdbe1112ac9f 28-Sep-2010 Ying Wang <wangying@google.com> Rename parameter LABEL to MOUNT_POINT

"make_ext4fs -a" accepts the mount point, in fact.

Change-Id: I126f5d3a9628d30bdd27cb0e7f6879e479ae5de2
/system/extras/ext4_utils/mkuserimg.sh
cd23be01be219a927cb4eb9edc088eaec260cdba 16-Sep-2010 Brian Swetland <swetland@google.com> do not merge - create sparse ext4 images

master is not ready for the awesome that is sparse filesystem imagery!

Change-Id: I52f76ed6da715e63786d36a3294a2e63d600a637
/system/extras/ext4_utils/mkuserimg.sh
8642b7fba54727a38f751516bcdc452fb09ef610 14-Aug-2010 Brian Swetland <swetland@google.com> ext4_utils: brought over from master
/system/extras/ext4_utils/mkuserimg.sh
3c977822a4f3023d2717130caca74d0318433f4a 03-Aug-2010 Colin Cross <ccross@android.com> Add mkuserimg.sh script for the build system

Change-Id: I74b41e5d783646b51203423a7deabbdb28b32b7b
/system/extras/ext4_utils/mkuserimg.sh