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/ext4_utils.c
|
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/ext4_utils.c
|
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/ext4_utils.c
|
8c578e3a66dcd0756aa3f8a19aec8ebe9e477e59 |
|
04-Dec-2012 |
Peter Enderborg <peter.enderborg@sonymobile.com> |
Setup filesystem for automatic forced repair Set maximum mounts count before check and count of mounts since last fsck when building filesystem. Will affect host built filesystem and filesystem created in recovery. This is strongly recommended by the tune2fs manual page in the e2fsprogs, section about -i flag. The value of 10 is tried out on field test, and is a trade-off for start performance and reasonably frequency of forced checks. Change-Id: Id7248f1047b32e38c84bd7057c870bf190b04fa6
/system/extras/ext4_utils/ext4_utils.c
|
d05e047ec0bc574836131ae230cf75d3b93fb55c |
|
03-May-2015 |
Colin Cross <ccross@android.com> |
Fix asan error when copying super block to backup super blocks Address santizier caught a bug where we memcpy a full block size into the backup super block, but the source may be offset 1024 bytes into a block size allocation. The destination buffer is zeroed by calloc, so just copy the super block size instead. Change-Id: I87af8e3349a63940905697466f62532c50fab720
/system/extras/ext4_utils/ext4_utils.c
|
aaf32ea5166b6b86023dc283311228cdebb3dc02 |
|
17-Apr-2015 |
Eric Miao <emiao@nvidia.com> |
make_ext4fs: write out super blocks at last for block devices Change-Id: I93ee37a649aabff14464030efd88f79e1ae324f0 Signed-off-by: Eric Miao <emiao@nvidia.com>
/system/extras/ext4_utils/ext4_utils.c
|
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/ext4_utils.c
|
f5a6b34a9a6b3827f3f2cad111bf7eae3f1f034b |
|
16-Jun-2014 |
David 'Digit' Turner <digit@google.com> |
am fb0c6296: am 9c82554e: Merge "Ignore wipe operation on non-block devices." * commit 'fb0c62963b5fe1b4f36e281c4c02d98d737d08ee': Ignore wipe operation on non-block devices.
|
eb5fcc3e932a8ccac1b580788a213c7782aff31b |
|
12-Jun-2014 |
David 'Digit' Turner <digit@google.com> |
Ignore wipe operation on non-block devices. The implementation of make_ext4fs() calls make_ext4fs_internal() by forcing the |wipe| parameter to true, which is problematic when the library is used within the emulator (the wipe operation will always fail on non-Linux platforms). This patch does the following: - Add a 'is_block_device_fd()' function to check that a file descriptor points to a real block device. - Modify the implementation of wipe_block_device() uses it to return silently when trying to wipe a non-block-device file. - Add a WIPE_IS_SUPPORTED flag in wipe.h that indicates whether block device wiping is supported on the current platform (for now, this is only the case on Linux). BUG=NONE Change-Id: I62b62b7c3e99b465c3b876154231e7c2fe541b23
/system/extras/ext4_utils/ext4_utils.c
|
39aee3c0ff7c6cde85bdf44e98b06ddc49600e48 |
|
13-Feb-2014 |
Geremy Condra <gcondra@google.com> |
am c0f813af: Merge "Set s_flags to 2 to prevent a write on first mount." * commit 'c0f813afc35c1ca497f35b46181b37c9b837726e': Set s_flags to 2 to prevent a write on first mount.
|
4fdc006f6f16109d498454834ff8738a3b5ad081 |
|
13-Feb-2014 |
Geremy Condra <gcondra@google.com> |
Set s_flags to 2 to prevent a write on first mount. The s_flags field is used to indicate whether characters are signed or unsigned, which differs between ARM and x86 targets. Setting this value to 0 causes the correct value for the target to be written back to the superblock on first mount, even if the fs is marked read only. Since this value is only used to ensure interoperability with 2.4 series kernels (which we don't need) in dirhash (which we don't use), we'll just set it to 2 to prevent the write. Change-Id: I92698235909791fb5f423cfd61ff5299307a8f97
/system/extras/ext4_utils/ext4_utils.c
|
3843c14979dce08cc6f800fa9964bf2f8a4bbb2c |
|
31-Jan-2014 |
Colin Cross <ccross@android.com> |
resolved conflicts for merge of 74da0434 to master Change-Id: I0a7745ecf65a2188c32e7bf2e89fe93259c71b83
|
ee2bba62529ce544a60d141ca10a37407c03ab1e |
|
21-Jan-2014 |
Paul Lawrence <paullawrence@google.com> |
ext4 utils: Refactor read_ext, and expose some of the functions Make read_ext an externally useable function. Use case is to enable fast encryption by being able to look at whether each block is in use or not. Bug: 11985952 Change-Id: Ief71f408a55db7261c75ebe974620415ed8cfd29
/system/extras/ext4_utils/ext4_utils.c
|
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/ext4_utils.c
|
782879ab61fe825835a9c6a701f91aa7d305acef |
|
23-Jan-2014 |
Colin Cross <ccross@android.com> |
ext4_utils: move sparse file pointer out of fs_info Move the sparse file pointer out of the fs_info struct in preparation for exporting fs_info without sparse file support. Change-Id: I5a72147fe4fb24296e615cb82dbba91c6dc6f7f0
/system/extras/ext4_utils/ext4_utils.c
|
7900c773815d062deb266f744f95aa76b3573fa3 |
|
23-Jan-2014 |
Colin Cross <ccross@android.com> |
ext4_utils: refactor kernel headers Move the kernel header includes into a single include file that can deal with getting the kernel int types correct on all platforms. Change-Id: Ied3dc6a0f5cbb3ceb686aa3de72f16e10a36462a
/system/extras/ext4_utils/ext4_utils.c
|
fe87e119a6ba97b7bd8e460f4e930fcef9b1f1fe |
|
24-Jul-2013 |
Szymon Starzycki <sstar@google.com> |
Changed visibility of get_block_device_size Change-Id: I5d27f5f50275017134a48eed8d89e452353777f1
/system/extras/ext4_utils/ext4_utils.c
|
4df62f342dbbe2f5cca831ce789dc0426d32ec03 |
|
07-Feb-2013 |
Nick Kralevich <nnk@google.com> |
ext4_utils: add filesystem capabilities support. Add support for specifying filesystem capabilities when creating a new filesystem. The combination of SELinux extended attributes plus filesystem capability extended attributes is too big to fit inside one inode entry. Because of this, I added support to ext4_utils to create an xattr block and link the inode to that block. We continue to try to fit everything inside the inode if possible, but fall over to creating a block if the extended attribute is too big. Change-Id: I40ebb63975b15ecd8c565486e171b4d50cd4dfaa
/system/extras/ext4_utils/ext4_utils.c
|
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/ext4_utils.c
|
f0ee37ffded79afdb03e15ae3a69969d2b7e6079 |
|
25-Apr-2012 |
Colin Cross <ccross@android.com> |
libsparse: make API sane Replaces the libsparse API with a sane one based on an opaque pointer. Change-Id: I93bc9cf9a6b912a993ef554dbe6ffe2f0f723383
/system/extras/ext4_utils/ext4_utils.c
|
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/ext4_utils.c
|
0349bd9f14d252673a7a25767da4a80121aaaaf2 |
|
12-Jan-2012 |
Anatol Pomazau <anatol@google.com> |
Pass file descriptor instead of file name Passing a file descriptor to make_ext4fs_internal() is more flexible. We can use tmpfile() to create a temporary file. tmpfile() is better than other solutions because it unlinks the file right after creating it, so closing fd effectively removes temp file. Thus we don't have to worry about large temp files accidently left on the filesystem in case of the program crash. Change-Id: Iba3758a0e13a898920d30d7fa5da696c22daa2b7
/system/extras/ext4_utils/ext4_utils.c
|
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/ext4_utils.c
|
354350e3a92955e66abd1ea15536f8b6e5e66493 |
|
04-Feb-2012 |
Anatol Pomazau <anatol@google.com> |
Revert "Pass file descriptor instead of file name" This reverts commit 89ddaab97e9214cf331baffee2de4595ad14dc79
/system/extras/ext4_utils/ext4_utils.c
|
89ddaab97e9214cf331baffee2de4595ad14dc79 |
|
12-Jan-2012 |
Anatol Pomazau <anatol@google.com> |
Pass file descriptor instead of file name Passing a file descriptor to make_ext4fs_internal() is more flexible. We can use tmpfile() to create a temporary file. tmpfile() is better than other solutions because it unlinks the file right after creating it, so closing fd effectively removes temp file. Thus we don't have to worry about large temp files accidently left on the filesystem in case of the program crash. Change-Id: I44146704572c314e1d6cfca7ce918efa7fb92a7a
/system/extras/ext4_utils/ext4_utils.c
|
ae4f7dccadfafc36470a3e6f3084c6cf3cc63415 |
|
03-Feb-2012 |
Anatol Pomazau <anatol@google.com> |
Revert "Pass file descriptor instead of file name" This reverts commit 93eb1dc9e68d2e9dea94f56d8bce478c1a52b354
/system/extras/ext4_utils/ext4_utils.c
|
93eb1dc9e68d2e9dea94f56d8bce478c1a52b354 |
|
12-Jan-2012 |
Anatol Pomazau <anatol@google.com> |
Pass file descriptor instead of file name Passing a file descriptor to make_ext4fs_internal() is more flexible. We can use tmpfile() to create a temporary file. tmpfile() is better than other solutions because it unlinks the file right after creating it, so closing fd effectively removes temp file. Thus we don't have to worry about large temp files accidently left on the filesystem in case of the program crash. Change-Id: I44109e98854c314e1d6cfca7ce918efa7fb92a7a
/system/extras/ext4_utils/ext4_utils.c
|
412d55c7ee5ce42dc52e0c03c3e0d1c5c2d9d870 |
|
19-Jan-2012 |
Jean-Baptiste Queru <jbq@google.com> |
Merge "fix fd leaking and deallocation freed resource"
|
107a9f161babc20daf915311146b0e864d3b4157 |
|
30-Jun-2011 |
Ken Sumrall <ksumrall@android.com> |
Bug fixes to make_ext4fs Fix definition of uuid struct. Properly set the block_group number in each backup copy of the superblock. Adjust the info.total_inodes field after rounding up the inodes per block group. Add the option -t to initialize all the inode tables. If also specified with the -s option, use the CHUNK_TYPE_FILL sparse records to initialize them. Change-Id: Idd8bcee1b9bde3e82ad8da89ef974fbc12d7a6c6
/system/extras/ext4_utils/ext4_utils.c
|
97fc910ce0e05862888fd1d9e1938feba40f7539 |
|
23-Jun-2011 |
Ken Sumrall <ksumrall@android.com> |
Fixes for ext4fixup. Add check for filesystem that needs the journal run Fix check for a cleanly unmounted filesystem. Fix computation of new inode number Fix check in two places for high bit being set on inode num Only run sanity check pass if filesystem fixup state is unset (i.e. not partway through the conversion) Change-Id: Ib5521e7f3c04d32c02d9890644a99378e3a3659e
/system/extras/ext4_utils/ext4_utils.c
|
0a5b2a30ff134958d028e995b4e4cb9cf9021bd9 |
|
04-Jun-2011 |
Robert CH Chou <Robert_CH_Chou@acer.com.tw> |
fix fd leaking and deallocation freed resource Change-Id: Ibee4d7000bce5bc8c2e45339d4d53a242569ae4e
/system/extras/ext4_utils/ext4_utils.c
|
2ae7663e1e064000356ee9e49ebd08bdddc545f9 |
|
24-Mar-2011 |
Ken Sumrall <ksumrall@android.com> |
Implement poor man's exception handling to prevent errors from killling recovery make_ext4fs was originally designed to be a standalone program, and the error() macro calls exit() after printing a diagnostic. However, when it was turned into a library that recovery links against, calling exit() kills the entire recovery process, which the kernel starts back up, which dies, and the cycle continues. This changes make_ext4fs to use setjmp() early, and changes error to use longjmp to return to that point. When longjmp is called, the error handler just returns an error. If it was invoked as a standalone program, this causes the program to exit with an error. If it was invoked as a library function, the error return is gracefully handled by recovery. Change-Id: Iad50f46cac0ac399b5cdfd083d5712f88a10e48e
/system/extras/ext4_utils/ext4_utils.c
|
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/ext4_utils.c
|
435a8b61e925e3efb22fce08612efe210e83f791 |
|
15-Jan-2011 |
Ken Sumrall <ksumrall@android.com> |
Add the ability to specify a reserved space size when making filesystems. If you specify a negative length when making a filesystem, then the filesystem size is the size of the partiton (or image file) minus the absolute value of the negative length specified. Change-Id: I53e3b6de2ea692f4678682c3f49ff36429d9ad31
/system/extras/ext4_utils/ext4_utils.c
|
a7ed433f2dc0116627a93b18fbb260f0665ca0cb |
|
23-Dec-2010 |
Colin Cross <ccross@android.com> |
ext4_utils: Add ext2simg Change-Id: I6c0d71d737be588d03018efdaed378349caa4f7a
/system/extras/ext4_utils/ext4_utils.c
|
757ace516d8e4350616b5fd10da0c982d3d5ec74 |
|
29-Dec-2010 |
Colin Cross <ccross@android.com> |
ext4_utils: Add an optional CRC chunk at the end of sparse files Change-Id: Ibfcf1cdeab47ca13870350184abf83e530acbc07
/system/extras/ext4_utils/ext4_utils.c
|
b781330b1acae2e5706bbda8d81e5f7575f40e2a |
|
23-Dec-2010 |
Colin Cross <ccross@android.com> |
ext4_utils: Get rid of CRC in sparse file header Also removes the need to seek in the output file, allowing stdin and stdout to be used for input and output. Change-Id: I93cbe335d9cc83a6d21daa696af2cb54952dcc9f
/system/extras/ext4_utils/ext4_utils.c
|
33f96c66e9a1f2e266a75e5e84c091dffa6ef118 |
|
23-Dec-2010 |
Colin Cross <ccross@android.com> |
ext4_utils: Add support for >2G input files Change-Id: I6af69d676610099d3912e90fcab3cbdc27ace4e2
/system/extras/ext4_utils/ext4_utils.c
|
22742ce739a046a079b2e1b03342a25472dfa352 |
|
23-Dec-2010 |
Colin Cross <ccross@android.com> |
ext4_utils: Move bg_desc_reserved_blocks from aux_info to info Change-Id: Ic635afbb8819a00ca23ba2f93413fe707e2eec87
/system/extras/ext4_utils/ext4_utils.c
|
4b8b59a7cd0e1413dcf9973c4bbd7eb65a444c4c |
|
24-Sep-2010 |
Brian Swetland <swetland@google.com> |
zero the entire journal instead of just the first block I'm seeing some weeeeird stuff with sparse ext4 images where files sometimes seem to come back from the dead after reflashing, etc. My crazy theory is they are hiding in the journal. Colin humored me and pointed out how to ensure it's entirely zero'd. Change-Id: I4d14a2d4879c10540ef3c677ceb523bc061c1ec1
/system/extras/ext4_utils/ext4_utils.c
|
8642b7fba54727a38f751516bcdc452fb09ef610 |
|
14-Aug-2010 |
Brian Swetland <swetland@google.com> |
ext4_utils: brought over from master
/system/extras/ext4_utils/ext4_utils.c
|