Skip to content

use "mke2fs -d" to create the ext2/3/4 image

Robert Yang openembedded-core 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14e2fsprogs: mke2fs: add the ability to copy files from a given directorymeta/recipes-devtools/e2fsprogs/e2fsprogs/0001-mke2fs-add-the-ability-to-copy-files-from-a-given-di.patch+98 -00 replies
2/14e2fsprogs: mke2fs: copy files recursivelymeta/recipes-devtools/e2fsprogs/e2fsprogs/0002-misc-create_inode.c-copy-files-recursively.patch+135 -00 replies
3/14e2fsprogs: mke2fs: create special filemeta/recipes-devtools/e2fsprogs/e2fsprogs/0003-misc-create_inode.c-create-special-file.patch+103 -00 replies
4/14e2fsprogs: mke2fs: create symlinkmeta/recipes-devtools/e2fsprogs/e2fsprogs/0004-misc-create_inode.c-create-symlink.patch+63 -00 replies
5/14e2fsprogs: mke2fs: copy regular filemeta/recipes-devtools/e2fsprogs/e2fsprogs/0005-misc-create_inode.c-copy-regular-file.patch+224 -00 replies
6/14e2fsprogs: mke2fs: create directorymeta/recipes-devtools/e2fsprogs/e2fsprogs/0006-misc-create_inode.c-create-directory.patch+62 -00 replies
7/14e2fsprogs: mke2fs: set owner/mode/time for the inodemeta/recipes-devtools/e2fsprogs/e2fsprogs/0007-misc-create_inode.c-set-owner-mode-time-for-the-inod.patch+81 -00 replies
8/14e2fsprogs: mke2fs: add an option: -d root-directorymeta/recipes-devtools/e2fsprogs/e2fsprogs/0008-mke2fs.c-add-an-option-d-root-directory.patch+168 -00 replies
9/14e2fsprogs: mke2fs: handle hardlinksmeta/recipes-devtools/e2fsprogs/e2fsprogs/0009-misc-create_inode.c-handle-hardlinks.patch+210 -00 replies
10/14e2fsprogs: debugfs: use the functions in misc/create_inode.cmeta/recipes-devtools/e2fsprogs/e2fsprogs/0010-debugfs-use-the-functions-in-misc-create_inode.c.patch+496 -00 replies
11/14e2fsprogs: mke2fs: update the manual for the -d optionmeta/recipes-devtools/e2fsprogs/e2fsprogs/0011-mke2fs.8.in-update-the-manual-for-the-d-option.patch+43 -00 replies
12/14e2fsprogs: enable the "-d" related patchesmeta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bb+11 -00 replies
13/14image_types.bbclass: use mke2fs -d to create the ext2/3/4 imagemeta/classes/image_types.bbclass+1 -20 replies
14/14e2fsprogs: populate-extfs.sh: remove itmeta/recipes-devtools/e2fsprogs/e2fsprogs/populate-extfs.sh meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bb+0 -980 replies

Reviews trailers per patch

11 of 14 patches have a Reviewed-by or Acked-by.

PatchDarren Hart
1/14R-b
2/14R-b
3/14R-b
4/14R-b
5/14R-b
6/14R-b
7/14R-b
8/14R-b
9/14R-b
10/14R-b
11/14R-b
12/14
13/14
14/14

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/14] use "mke2fs -d" to create the ext2/3/4 image

Benefits:
* The "mke2fs -d" is more faster than populate-extfs.sh, it will save about 25 seconds for a core-image-sato rootfs from my testing.

