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
|