From: Jaegeuk Kim <jaegeuk@kernel.org>
To: "Yu Xing (邢宇)" <Yu.Xing@spreadtrum.com>
Cc: "enh@google.com" <enh@google.com>,
"drosen@google.com" <drosen@google.com>,
"jeffv@google.com" <jeffv@google.com>,
"linux-f2fs-devel@lists.sourceforge.net"
<linux-f2fs-devel@lists.sourceforge.net>,
"mdxy2014@gmail.com" <mdxy2014@gmail.com>,
"ccross@android.com" <ccross@android.com>,
"jpa@google.com" <jpa@google.com>,
"danalbert@google.com" <danalbert@google.com>,
"salyzyn@google.com" <salyzyn@google.com>
Subject: Re: f2fs-tools support packing file into android image ?
Date: Sun, 29 Jan 2017 13:12:09 +0900 [thread overview]
Message-ID: <20170129041209.GB65555@jaegeuk.local> (raw)
In-Reply-To: <e99b12d6c839419395deafc513bcc862@SHMBX01.spreadtrum.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
prev parent reply other threads:[~2017-01-29 4:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-22 2:20 f2fs-tools support packing file into android image ? Yu Xing (邢宇)
2017-01-29 4:12 ` Jaegeuk Kim [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170129041209.GB65555@jaegeuk.local \
--to=jaegeuk@kernel.org \
--cc=Yu.Xing@spreadtrum.com \
--cc=ccross@android.com \
--cc=danalbert@google.com \
--cc=drosen@google.com \
--cc=enh@google.com \
--cc=jeffv@google.com \
--cc=jpa@google.com \
--cc=linux-f2fs-devel@lists.sourceforge.net \
--cc=mdxy2014@gmail.com \
--cc=salyzyn@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).