mkfs.f2fs: add -R 0:0 by default for android
PATCH 1/1 mkfs.f2fs: add -R 0:0 by default for android
This patch sets "-R 0:0" for android by default.
Signed-off-by Jaegeuk Kim <[email protected]>
--- mkfs/f2fs_format_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
mkfs/f2fs_format_main.c +2 -1
@@ -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 ; } }
Signature · 6 lines
2.17.0.441.gb46fe60e1d-goog ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Quoted 3 lines · Jaegeuk Kim
This patch sets "-R 0:0" for android by default.
Signed-off-by Jaegeuk Kim <[email protected]>
Reviewed-by Chao Yu <[email protected]>
Thanks,
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot