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/wipe.c
|
427c3a2177eb4d34c88406bb86107548737168cc |
|
23-Mar-2011 |
Ken Sumrall <ksumrall@android.com> |
Make a failure of the BLKDISCARD ioctl non-fatal. Failure to erase the partition before making a new filesystem should not be fatal, especially since this is called from recovery, and if make_ext4fs() dies, recovery dies. Change-Id: I1b50b8c486d403a5d9cbd5e9de73cf752d8ef8f7
/system/extras/ext4_utils/wipe.c
|
3e620597671c7efa678c1cd804202cff513bc751 |
|
12-Feb-2011 |
Ken Sumrall <ksumrall@android.com> |
Fix to properly wipe filesystems larger than 4 gigabytes. Pass the wipe size to the wipe function in a 64 bit int. Change-Id: Ia6a0c70c8ddacaae35d17732d61b126219e5c158
/system/extras/ext4_utils/wipe.c
|
bb079ff767d5dd76be2d8753a3aef192b75b5664 |
|
29-Jan-2011 |
Colin Cross <ccross@android.com> |
ext4_utils: Fix non-linux builds Change-Id: I5a22083645055abc36a3addc4eae45b40a7a6b2b
/system/extras/ext4_utils/wipe.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/wipe.c
|