]> code.ossystems Code Review - openembedded-core.git/commit
e2fsprogs: mke2fs: add the ability to copy files from a given directory
authorRobert Yang <liezhi.yang@windriver.com>
Fri, 7 Mar 2014 06:59:22 +0000 (01:59 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 7 Mar 2014 14:44:26 +0000 (14:44 +0000)
commitf050c510b070d919d50e491476e83f2b0ae2b7b2
treedc8c268b4c3ba18d4faa9f632b7e4d22ff4c98eb
parent0e6881146d87f0d214d80bc92e54c113906db63a
e2fsprogs: mke2fs: add the ability to copy files from a given directory

We will add a -d option which will be used for adding the files from a
given directory to the filesystem, it is similiar to genext2fs, but
genext2fs doesn't fully support ext4.

* We already have the basic operations in debugfs:
  - Copy regular file
  - Create directory
  - Create symlink
  - Create special file

  We will move these operations into create_inode.h and create_inode.c,
  then let both mke2fs and debugfs use them.

* What we need to do are:
  - Copy the given directory recursively, this will be done by the
    populate_fs()
  - Set the owner, mode and other informations
  - Handle the hard links

TODO:
  - The libext2fs can't create the socket file (S_IFSOCK), do we have a
    plan to support it ?

[YOCTO #4083]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Reviewed-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/e2fsprogs/e2fsprogs/0001-mke2fs-add-the-ability-to-copy-files-from-a-given-di.patch [new file with mode: 0644]