Skip to contentSkip to conversation

f2fs-tools support packing file into android image ?

DISCUSSION Yu Xing (邢宇) 2 participants 2 messages Jan 22, 2017 – Jan 29, 2017

lore
Share & tools
lore
#0 lore raw

Hi

Recently, I used the make_f2fs command to create android system.img/userdata.img/cache.img. The tool from system/extras/f2fs_utils/

But I found the make_f2fs cannot packing file into image, so I can not apply the tool to format the system.img If we used the tool to format the system.img, it can format succeed, but when we mount the system.img to
target, there is no exist any files in the target directory!

So currently, this tool can support packing files into android image ?
From make_ext4fs tool, I found this tool can packing the files into images with the target_out_directory arguments, as following:

make_ext4fs [ -l <len> ] [ -j <journal size> ] [ -b <block_size> ]
[ -g <blocks per group> ] [ -i <inodes> ] [ -I <inode size> ] [ -L <label> ] [ -f ] [ -a <android mountpoint> ] [ -u ]
[ -S file_contexts ] [ -C fs_config ] [ -T timestamp ]
[ -z | -s ] [ -w ] [ -c ] [ -J ] [ -v ] [ -B <block_list_file> ] <filename> [[<directory>] <target_out_directory>]

But make_f2fs tool cannot support this function, this tool only can support -l arguments , as following:
make_f2fs -l <len> <filename>

Also, if we want to include the selinux related, for make_ext4fs, we can used the -S arguments. But for make_f2fs, we cannot , maybe add this function into make_f2fs tool ?

Can somebody help me to have a look at these questions? Thanks a lot!

Yu.xing
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot

#1 lore raw

Hello,

Quoted 6 lines · Yu Xing (邢宇)

Hi

Recently, I used the make_f2fs command to create android system.img/userdata.img/cache.img. The tool from system/extras/f2fs_utils/

But I found the make_f2fs cannot packing file into image, so I can not apply the tool to format the system.img

Recent f2fs-tools supports sload.f2fs and resize.f2fs for production, which you may need to integrate into make_f2fs. The sload.f2fs builds an image from existing files/directories, and resize.f2fs can expand the existing f2fs image into given volume size.

Thanks,

Quoted 22 lines

If we used the tool to format the system.img, it can format succeed, but when we mount the system.img to
target, there is no exist any files in the target directory!

So currently, this tool can support packing files into android image ?
From make_ext4fs tool, I found this tool can packing the files into images with the target_out_directory arguments, as following:

make_ext4fs [ -l <len> ] [ -j <journal size> ] [ -b <block_size> ]
[ -g <blocks per group> ] [ -i <inodes> ] [ -I <inode size> ] [ -L <label> ] [ -f ] [ -a <android mountpoint> ] [ -u ]
[ -S file_contexts ] [ -C fs_config ] [ -T timestamp ]
[ -z | -s ] [ -w ] [ -c ] [ -J ] [ -v ] [ -B <block_list_file> ] <filename> [[<directory>] <target_out_directory>]

But make_f2fs tool cannot support this function, this tool only can support -l arguments , as following:
make_f2fs -l <len> <filename>

Also, if we want to include the selinux related, for make_ext4fs, we can used the -S arguments. But for make_f2fs, we cannot , maybe add this function into make_f2fs tool ?

Can somebody help me to have a look at these questions? Thanks a lot!

Quoted 8 lines

Yu.xing
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Linux-f2fs-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Linux-f2fs-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel