linux-f2fs-devel.lists.sourceforge.net archive mirror
 help / color / mirror / Atom feed
From: "Yu Xing (邢宇)" <Yu.Xing@spreadtrum.com>
To: "jpa@google.com" <jpa@google.com>,
	"drosen@google.com" <drosen@google.com>,
	"enh@google.com" <enh@google.com>,
	"salyzyn@google.com" <salyzyn@google.com>,
	"jeffv@google.com" <jeffv@google.com>"salyzyn@google.com"
	<salyzyn@google.com>, "ccross@android.com" <ccross@android.com>,
	"danalbert@google.com" <danalbert@google.com>
Cc: "mdxy2014@gmail.com" <mdxy2014@gmail.com>,
	"linux-f2fs-devel@lists.sourceforge.net"
	<linux-f2fs-devel@lists.sourceforge.net>
Subject: f2fs-tools support packing file into android image ?
Date: Sun, 22 Jan 2017 02:20:23 +0000	[thread overview]
Message-ID: <e99b12d6c839419395deafc513bcc862@SHMBX01.spreadtrum.com> (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

             reply	other threads:[~2017-01-22  3:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-22  2:20 Yu Xing (邢宇) [this message]
2017-01-29  4:12 ` f2fs-tools support packing file into android image ? Jaegeuk Kim

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=e99b12d6c839419395deafc513bcc862@SHMBX01.spreadtrum.com \
    --to=yu.xing@spreadtrum.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).