* f2fs-tools support packing file into android image ?
@ 2017-01-22 2:20 Yu Xing (邢宇)
2017-01-29 4:12 ` Jaegeuk Kim
0 siblings, 1 reply; 2+ messages in thread
From: Yu Xing (邢宇) @ 2017-01-22 2:20 UTC (permalink / raw)
To: jpa@google.com, drosen@google.com, enh@google.com,
salyzyn@google.com, jeffv@google.com
Cc: mdxy2014@gmail.com, linux-f2fs-devel@lists.sourceforge.net
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: f2fs-tools support packing file into android image ?
2017-01-22 2:20 f2fs-tools support packing file into android image ? Yu Xing (邢宇)
@ 2017-01-29 4:12 ` Jaegeuk Kim
0 siblings, 0 replies; 2+ messages in thread
From: Jaegeuk Kim @ 2017-01-29 4:12 UTC (permalink / raw)
To: Yu Xing (邢宇)
Cc: enh@google.com, drosen@google.com, jeffv@google.com,
linux-f2fs-devel@lists.sourceforge.net, mdxy2014@gmail.com,
ccross@android.com, jpa@google.com, danalbert@google.com,
salyzyn@google.com
Hello,
On 01/22, Yu Xing (邢宇) wrote:
> 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,
> 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
> _______________________________________________
> Linux-f2fs-devel mailing list
> Linux-f2fs-devel@lists.sourceforge.net
> 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
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-01-29 4:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-22 2:20 f2fs-tools support packing file into android image ? Yu Xing (邢宇)
2017-01-29 4:12 ` Jaegeuk Kim
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).