diff options
author | Colin Cross <ccross@android.com> | 2011-01-26 16:39:46 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2011-01-28 14:12:00 -0800 |
commit | c2470654d4b4db09a7052fc5fa108ac21f1b1948 (patch) | |
tree | fd74487bb48f4249ed3e00b094155c0b7ff1f43c /ext4_utils/ext4_utils.h | |
parent | 442985bad72adb119aa29dbe1b8c903fa834e089 (diff) | |
download | extras-c2470654d4b4db09a7052fc5fa108ac21f1b1948.tar.gz |
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
Diffstat (limited to 'ext4_utils/ext4_utils.h')
-rw-r--r-- | ext4_utils/ext4_utils.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext4_utils/ext4_utils.h b/ext4_utils/ext4_utils.h index b770294e..bed9933b 100644 --- a/ext4_utils/ext4_utils.h +++ b/ext4_utils/ext4_utils.h @@ -141,7 +141,8 @@ static inline int log_2(int j) } int ext4_bg_has_super_block(int bg); -void write_ext4_image(const char *filename, int gz, int sparse, int crc); +void write_ext4_image(const char *filename, int gz, int sparse, int crc, + int wipe); void ext4_create_fs_aux_info(void); void ext4_free_fs_aux_info(void); void ext4_fill_in_sb(void); |