e2fsprogs: mke2fs: copy files recursively
authorRobert Yang <liezhi.yang@windriver.com>
Fri, 7 Mar 2014 06:59:23 +0000 (01:59 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 7 Mar 2014 14:45:22 +0000 (14:45 +0000)
commit72fb43668ec8013273532d7f28cb4eb15713a29c
tree21f595fa6c9be0b9a02edd8b2b080bdfad732fc1
parent69073488f43c6b79c5300a3fb9b5d6ea44a88631
e2fsprogs: mke2fs: copy files recursively

Use opendir() and readdir() to read the native directory, then use
lstat() to identify the file type and call the corresponding function to
add the file to the filesystem, call the populate_fs() recursively if it
is a directory.

NOTE: the libext2fs can't create the socket file.

[YOCTO #4083]

(From OE-Core rev: fd0d00dafcf497f23b1c3886d062c8a57e2aa515)

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/0002-misc-create_inode.c-copy-files-recursively.patch [new file with mode: 0644]