* Will fix these bugs:
5901: Error at rootfs time if 'ptest-pkgs' is in IMAGE_FEATURES 5797: populate-extfs.sh: problem with large images 5712: /var/lib/opkg/alternatives/[[: File not found by ext2_lookup

NOTE:
* These patches have been merged into e2fsprogs's next branch, we can drop them when the new e2fsprogs releases and we upgrade it. It is a little different from the upstream since I've fixed it a little according to the feedback.

* Thanks for Darren's great help.

// Robert

The following changes since commit c6825ec6e92e20bb64a051d1576f363c16e98d68:

recipes: bump PRs (2014-03-05 17:26:24 +0000)

are available in the git repository at:

git://git.openembedded.org/openembedded-core-contrib rbt/e2fs
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=rbt/e2fs

Robert Yang (14):
e2fsprogs: mke2fs: add the ability to copy files from a given
directory
e2fsprogs: mke2fs: copy files recursively
e2fsprogs: mke2fs: create special file
e2fsprogs: mke2fs: create symlink
e2fsprogs: mke2fs: copy regular file
e2fsprogs: mke2fs: create directory
e2fsprogs: mke2fs: set owner/mode/time for the inode
e2fsprogs: mke2fs: add an option: -d root-directory
e2fsprogs: mke2fs: handle hardlinks
e2fsprogs: debugfs: use the functions in misc/create_inode.c
e2fsprogs: mke2fs: update the manual for the -d option
e2fsprogs: enable the "-d" related patches image_types.bbclass: use mke2fs -d to create the ext2/3/4 image
e2fsprogs: populate-extfs.sh: remove it

 meta/classes/image_types.bbclass                   |    3 +-
 ...the-ability-to-copy-files-from-a-given-di.patch |   98 ++++
 ...isc-create_inode.c-copy-files-recursively.patch |  135 ++++++
 ...3-misc-create_inode.c-create-special-file.patch |  103 ++++
 .../0004-misc-create_inode.c-create-symlink.patch  |   63 +++
 ...005-misc-create_inode.c-copy-regular-file.patch |  224 +++++++++
 ...0006-misc-create_inode.c-create-directory.patch |   62 +++
 ..._inode.c-set-owner-mode-time-for-the-inod.patch |   81 ++++
 ...8-mke2fs.c-add-an-option-d-root-directory.patch |  168 +++++++
 ...0009-misc-create_inode.c-handle-hardlinks.patch |  210 +++++++++
 ...-use-the-functions-in-misc-create_inode.c.patch |  496 ++++++++++++++++++++
 ...s.8.in-update-the-manual-for-the-d-option.patch |   43 ++
 .../e2fsprogs/e2fsprogs/populate-extfs.sh          |   96 ----
 .../recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bb |   13 +-
 14 files changed, 1695 insertions(+), 100 deletions(-)
 create mode 100644 meta/recipes-devtools/e2fsprogs/e2fsprogs/0001-mke2fs-add-the-ability-to-copy-files-from-a-given-di.patch
 create mode 100644 meta/recipes-devtools/e2fsprogs/e2fsprogs/0002-misc-create_inode.c-copy-files-recursively.patch
 create mode 100644 meta/recipes-devtools/e2fsprogs/e2fsprogs/0003-misc-create_inode.c-create-special-file.patch
 create mode 100644 meta/recipes-devtools/e2fsprogs/e2fsprogs/0004-misc-create_inode.c-create-symlink.patch
 create mode 100644 meta/recipes-devtools/e2fsprogs/e2fsprogs/0005-misc-create_inode.c-copy-regular-file.patch
 create mode 100644 meta/recipes-devtools/e2fsprogs/e2fsprogs/0006-misc-create_inode.c-create-directory.patch
 create mode 100644 meta/recipes-devtools/e2fsprogs/e2fsprogs/0007-misc-create_inode.c-set-owner-mode-time-for-the-inod.patch
 create mode 100644 meta/recipes-devtools/e2fsprogs/e2fsprogs/0008-mke2fs.c-add-an-option-d-root-directory.patch
 create mode 100644 meta/recipes-devtools/e2fsprogs/e2fsprogs/0009-misc-create_inode.c-handle-hardlinks.patch
 create mode 100644 meta/recipes-devtools/e2fsprogs/e2fsprogs/0010-debugfs-use-the-functions-in-misc-create_inode.c.patch
 create mode 100644 meta/recipes-devtools/e2fsprogs/e2fsprogs/0011-mke2fs.8.in-update-the-manual-for-the-d-option.patch
 delete mode 100644 meta/recipes-devtools/e2fsprogs/e2fsprogs/populate-extfs.sh
Signature · 1 line
1.7.10.4