summaryrefslogtreecommitdiff
path: root/ext4_utils
AgeCommit message (Collapse)Author
2018-05-22Make logging much less verbosePaul Crowley
On a broken device, this logging is much too verbose and obscures real information. Test: adb shell mkdir -p /data/media/10/foo, then create second Bug: 78592001 Change-Id: Idf235c65048187791a8e5f184a46ee802283de86
2018-05-17Recursively list directories that break encryptionPaul Crowley
If we're unable to set or change encryption policy because the directory is not empty, log the contents that cause the problem Bug: 78592001 Test: adb shell mkdir -p /data/media/10/foo, then create second user Change-Id: I87cc46f09551728a7949659b21ae0401ae253e5e
2018-04-21Merge "mkuserimg_mke2fs: Support passing reserved block percent" into pi-devTreeHugger Robot
2018-03-30Support Speck encryption.Paul Crowley
Test: Modified Pixel to support and use Speck encryption, booted. Bug: 77227248 Change-Id: I1efc54b60e074265914fde764ab4b85798128d67 Merged-In: I1efc54b60e074265914fde764ab4b85798128d67
2018-03-23mkuserimg_mke2fs: Support passing reserved block percentPatrick Tjin
Add support for passing reserved block percent when making filesystem (-M) Bug: 75975085 Test: build taimen, check that -M option takes effect Change-Id: Ie70159b2cce01e0611299726378e3bcf46fde389
2018-01-24Merge "Fingerprint data is now stored in one of two ways depending on the"TreeHugger Robot
2018-01-23Fingerprint data is now stored in one of two ways depending on theAndreas Huber
shipping API version: For devices shipped before Android P nothing changes, data is stored under /data/system/users/<user-id>/fpdata/... Devices shipped from now on will instead store fingerprint data under /data/vendor_de/<user-id>/fpdata. Support for /data/vendor_de and /data/vendor_ce has been added to vold. Bug: 36997597 Change-Id: I13b4180d17f544b9616ea738f45fdc481ab0fec1 Test: manually
2018-01-22ext4_utils: add option to compact duplicated blocksJin Qian
Pass -s to e2fsdroid to share de-duplicate data blocks on ext4. Bug: 64109868 Change-Id: I67a9dd2dee2c63f6e8f9bc2f9962d7851e4a11f4
2018-01-19Fix overflow sanitizer in ext4_utils.Ivan Lozano
The overflow sanitizer was causing the following runtime errors: runtime error: unsigned integer overflow: 1048576 * 1048576 cannot be represented in type 'unsigned int' runtime error: unsigned integer overflow: 0 - 1 cannot be represented in type 'unsigned int' Use u64 rather than u32 and explicitly cast aux_info.groups to an int before passing it to ext4_bg_has_super_block. Bug: 72226337 Test: Boots without runtime errors. Change-Id: I12fc37e4f0956ca4367209d8efde3e0ecba15114
2018-01-08Allow ext2 in mkuserimg_mke2fs.shSen Jiang
mke2fs supports it. Bug: 70244091 Test: made an ext2 image with mkuserimg_mke2fs.sh Change-Id: Ic87eec440fe7d84f10a636fc0d78ead855040bc8
2017-12-06Merge "ext4_utils: copy mke2fs.conf to HOST_OUT_EXECUTABLES" am: 1f567fabfd ↵Jin Qian
am: 43128c00a9 am: 2956ac9408 Change-Id: I70acf872588a4786b70dbdfbcaa55d7723eefe63
2017-12-06Merge "ext4_utils: copy mke2fs.conf to HOST_OUT_EXECUTABLES"Jin Qian
am: 1f567fabfd Change-Id: Ie095b7a15da72dea9805549ad10936f8bfc309c9
2017-12-05ext4_utils: copy mke2fs.conf to HOST_OUT_EXECUTABLESJin Qian
Add the config file to fastboot package Change-Id: Icb4b7687eddf717c62d55537a79de52a9470be2c
2017-11-14Merge commit 'f22d9cd819bf8b21bedba3dedcfa08fe8f91a15e' into HEADXin Li
Change-Id: I0a0f6a3057951735943b846270c2d445e5cb4c7b
2017-11-14ext4_utils: disable ext4 64bit block supportJin Qian
read_ext and vold full disk encryption can't handle 64bit block address. Disable 64bit for now since 32bit can support 16TB file system size. Bug: 69234171 Change-Id: I7aab007e2e55f7416490e56864af1c69a9f55c9c
2017-11-09Merge "ext4_utils: remove dead code from libext4_utils"TreeHugger Robot
2017-11-09Merge "Fix buffer overflow in blk_alloc_to_base_fs" am: 04c21cf554 am: ↵Jin Qian
dbbcc2f198 am: 39b9d829b8 Change-Id: I533192585d54e21fe6c78daf8c3053e099183d23
2017-11-09Merge "Fix buffer overflow in blk_alloc_to_base_fs" am: 04c21cf554Jin Qian
am: dbbcc2f198 Change-Id: Ieca77e6769a69d1609c37c44b352501702c1f1f9
2017-11-08Fix buffer overflow in blk_alloc_to_base_fsJin Qian
Bug: 68988643 Change-Id: I6a81c8197780430a9e5816181a81fe7bafc3e47f
2017-11-08ext4_utils: remove dead code from libext4_utilsJin Qian
Those code were used by make_ext4fs, which has been deleted. Bug: 64395169 Change-Id: Icf5c03563717f97c30bd45a7944378684e574001
2017-11-07ext4_utils: delete make_ext4fs relavant code and scriptJin Qian
make_ext4fs has been replaced with mke2fs. Bug: 64395169 Change-Id: Iad3a8346ca211e4d5a5ab7046c2bdd199292a867
2017-10-30Merge "Use -Werror in system/extras" am: 2b217ca555 am: aa317f0c4cChih-hung Hsieh
am: c500bdd557 Change-Id: Icb8574c2f32ec41a126e550bcac7c63a03487ae2
2017-10-30Merge "Use -Werror in system/extras" am: 2b217ca555Chih-hung Hsieh
am: aa317f0c4c Change-Id: I4792be67f2a33c61f0e740ba9093c06df4613921
2017-10-20Use -Werror in system/extrasChih-Hung Hsieh
* Remove unused variables. * Fix redefined macro warnings. * Fix sign-compare warnings. * Fix 'return false' in main(). * Keep existing warnings to fix later. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: Ib92ef5297693595fb84ed4f8e61665bda4cee312
2017-10-16ext4_utils: make file system image reproducibleJin Qian
Add flags to set filesystem uuid, hash_seed and mke2fs time. Bug: 64994964 Change-Id: I38369a3a9dfffefead11c4b8fdd1e6984e61b938 (cherry picked from commit 407a7de4c499ede24dbbeb22d2efe6490a974b0d)
2017-10-10Log mode information setting crypto policies.Paul Crowley
Bug: 25861755 Test: boot device, add SD card, check modes. Change-Id: Ie1941dd120cf8b7a672c3117d398b045da8c1721
2017-10-03Merge "Fix mac build." am: 5da045dc1a am: 2cefddbce5Andreas Huber
am: 79a353c071 Change-Id: I2c94f7d867fb5b9a844cc005353fc561a32ff589
2017-10-03Fix mac build.Andreas Huber
"u64" is either an unsigned long (in __LP64__ builds) or an unsigned long long (otherwise). This CL adds a format string "PRIext4u64" to be used in place of "PRIu64" when referring to a variable of type "u64". related-to-build Test: make Change-Id: I6ef911dda3ebdcc0f895c54325b8a82b57a62ee6
2017-10-03Merge "Use -Werror in system/extras" am: 560b2196d5 am: 954d9ce3e7Chih-hung Hsieh
am: d79020a5e4 Change-Id: If94da7caa721aa7394ff15819216348600b59691
2017-10-02Use -Werror in system/extrasChih-Hung Hsieh
* Use system-extras-cflags-defaults * Move -Wall -Werror from cppflags to cflags * fix warning on redefinition of MAX_PATH Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: Ib14b4d8eece767225a6fef639ed190b343678c00
2017-09-29Merge "Rename libz-host -> libz" am: 52e2821359 am: 4c1cccb5c4Dan Willemsen
am: 97828709f0 Change-Id: I593fd53509532c1dd1d032bdae9e3c0554eda355
2017-09-28Merge "ext4_utils: make file system image reproducible" into oc-mr1-devTao Bao
am: 9784ce307f Change-Id: Icf59233cfc3a6e399894ab92855a8d764e0fb772
2017-09-27Rename libz-host -> libzDan Willemsen
Test: m host Change-Id: I26c41cd885f9a48bb1c02bbd269c3f61f3c4dbdb
2017-09-27ext4_utils: make file system image reproducibleJin Qian
Add flags to set filesystem uuid, hash_seed and mke2fs time. Bug: 64994964 Change-Id: I38369a3a9dfffefead11c4b8fdd1e6984e61b938 (cherry picked from commit 407a7de4c499ede24dbbeb22d2efe6490a974b0d)
2017-09-21Merge "ext4_utils: Fix a looping bug and memory leak" am: 1db7fa615d am: ↵Ting-Yuan Huang
ae908cfb27 am: d5070279f3 Change-Id: Id7ba7b29f78f631e2c5da78905e8360a070e4686
2017-09-21Merge "Fix reduce_allocation()." am: 7d845bafe5 am: c32774f81eTing-Yuan Huang
am: 968853c765 Change-Id: I4df82170e4d9f4661ae1ef8df384cc45dd6e6920
2017-09-21Merge "ext4_utils: Fix a looping bug and memory leak"Treehugger Robot
2017-09-21Merge "Fix reduce_allocation()."Treehugger Robot
2017-09-19ext4_utils: Fix a looping bug and memory leakTing-Yuan Huang
Test: built without seeing the compiler warnings. Change-Id: Ia277667b62323852f493a24b53ba3a34222c4f0e
2017-09-12Fix reduce_allocation().Ting-Yuan Huang
alloc->list.last was repeatedly freed. Test: built without seeing warnings. Change-Id: Ia8b2f9d4b8ba9fbe13fae5d7a0a4d526ddc863d6
2017-09-11ext4_utils: fix off-by-one error when free blocksJin Qian
block points at one block before the region we wanted to free after the loop that updats bitmap. This causes the code to free chunk still being used. Bug: 35262536 Test: lunch angler-userdebug; m dist Test: lunch bullhead-userdebug; m dist Change-Id: I7ebb30f4c7bcd01d3213ae0804a026a5ad98072c (cherry picked from commit a4ed4e10e98b0efa4e259c99e84609bebb08cd66)
2017-08-28Merge "ext4_utils: skip symbolic links in basefs file" into oc-mr1-devTreeHugger Robot
2017-08-28ext4_utils: skip symbolic links in basefs fileJin Qian
base_fs uses actual file size instead of size of symlink itself to reserve data blocks. This caused extra data blocks to be reserved and failed e2fsck. Bug: 35262536 Change-Id: I0e9b0cc99a0f9a33596928b01468426fc2d34ab0
2017-08-18Try to encrypt /data/media/obb but ignore failuresPaul Crowley
Bug: 64566063 Test: We test whether it's encrypted by trying to move a file from /data/unencrypted into it. Used this test to make sure directory was encrypted before change. Left file in directory, rebooted with change, tested that it was still unencrypted. Deleted all files in directory, rebooted again, tested that unencrypted files could no longer be moved into directory. Change-Id: I50df4949fb495ca8996c8a54e238af56a71f5df9
2017-07-28Merge "ext4_utils: enable uninit_bg feature for ext4 mke2fs"Jin Qian
am: d4c959ba79 Change-Id: Id07f9f71e63c14706e6b0e9a161c7444163efa4d
2017-07-27ext4_utils: enable uninit_bg feature for ext4 mke2fsJin Qian
Some devices have very slow storage media. This feature can speed up filesystem creation time noticeably. Bug: 63809106 Bug: 64101366 Change-Id: Id4886822035808bcb279dbf6f81989fee9cc0ace (cherry picked from commit 794223c633652b714db804729b5f57d3689a1f91)
2017-07-27ext4_utils: enable uninit_bg feature for ext4 mke2fsJin Qian
Some devices have very slow storage media. This feature can speed up filesystem creation time noticeably. Bug: 63809106 Bug: 64101366 Change-Id: Id4886822035808bcb279dbf6f81989fee9cc0ace
2017-07-21Merge changes from topic 'mke2fs_2'Jin Qian
am: 6f998b3e59 Change-Id: Ib65dfb01e37a2b334023df2cbf75363015ea041a
2017-07-21ext4_utils: copy mke2fs.conf to recovery /etcJin Qian
am: e4d07364c5 Change-Id: I098a285f42b1cc5bb8048d5c71014764cfec1113
2017-07-20ext4_utils: copy mke2fs.conf to /etcJin Qian
mke2fs tool reads /etc/mke2fs.conf for filesystem configurations Bug: 35219933 Change-Id: I2af633ffd3b37f9f5ad287375ea40b212bf61a01 (cherry picked from commit a5950e562e89ac2c110070993a93ae3f8503fe37)