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:45:22 +0000 (14:45 +0000)
commit69073488f43c6b79c5300a3fb9b5d6ea44a88631
treeda7663b8f9c5236eed51ccd5ec8d7fe716ca8d04
parent0b1a6008a5a77ef8aa388c93ab6b70efb8dc37e3
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]

(From OE-Core rev: f050c510b070d919d50e491476e83f2b0ae2b7b2)

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]