mkfs.f2fs: add -R 0:0 by default for android

This patch sets "-R 0:0" for android by default.

Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
Jaegeuk Kim 2018-07-27 17:45:57 +09:00
parent bdd39ce73b
commit 0ba902b378

View File

@ -93,12 +93,13 @@ static void add_default_options(void)
{
switch (c.defset) {
case CONF_ANDROID:
/* -d1 -f -O encrypt -O quota -w 4096 */
/* -d1 -f -O encrypt -O quota -w 4096 -R 0:0 */
c.dbg_lv = 1;
force_overwrite = 1;
c.feature |= cpu_to_le32(F2FS_FEATURE_ENCRYPT);
c.feature |= cpu_to_le32(F2FS_FEATURE_QUOTA_INO);
c.wanted_sector_size = 4096;
c.root_uid = c.root_gid = 0;
break;
}
}