OSDN Git Service

ext4_utils: Add support for wipe option, and wipe by default in recovery
authorColin Cross <ccross@android.com>
Thu, 27 Jan 2011 00:39:46 +0000 (16:39 -0800)
committerColin Cross <ccross@android.com>
Fri, 28 Jan 2011 22:12:00 +0000 (14:12 -0800)
commitc2470654d4b4db09a7052fc5fa108ac21f1b1948
treefd74487bb48f4249ed3e00b094155c0b7ff1f43c
parent442985bad72adb119aa29dbe1b8c903fa834e089
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
ext4_utils/Android.mk
ext4_utils/ext2simg.c
ext4_utils/ext4_utils.c
ext4_utils/ext4_utils.h
ext4_utils/make_ext4fs.c
ext4_utils/make_ext4fs.h
ext4_utils/make_ext4fs_main.c
ext4_utils/output_file.c
ext4_utils/output_file.h
ext4_utils/wipe.c [new file with mode: 0644]
ext4_utils/wipe.h [new file with mode: 0644]